After my vm in proxmox rebooted, the other of 23 virtual server is normal but 1 virtual server that shows only domain id not the real domain as usual. the configuration in /etc/apache2/site-available is still exist but when i try to access web show error 503 service unavailable.
The folder of domain and user are available but when i try to access of feature like file manager is showing error Error opening directory /public_html No such file or directory.
The database menu in the error virtual server also gone and only access in terminal.
If i go to virtual server summary the created virtualserver is Created on 01/01/1970 07:00 AM
How to fix it?, because other virtual server in my vm with this virtualmin is accessible with normal and not errror.
actually i don’t have a backup, because this virtual server account just created few day ago. I’m typically backup virtual server once a week because there is no updated database everyday
I don’t see the solutions actually, the staff asked for backup in /etc/webmin/virtual-server/domains, and yes the file and folder of my virtual server are accessible in /etc/webmin/virtual-server/domains.
If I can access that folder domain, what should i do for next step repairing my virtual server account?
You don’t need to restore the whole domain, just the Virtualmin metadata. It’s actually just one file for each domain that is empty due to a file locking bug, that I’m pretty sure has been fixed in the current Virtualmin version (at least I’m pretty sure Ilia has said it’s fixed, I didn’t fix it or look at the code).
That’s not relevant to this issue, though. The metadata for a domain is in the domain backup.
I’m not talking about other kinds of backups (but I do agree we need to somehow better communicate what “good backups” look like and include, because just having Virtualmin backups is probably insufficient for disaster recovery if you have any customizations in the services Virtualmin manages, since a Virtualmin backup only includes the configuration that is specific to the domain itself…so the VirtualHost section from the Apache configuration, not the whole Apache configuration).
I’m just saying you don’t need to restore the whole domain. I believe you can use the --fix flag in the virtualmin restore-domain command to just restore this metadata, and I think it probably also has an option in the UI.
This absolutely cannot work. The restore-domain command needs a Virtualmin backup file (which will be a tarball) for the --source field, and a --domain that is the domain name being restored. Ilia has linked an example, last one on the page.
If you do not have Virtualmin backups from before the problem occurred, this obviously cannot work. There are ways to fix it without backups, but it’s a lot more trouble (and please start keeping good backups).