VS backup fails to restore to new VMPro machine

I've done a backup to FTP of all of my VS on my old VMPro server with a disk that is dying. I've built a new VMPro server with the same configuration. I try to restore the VS backups and the process fails at the first VM telling me that it could not set quota for the Administration user. I'm dry-running this today and plan to do the real backup / restore on 1 Jan.

I followed the process identified in http://www.virtualmin.com/documentation/system/backup-and-restore for "Using Backups to Transfer Virtual Servers". It appears there is information that needs to be transferred to the new server before I can do the VS restore.

Status: 
Active

Comments

Here's info from the failed backup attempt:

Starting restore of 38 domains from /HOME_fri on FTP server backup.lucketts.net ..

Downloading archive from FTP server .. .. done

Extracting backup archive files .. .. done

Restoring backup for virtual server acupfamily.com .. Restore failed : setquota: User acupfamily.com doesn't exist. <- Return to previous page

None of the unix users or webmin users or usermin user from the old machine are on the new machine. I gather that the procedure in your documentation on restoring a domain to a new machine is not complete?

That's unusual - it looks like it is trying to set the quota even before the domain is re-created.

What command are you using to do the restore, or what options are you setting on the restore form? You should be able to just accept the defaults for everything except the backup file.

All work entirely from webmin qui.

On machine 1 (old server we are replacing) I told it to do a backup to FTP of all virtual servers with all Features and all Virtualmin settings.

On machine 2 ( a fresh centos 5.5 server with VM installed from script) I tell it to restore from the ftp backup server - all settings.

If I try to restore just the "Virtual server password, description and other details " info from the backup, I can get the actual servers recreated on the new machine, but the admin user is still not created and any further backups fail at the same quota point.

I've been trying it with all 30+ domains and that takes a long time per cycle. I tried again with just one of the domains backed up with all features and data to be backup up and I get the same problem.

Both servers centos (1st = 5.4 and 2nd = 5.5) from install script - both running current VM/WM/UM

Here are the results from a single domain backup from the backup module:

Starting backup of 1 domains to /HOME_fri on FTP server backup.lucketts.net ..

Creating backup for virtual server acupfamily.com ..

Copying virtual server configuration .. .. done Backing up Cron jobs .. .. none defined. Copying records in DNS domain .. .. done Saving mail aliases .. .. done Saving mail and FTP users .. .. done Backing up mail and FTP user Cron jobs .. .. none to backup Copying Apache virtual host configuration .. .. done Copying Webalizer configuration files .. .. done Copying Logrotate configuration .. .. done Dumping MySQL database acupfamily_com .. .. done Dumping MySQL database acupfamily_com_webcalendar .. .. done Copying Procmail and SpamAssassin configuration files .. .. done Backing up Webmin ACL files .. .. done Backing up AWstats configuration file .. .. done Creating backup of Mailman mailing lists .. .. no lists found Creating TAR file of home directory .. .. done Uploading archive to FTP server backup.lucketts.net .. .. done

Backing up Virtualmin settings (Module configuration, Server templates and plans, Reseller accounts, New mailbox email messages, Custom fields, links and shells, Third-party script installers, Third-party content styles, Scheduled Virtualmin backups, FTP directory restrictions) .. .. done

Uploading archive to FTP server backup.lucketts.net .. .. done

1 servers backed up successfully, 0 had errors. 9 Virtualmin configuration settings backed up successfully.

Backup is complete. Final size was 108.59 MB.

On the restore from FTP for a single domain:

1) Set up FTP

2) Features and Settings:
- Features to restore: "Restore all features" selected - Virtualmin settings to restore: all boxes selected

3) Other restore options: - Yes - Yes - Yes

Here are the results:

Starting restore of 1 domains from /HOME_fri on FTP server backup.lucketts.net ..

Downloading archive from FTP server .. .. done

Extracting backup archive files .. .. done

Restoring backup for virtual server acupfamily.com .. Restore failed : setquota: User acupfamily.com doesn't exist. <- Return to previous page

