302 Temporary Redirect

monza

Member
Nov 10, 2010
19
2
53
I am migrating all accounts from one server to another. Many of them went through flawlessly. However, I have several accounts that failed to transfer. When the transfer process is started, the new server is able to successfully establish a connection, but is then given an error of "302 Temporary Redirect." A few of the accounts then proceeded to start a backup on the old server. However, after the server finished the backup, the process stops with some sort of cPanel failure and the failure noticed always ends with "302 Temporary Redirect."

From the best I can tell, each of these accounts were originally transferred to the old server from an even older server. However, they are still operating just fine on the existing server. They just won't transfer to the new one. I found an old "cpmove.psql" directory and "cpbackup-exclude.conf" file in the root of each of these accounts. But, my attempt to remove those and try the transfer again yielded the same results.

What do I need to do to these accounts to prevent the errors/failures and get a successful transfer?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,235
2,423
363
cPanel Access Level
Root Administrator
Hey there! I wouldn't expect the presence of the cpmove.psql or the cpbackup-exlude.conf to harm the transfer in any way.

Can you get me more details on where you're seeing the 302 error? I'm not familiar with that error as part of the Transfer Tool process in WHM, so if you have any more context for that it could be helpful.
 

monza

Member
Nov 10, 2010
19
2
53
Starting “TRANSFER” for “Account” “user”.
Attempting to copy “user” from “server”.
Trying to fetch cpmove file via cPanel API!
debug: Established cpanel session
Fetching current backups from remote server … 2 backups found.
… done.
Starting the backup …
Server Error from server: 302 Temporary Redirect
… done.
Checking remote server for backups … 3 backups found.
The remote server is creating the backup file “backup-12.21.2022_11-53-19_user.tar.gz”.
Downloading “backup-12.21.2022_11-53-19_user.tar.gz” …
Could not download backup file; security policy on the remote server forbids it.
Cpanel::Exception::HTTP::Network/(XID 4n6nbx) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_11-53-19_user.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272.
at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115.
Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1ed8750), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1e6a118)) called at /usr/local/cpanel/scripts/getremotecpmove line 292
scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57
scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user") called at /usr/local/cpanel/scripts/getremotecpmove line 30
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user” command (process 2340) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID 4n6nbx) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_11-53-19_user.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1ed8750), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1e6a118)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user") called at /usr/local/cpanel/scripts/getremotecpmove line 30





Starting “RESTORE” for “Account” “user”.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user” command (process 2340) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID 4n6nbx) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_11-53-19_user.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1ed8750), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1e6a118)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user") called at /usr/local/cpanel/scripts/getremotecpmove line 30
 

monza

Member
Nov 10, 2010
19
2
53
That's interesting - if you run "/scripts/pkgacct username" on the Source server, are you able to package the account normally or does that also give errors?
That works fine. I'll post a few other errors from other account transfer attempts.
 

monza

Member
Nov 10, 2010
19
2
53
Starting “TRANSFER” for “Account” “user2”.
Attempting to copy “user2” from “server”.
Trying to fetch cpmove file via cPanel API!
debug: Established cpanel session
Fetching current backups from remote server … 0 backups found.
… done.
Starting the backup …
Server Error from server: 302 Temporary Redirect
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
… done.
Checking remote server for backups … 0 backups found.
Failed to retrieve the backup from the remote machine (if a previous backup is in progress you will need to wait until it is complete)!
(Trace information follows for initial backups)…<table width="100%" style="border: 1px #000 solid;"><tr><td><pre></pre></td></tr></table>
(Trace information follows for backups after request started)…<table width="100%" style="border: 1px #000 solid;"><tr><td><pre></pre></td></tr></table>
Failed to fetch cpmove file via cPanel API.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user2” command (process 6749) reported error number 1 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect





Starting “RESTORE” for “Account” “user2”.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user2” command (process 6749) reported error number 1 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect
 

monza

Member
Nov 10, 2010
19
2
53
Starting “TRANSFER” for “Account” “user3”.
Attempting to copy “user3” from “server”.
Trying to fetch cpmove file via cPanel API!
debug: Established cpanel session
Fetching current backups from remote server … 0 backups found.
… done.
Starting the backup …
Server Error from server: 302 Temporary Redirect
… done.
Checking remote server for backups … 1 backup found.
The remote server is creating the backup file “backup-12.21.2022_12-47-26_user3.tar.gz”.
Downloading “backup-12.21.2022_12-47-26_user3.tar.gz” …
Could not download backup file; security policy on the remote server forbids it.
Cpanel::Exception::HTTP::Network/(XID ru5kb5) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-47-26_user3.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272.
at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115.
Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1326030), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x175dd58)) called at /usr/local/cpanel/scripts/getremotecpmove line 292
scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57
scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user3") called at /usr/local/cpanel/scripts/getremotecpmove line 30
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user3” command (process 7150) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID ru5kb5) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-47-26_user3.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1326030), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x175dd58)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user3") called at /usr/local/cpanel/scripts/getremotecpmove line 30






