Can't Move Account From Server A to Server B

Read 12549 times
@DJFire_CFR - You helped me out with a year or two ago and I need help again.  It was working a year or two ago but isn't now.

I put in a ticket 1 week ago and it's still not answered by developement.  I have to get users off one server and move them to other servers, so I really need to get this fixed.

I can get the backup to generate the ZIP file but the restore fails .. I've tried several different options and several different servers .. all fail.

Here are some of the errors (I replaced password with *****):

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla
Enter password for admin: *******
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
[INF] Extracting backup archive ...

Warning: fopen(backup-iabdulla_20160117-085116_569bc6848c890.zip): failed to open stream: Permission denied in /usr/local/centovacast/system/class_CZipArchive.php on line 131
Result: ERROR Could not unpack backup file: Cannot open archive backup-iabdulla_20160117-085116_569bc6848c890.zip
[root@sc11 vhosts]#
>>>>>>>>>>>>>>>>>>>>>
[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --novalidate
Enter password for admin: *******
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
[INF] Extracting backup archive ...
[INF] Extracted 1 files
[INF] Reading manifest ...
[INF] Backup was created for user iabdulla at 2016-01-17 08:51:16
Result: ERROR This host does not support the software required by the account to be restored (ShoutCast)
>>>>>>>>>>>>>>>>>>>>>
[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla
Enter password for admin: ******
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
[INF] Extracting backup archive ...
Result: ERROR Could not unpack backup file: Signature validation failed
[root@sc11 vhosts]#
>>>>>>>>>>>>>>>>>>>>>>>>
[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla
Enter password for admin: ******
Result: ERROR Invalid username or password
[root@sc11 vhosts]#
Hello Dennis,

It appears you are missing the rpchostid parameter from the restore line, make sure you match the following structure for successful use.

/usr/local/centovacast/bin/ccmanage restore --filename=FILENAME --username=USERNAME --rpchostid=SERVERID

The other error messages, we already addressed those on your ticket.
That still did not fix the issue .. I've tried --rpchostid=0 and --rpchostid=1

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --rpchostid=1
Enter password for admin: ********
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
Result: ERROR Backup file backup-iabdulla_20160117-085116_569bc6848c890.zip does not exist

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --rpchostid=0
Enter password for admin: ********
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
[INF] Extracting backup archive ...

Warning: fopen(backup-iabdulla_20160117-085116_569bc6848c890.zip): failed to open stream: Permission denied in /usr/local/centovacast/system/class_CZipArchive.php on line 131
Result: ERROR Could not unpack backup file: Cannot open archive backup-iabdulla_20160117-085116_569bc6848c890.zip
[root@sc11 vhosts]#
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
@My Auto DJ - Thanks for the response.

Yes, I know how to move all accounts from one server to another, but that's not my problem.

I have maybe 50 accounts on a server, which is going away.  I need to move 10 accounts to Server B, 10 to Server C, 10 to Server D, etc.

I don't want to move everything to a new server, only selected accounts to selected servers.

BTW, the article that you recommended works great.  I just used it on another server where I was moving the entire contents to a new server.

But I've used the backup / restore method a year or two and it worked great.  However it doesn't work now.  I've tried several accounts and several servers ... all servers are Centovacast 2.3.3 so mismatching server software isn't the issue either.
Did you try to include --novalidate ?

Here is what I use to restore single accounts

/backup/ restore --filename=/backup-username_20150414-081619_552d051379b89.zip --rpchostid=2 --username=username --novalidate

Also if the account has over 2Gb then the backup process would fail so you may have over looked that, which would be a incomplete backup and cause errors. In that case when you backup you can include --nocontent and just move the mp3's over using RSYNC
Last Edit: January 21, 2016, 06:56:41 pm by My Auto DJ
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com
This account has NO MP3 files and the backup is only 880,000 ... that didn't work ..

I tried --novalidate with --rpchostid of 0, 1 & 2 ..

Here is what I get:

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --rpchostid=2 --novalidate
Enter password for admin: ******
Result: ERROR Bad target host ID: Server ID not found: 2

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --rpchostid=1 --novalidate
Enter password for admin: ******
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
Result: ERROR Backup file backup-iabdulla_20160117-085116_569bc6848c890.zip does not exist

[root@sc11 vhosts]# /usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160117-085116_569bc6848c890.zip --username=iabdulla --rpchostid=0 --novalidate
Enter password for admin: ******
[INF] Processing backup backup-iabdulla_20160117-085116_569bc6848c890.zip
[INF] Extracting backup archive ...

Warning: ZipArchive::getStatusString(): Invalid or uninitialized Zip object in /usr/local/centovacast/system/class_CZipArchive.php on line 52
Result: ERROR Could not unpack backup file: Cannot open archive:  (11)
[root@sc11 vhosts]#
Finally got it working .. the answer was so stupid ..

I was doing a cd to /usr/local/centovacast/var/backups/vhosts .. and then doing the command:

/usr/local/centovacast/bin/ccmanage restore --filename=backup-iabdulla_20160122-140859_56a2a87b87bfe.zip --username=iabdulla --novalidate=1 --rpchostid=1

but it ONLY works if I specify the full file name:

/usr/local/centovacast/bin/ccmanage restore --filename=/usr/local/centovacast/var/backups/vhosts/backup-iabdulla_20160122-140859_56a2a87b87bfe.zip --username=iabdulla --novalidate=1 --rpchostid=1
Sorry Dennis, I didn't see this post or I would have answered... Yes you are correct as you need the full path of the backup up to restore the account on the new server.

Code: [Select]
/usr/local/centovacast/bin/ccmanage restore --filename=/usr/local/centovacast/var/backups/vhosts/NAMEOFBACKUPFILE.zip --rpchostid=1 --username=USERNAME --novalidate

You could always open notepad or another type of file (word, excel, etc) and copy and save the restore script for future usage.

CrossFire-Hosting LLC.
Co-Owner