Virtual server(s) went missing, I've disabled 2 virtual servers from some time and today when I tried to enable them they were not there

SYSTEM INFORMATION
OS type and version Ubuntu 18.04.5 LTS
Webmin version 2.013
Virtualmin version 7.5

I’ve this server from very long time now, for some reason these 2 domains are not showing up in the virtual domain list, I’ve checked using cli as well.

virtualmin list-domains --name-only

my guess is something has happened during virutalmin upgrade to the latest version causing this behavour.

since all my files are there including apache config and home directory my question is how can I generate those domain files again manually if for some reason virtualmin is unable to do so.

Do you recall if there were lots of custom settings made for the missing domains / virtual servers? If most of the settings were at default, you could:

  1. archive the files in public_html
  2. export the database
  3. make a list of the users / email addresses

Then create a virtual server with the domain name and uncompress the archive in public_html, import the database and create email accounts afresh.

The above would be the easy but imperfect solution. If you want to take a chance at a perfect restore, try this:

  1. archive the users directory under /home
  2. export the database
  3. make a list of the users / email addresses

Then create a virtual server and create users from (3). Uncompress the archive in the user’s directory under /home and import the database.

With any luck you will have a perfect restore.

Hello @calport thanks for your reply.

No the virutul server is very basic with proxy enabled & I’ve already enabled the server manually by editing apache config file and since it was nodejs app, so only apache config is being managed by virtualmin.

I don’t want to restore or anything but just wanted to know how to generate virtualmin domain config files if they went missing on other servers as well.

I do not wish to hazard a guess about that, Naresh. It is strange that the domain disappeared when you disabled the virtual server. Thereafter you have edited the config files directly. In this eventuality your system is no longer a standard Virtualmin system about which reasonable assumptions could be made. Additionally, you should attempt to understand why domains are disappearing from your system rather than how you can add them back again by manually editing config files.

@calport thanks for your concerns but I’ve not edited any unknown files just the apache config commented a single line :wink:

that can be simply reverted to its privious state (left by virtualmin when disabled), once a solution is found to add missing domains back to virtualmin.

and yeah that’s what I was trying to figure out why they went missing I am sure they went missing after upgrade (since they were disabled from a long time so were disabled from previous version of virtualmin), and regenerating the missing domain conf files would be enough to bring them back.

also this is strange that various domains were disabled but virtualmin is missing only 2 domain configs from them.

(virtulamin domain count is confirmed using ls /home & virtualmin list-domains --user-only)

Just curious: does it list the virtual servers in the Virtualmin GUI under the “List Virtual Servers” menu towards the bottom of the screen?

@Gomez_Adams nope it does not, I guess it is also using the same API which is being used by theme sidebar & virtualmin cli.

Also this issue is only with this server other server I’ve upgraded for testing today is listing all virtual servers.

if nothing can be done to generate those missing domains I plan to simply create a config manually for virtualmin in the /etc/webmin/virtual-server/domains directory.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.