SOLVED-Failed to extract the archive at normalize_extracted_archive: The extracted archive does not contain a valid cpanel user file.

0

Web Host Manager 11.52.0.20 - Remote Root Account Transfer 2015-10-29 17-30-37 The error message is like this  “ArchiveManager

Failed to extract the archive at “/home/cpmove-ACCOUNT NAME.tar.gz.part00001”: _normalize_extracted_archive: The extracted archive does not contain a valid cpanel user file

Removing copied archive “/home/cpmove-ACCOUNT NAME.tar.gz.part00001” from the local server …
Failed: Account Restore Failed: “Failed to extract the archive at “/home/cpmove-ACCOUNTNAME.tar.gz.part00001”: _normalize_extracted_archive: The extracted archive does not contain a valid cpanel user file.”
The error message means that the whole archive is compressed but when you extract it  it doesn’t fully extract everything  nor does it give you and error message.  The best solution is to use cpanel  backup and restore line command which i really this easy .
Simple solution

1—Back up the account from the old server

Run the following commads to back up the account from old server and use scp to copy it over to the new server

/scripts/pkgacct CPANEL-USERNAME
scp -P 3333 /home/cpmove-CPANEL-USERNAME.tar.gz root@NEW-SERVER-IP:/home/
note 3333 is the ssh port of the new server. if you are using the default  ssh port of 22,you can just  remove the -P and 3333. Also note that the P must be a  capital letter
change CPANEL-USERNAME to the cpanel username
2—Restore the backup in the new server
mkdir /home/new-restore
tar --directory=/home/new-restore --ignore-zeros -xzf /home/cpmove-USERNAME.tar.gz
/scripts/restorepkg /home/new-restore/cpmove-USERNAME/
Please note that if the account already exist in the new server then you have to run this command
/scripts/restorepkg --skipaccount /home/new-restore/cpmove- CPANEL-USERNAME/
Share.

About Author

Comments are closed.