Menu

#5583 Virtual Server Domains File Zeroed Out During Backup Server Crash

2.000
open
nobody
None
5
2022-09-10
2022-09-10
Eric
No

Hi,

Virtualmin was running a backup and at the time the server had a problem and crashed and had to be rebooted.

After reboot the ID file under /etc/webmin/virtual-server/domains is blank for that virtual server id #

It appears that when a backup is running this file is updated and when it is done the file is updated.

Can we restore this file from a previous day backup or should we import the server again into webmin?

Why would the scheduled backup have to update this file each time it runs daily?

Thank You,

Eric

Discussion

  • Eric

    Eric - 2022-09-10

    Virtualmin was running a backup on this server ID when the server crashed. Hence webmin had opened this file but the backup never finished.

    Thank You,

     
  • Ilia

    Ilia - 2022-09-10

    Hello, Eric.

    What do you mean exactly by "server was crashed" - what crashed exactly?

    You can restore just the Virtualmin config file for a domain with a command:

    virtualmin restore-domain --source /path/to/domain.com.tar.gz --domain domain.com --feature virtualmin --fix
    
     
  • Eric

    Eric - 2022-09-10

    Thanks for quick reply!

    The server had to be power cycled hard reboot. Instead of doing your method above I replaced that ID file from a previous backup the only issue is it is older so it shows like bandwidth from August but appears to have all of the settings for the virtual server now?

    Why would the scheduled backup alter this file while it is running?

    Thanks

     
  • Eric

    Eric - 2022-09-10

    FYI sorry We restored the ID file from a backup of the /etc/webmin folder manually outside of virtualmin.

     

Log in to post a comment.

Auth0 Logo