OK... here's what I had to do to get a domain to restore:

1) delete all the partial restores that did not have an admin account created.

2) Restore the VM default settings (templates and the like) from the specific virtualmin.tar.gz file

3) once any partial domains were zapped and the proper templates in place, I was able to restore teh test domain I was playing with.

I'll try this process again with the entire batch to verify it works.

You may want to add a few steps to your domain transfer via backup documentation since it assumes that the user knows to transfer the templates first.

When I try to create more than 1 restore any new domain fails:

Starting restore of 2 domains from /HOME_fri on FTP server backup.lucketts.net ..

Downloading archive from FTP server .. .. done

Extracting backup archive files .. .. done

Restoring backup for virtual server acupfamily.com ..

Updating administration password and quotas .. .. done Restoring Cron jobs .. .. done Extracting TAR file of home directory .. .. done Setting ownership of home directory .. .. done Re-creating records in DNS domain .. .. done Restoring Apache virtual host configuration .. .. done Checking restored PHP execution mode .. .. mode Apache mod_php OK for this system Restoring Webalizer configuration files and Cron job .. .. done Restoring Logrotate configuration .. .. done Deleting old MySQL databases .. .. done Re-loading MySQL database acupfamily_com .. Creating MySQL database acupfamily_com .. .. done .. done Re-loading MySQL database acupfamily_com_webcalendar .. Creating MySQL database acupfamily_com_webcalendar .. .. done .. done Restoring SpamAssassin and Procmail configurations .. .. done Restoring Webmin ACL files .. .. done Restoring AWstats configuration file .. .. done Restoring Mailman mailing lists .. .. no lists found in backup Re-creating mail and FTP users .. .. done Re-creating mail aliases .. .. done Restoring mail and FTP user Cron jobs .. .. done Updating Webmin user .. .. done

Restoring backup for virtual server brookwoodstables.com .. Restore failed : setquota: User brookwoodstables.com doesn't exist.

Could you try adding the line :

error_stack=1

to /etc/webmin/config and then re-trying the restore, and posting the full error message here. That will tell me exactly where in the code the quota setting is failing..

If you don't see a list of lines in .pl files at which the error happened, check the file /var/webmin/miniserv.error - they should be logged at the end.

Also, try going to System Settings -> Re-Check Config, and see if any configuration problems are reported. Then re-try the restore.

When I try to create more than 1 restore any new domain fails:

Starting restore of 2 domains from /HOME_fri on FTP server backup.lucketts.net ..

Downloading archive from FTP server .. .. done

Extracting backup archive files .. .. done

Restoring backup for virtual server acupfamily.com ..

Updating administration password and quotas .. .. done Restoring Cron jobs .. .. done Extracting TAR file of home directory .. .. done Setting ownership of home directory .. .. done Re-creating records in DNS domain .. .. done Restoring Apache virtual host configuration .. .. done Checking restored PHP execution mode .. .. mode Apache mod_php OK for this system Restoring Webalizer configuration files and Cron job .. .. done Restoring Logrotate configuration .. .. done Deleting old MySQL databases .. .. done Re-loading MySQL database acupfamily_com .. Creating MySQL database acupfamily_com .. .. done .. done Re-loading MySQL database acupfamily_com_webcalendar .. Creating MySQL database acupfamily_com_webcalendar .. .. done .. done Restoring SpamAssassin and Procmail configurations .. .. done Restoring Webmin ACL files .. .. done Restoring AWstats configuration file .. .. done Restoring Mailman mailing lists .. .. no lists found in backup Re-creating mail and FTP users .. .. done Re-creating mail aliases .. .. done Restoring mail and FTP user Cron jobs .. .. done Updating Webmin user .. .. done

Restoring backup for virtual server brookwoodstables.com .. Restore failed : setquota: User brookwoodstables.com doesn't exist.

I had to finish the project to get the server operational, so I transferred the domains one at a time.

Now I'm spending time tracking down all the minor settings that did not copy over. When I rebuild the original server I'll try the debugging tips you provided.