Starting “RESTORE” for “Account” “user3”.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user3” command (process 7150) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID ru5kb5) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-47-26_user3.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1326030), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x175dd58)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user3") called at /usr/local/cpanel/scripts/getremotecpmove line 30
 

monza

Member
Nov 10, 2010
19
2
53
Starting “TRANSFER” for “Account” “user4”.
Attempting to copy “user4” from “server”.
Trying to fetch cpmove file via cPanel API!
debug: Established cpanel session
Fetching current backups from remote server … 1 backup found.
… done.
Starting the backup …
Server Error from server: 302 Temporary Redirect
… done.
Checking remote server for backups … 2 backups found.
The remote server is creating the backup file “backup-12.21.2022_12-53-58_user4.tar.gz”.
The backup file, backup-12.21.2022_12-53-58_user4.tar.gz, is still being generated on the remote server “server”.
…15…
Downloading “backup-12.21.2022_12-53-58_user4.tar.gz” …
Could not download backup file; security policy on the remote server forbids it.
Cpanel::Exception::HTTP::Network/(XID hh52qu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-53-58_user4.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272.
at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115.
Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1dd1c88), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1d63930)) called at /usr/local/cpanel/scripts/getremotecpmove line 292
scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57
scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user4") called at /usr/local/cpanel/scripts/getremotecpmove line 30
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user4” command (process 7642) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID hh52qu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-53-58_user4.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1dd1c88), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1d63930)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user4") called at /usr/local/cpanel/scripts/getremotecpmove line 30






Starting “RESTORE” for “Account” “user4”.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user4” command (process 7642) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID hh52qu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_12-53-58_user4.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1dd1c88), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x1d63930)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user4") called at /usr/local/cpanel/scripts/getremotecpmove line 30
 

monza

Member
Nov 10, 2010
19
2
53
Starting “TRANSFER” for “Account” “user5”.
Attempting to copy “user5” from “server”.
Trying to fetch cpmove file via cPanel API!
debug: Established cpanel session
Fetching current backups from remote server … 3 backups found.
… done.
Starting the backup …
Server Error from server: 302 Temporary Redirect
… done.
Checking remote server for backups … 4 backups found.
The remote server is creating the backup file “backup-12.21.2022_13-01-20_user5.tar.gz”.
The backup file, backup-12.21.2022_13-01-20_user5.tar.gz, is still being generated on the remote server “server”.
…15…
Downloading “backup-12.21.2022_13-01-20_user5.tar.gz” …
Could not download backup file; security policy on the remote server forbids it.
Cpanel::Exception::HTTP::Network/(XID z49eeu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_13-01-20_user5.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272.
at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115.
Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x2ac7258), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x2a3a1b8)) called at /usr/local/cpanel/scripts/getremotecpmove line 292
scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57
scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user5") called at /usr/local/cpanel/scripts/getremotecpmove line 30
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user5” command (process 8331) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID z49eeu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_13-01-20_user5.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x2ac7258), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x2a3a1b8)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user5") called at /usr/local/cpanel/scripts/getremotecpmove line 30






Starting “RESTORE” for “Account” “user5”.
Failed: Error while executing “/usr/local/cpanel/scripts/getremotecpmove”. The “/usr/local/cpanel/scripts/getremotecpmove server user5” command (process 8331) reported error number 255 when it ended.: debug: Established cpanel session Server Error from server: 302 Temporary Redirect Cpanel::Exception::HTTP::Network/(XID z49eeu) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://server:2083/download/backup-12.21.2022_13-01-20_user5.tar.gz” because of an error: Died at /usr/local/cpanel/scripts/getremotecpmove line 272. at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 115. Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x2ac7258), "GET", "https://server:2083/download/backup-12.21.2"..., HASH(0x2a3a1b8)) called at /usr/local/cpanel/scripts/getremotecpmove line 292 scripts::getremotecpmove::fetch_acct_by_cpanel(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/scripts/getremotecpmove line 57 scripts::getremotecpmove::script("scripts::getremotecpmove", "server", "user5") called at /usr/local/cpanel/scripts/getremotecpmove line 30
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,235
2,423
363
cPanel Access Level
Root Administrator
Thanks for the additional details. I'm not finding anything similar on my end, so it's likely time to open a ticket so we can do some additional troubleshooting.

If you're able to do that, can you post the ticket number here so I can follow along?
 

monza

Member
Nov 10, 2010
19
2
53
I believe I have found the issue. While testing passwords on the old server, I realized that the accounts with issues had a password that was "insecure" according to the cPanel settings. When I tried to login to cPanel on the old server, I was forced to change the password. Once I did that, the accounts transferred properly with no redirect error. I haven't moved all accounts, yet. But, I'm optimistic that this solves the issues with all accounts.
 
  • Like
Reactions: cPRex