erostew
Verified User
Ok I'm using admin backup/restore to transfer stuff from an older server to a newer one and I have run into trouble with failed/partial restores on the new server due to corrupt tarballs.
The backup files are pretty large. Up to 13.6 gb so far. Obviously that won't work with backup to ftp or restore from ftp. So I do the backup on the old server and use ssh to ftp the file to the new server and then restore it from there.
A couple of times now the tarball has been corrupt (crc failed) so the reseller is only partially restored. In one case the reseller was there and some of the domain's files had been restored before it failed. In another the reseller was there but no domains were restored. In both cases if you clicked "show all users" the reseller was not listed. But if you clicked the "list resellers" link they were. So I used the "list resellers" page to delete the user and rebooted the server. After that I deleted the backups, redid the backup, re-ftped, and re-restored. Everything was okay.
The 3rd time it happened the reseller that failed was on a shared IP. One other reseller on that IP with one domain. When I deleted the failed user and rebooted I checked the IP Management page. It now shows 0 users on that IP. It's listed as free. I tried going into the resellers IP Management and sharing it. But it didn't fix it in the admin level IP management. Still zero users but now the IP shows as shared instead of free.
If you go to the "Show all Users" page the reseller is there and the correct IP is shown. If you use the direct IP address in the browser it goes to the domain because there is currently only 1 domain. So it seems this little bug doesn't affect the actual operation of the server. Just the IP management page. It does have me a little worried what will happen if I restore the failed reseller again to that IP, or add a user/reseller with that IP assigned.
If anyone can tell me what to fix so that IP Management is working correctly again, I would appreciate it.
Here's the logged error from the restore in question in case it helps anything:
The backup files are pretty large. Up to 13.6 gb so far. Obviously that won't work with backup to ftp or restore from ftp. So I do the backup on the old server and use ssh to ftp the file to the new server and then restore it from there.
A couple of times now the tarball has been corrupt (crc failed) so the reseller is only partially restored. In one case the reseller was there and some of the domain's files had been restored before it failed. In another the reseller was there but no domains were restored. In both cases if you clicked "show all users" the reseller was not listed. But if you clicked the "list resellers" link they were. So I used the "list resellers" page to delete the user and rebooted the server. After that I deleted the backups, redid the backup, re-ftped, and re-restored. Everything was okay.
The 3rd time it happened the reseller that failed was on a shared IP. One other reseller on that IP with one domain. When I deleted the failed user and rebooted I checked the IP Management page. It now shows 0 users on that IP. It's listed as free. I tried going into the resellers IP Management and sharing it. But it didn't fix it in the admin level IP management. Still zero users but now the IP shows as shared instead of free.
If you go to the "Show all Users" page the reseller is there and the correct IP is shown. If you use the direct IP address in the browser it goes to the domain because there is currently only 1 domain. So it seems this little bug doesn't affect the actual operation of the server. Just the IP management page. It does have me a little worried what will happen if I restore the failed reseller again to that IP, or add a user/reseller with that IP assigned.
If anyone can tell me what to fix so that IP Management is working correctly again, I would appreciate it.
Here's the logged error from the restore in question in case it helps anything:
Code:
2008:09:24-16:15:54: Unable to extract user.conf, reseller.conf or ip.list from /home/admin/new_backups/reseller.admin.FAILEDRESELLER.tar.gz : Error while extracting backup/user.conf backup/reseller.conf backup/ip.list to /home/admin/new_backups/FAILEDRESELLER as admin :
gzip: stdin: invalid compressed data--crc error
/bin/tar: Child returned status 1
/bin/tar: Error exit delayed from previous errors
<br>
2008:09:24-16:19:56: User::getRCF
2008:09:24-16:19:56: Unable to read ./data/users/FAILEDRESELLER/crontab.conf for user: FAILEDRESELLER
2008:09:24-16:19:57: *** Unable to read admin reseller files *** : ./data/users/admin/user.usage : Can't get a lock on ./data/users/admin/user.usage<br>
<br>
./data/users/admin/domains.list : Can't get a lock on ./data/users/admin/domains.list<br>
<br>
./data/users/admin/user.conf : Can't get a lock on ./data/users/admin/user.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.usage<br>
<br>
Can't get a lock on ./data/users/admin/users.list<br>
<br>
Can't get a lock on ./data/users/admin/reseller.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.allocation<br>
<br>
2008:09:24-16:19:57: Can't get lock on ./data/admin/next_ticket.number
2008:09:24-16:19:57: Couldn't get a ticket number for the system message
2008:09:24-16:19:57: Unable to open ./data/admin/services.status
2008:09:24-16:19:57: Tally::dumpShowAllUsersCache: error getting users : Unable to stat: ./data/users<br>
2008:09:24-16:19:57: Unable to read ./data/admin/login.hist: Can't get a lock on ./data/admin/login.hist<br>