SOLVED Transfer Tool Stuck in Retry Loop

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
HI All,

I tried to transfer a cpanel account to a new server by transfer tool but got stuck in retry loop:

Starting “TRANSFER” for “Account” “ACCOUNT1”.
Copy Destination: /home
Remote server type: “WHM1164”.
Initiating a remote API (Application Programming Interface) connection in order to package the account in a background process …
Server Error from xxx.xxx.xxx.xxx: 401 Access Denied
The system failed to initiate a remote background package account due to an error: Server Error from xxx.xxx.xxx.xxx: 401 Access Denied at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/cPanel/PublicAPI.pm line 526.
The system failed to package the account on the remote system via API (Application Programming Interface) connection. It will now attempt to package the account via SSH (Secure Shell).
Initiating process to package the account over SSH (Secure Shell) connection …
Packaging the account with the command: /usr/local/cpanel/bin/pkgacct --use_backups ACCOUNT1 '' --compressed --mysql 5.7 --dbbackup_mysql all --split …
[2022-01-05 20:45:50 +0800] pkgacct started.
[2022-01-05 20:45:50 +0800] pkgacct version 10 - user : ACCOUNT1 - tarball: 1 - target mysql : 5.7 - split: 1 - incremental: 0 - homedir: 1 - mailman: 1 - backup: 0 - archive version: 4 - running with uid 0
[2022-01-05 20:45:50 +0800] pkgacct using '/usr/local/cpanel/3rdparty/bin/pigz -6 --processes 1 --blocksize 4096 --rsyncable' to compress archives
[2022-01-05 20:45:50 +0800] pkgacct -- attempting to use daily backup to create an account package
[2022-01-05 20:45:50 +0800] pkgacct -- could not use daily backup because no daily incremental backup for user ACCOUNT1 can be found ( check if daily incremental backups are enabled )
.
.
.
.
[2022-01-05 20:57:12 +0800] Performing “WebCalls” component....
[2022-01-05 20:57:13 +0800] Completed “WebCalls” component.
[2022-01-05 20:57:13 +0800] Performing “PublicContact” component....
[2022-01-05 20:57:13 +0800] Completed “PublicContact” component.
[2022-01-05 20:57:13 +0800] Performing “MailLimits” component....
[2022-01-05 20:57:13 +0800] Completed “MailLimits” component.
[2022-01-05 20:57:13 +0800] Performing “LinkedNodes” component....
[2022-01-05 20:57:13 +0800] Completed “LinkedNodes” component.
[2022-01-05 20:57:13 +0800] Creating Archive .............
…2333…
[2022-01-06 00:51:01 +0800]
[2022-01-06 00:51:01 +0800]
…2…
[2022-01-06 00:51:13 +0800]
[2022-01-06 00:51:13 +0800]
…2…
[2022-01-06 00:51:25 +0800]
[2022-01-06 00:51:25 +0800]
…2…
[2022-01-06 00:51:37 +0800]
[2022-01-06 00:51:37 +0800]
[2022-01-06 00:51:39 +0800]
[2022-01-06 00:51:39 +0800]
…2…
[2022-01-06 00:51:51 +0800]
[2022-01-06 00:51:51 +0800]
…2…
[2022-01-06 00:52:03 +0800]
[2022-01-06 00:52:03 +0800]
…2…
[2022-01-06 00:52:14 +0800]
[2022-01-06 00:52:14 +0800]
…2…
[2022-01-06 00:52:26 +0800]
[2022-01-06 00:52:26 +0800]
…2…
[2022-01-06 00:52:37 +0800]
[2022-01-06 00:52:37 +0800]
…2…

ERROR: Use of uninitialized value $successfully_matching_string in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361.
ERROR: Use of uninitialized value $after_match in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361.
[2022-01-06 00:55:52 +0800]
[2022-01-06 00:55:52 +0800]
…2…
[2022-01-06 00:56:03 +0800]
[2022-01-06 00:56:03 +0800]
ERROR:
==sshcontrol_error=RemoteSSHTimeout=TIMEOUT==
ERROR: sshcontrol execution failed with error: Use of uninitialized value $successfully_matching_string in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361. Use of uninitialized value $after_match in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361.
Retrying …
[2022-01-06 01:09:26 +0800] pkgacct started.
[2022-01-06 01:09:26 +0800] pkgacct version 10 - user : ACCOUNT1 - tarball: 1 - target mysql : 5.7 - split: 1 - incremental: 0 - homedir: 1 - mailman: 1 - backup: 0 - archive version: 4 - running with uid 0
[2022-01-06 01:09:26 +0800] pkgacct using '/usr/local/cpanel/3rdparty/bin/pigz -6 --processes 1 --blocksize 4096 --rsyncable' to compress archives
.
.
.



Finally it stopped after 2nd retry:


[2022-01-06 05:48:14 +0800] Creating Archive .............
…2387…
ERROR: Use of uninitialized value $successfully_matching_string in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361.
ERROR: Use of uninitialized value $after_match in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361.
…2390…
==sshcontrol_error=RemoteSSHTimeout=TIMEOUT==
ERROR:
ERROR: sshcontrol failed because it went 1,800 seconds without reading any data.
Done
[sshcontrol failed because it went 1,800 seconds without reading any data. Use of uninitialized value $successfully_matching_string in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361. Use of uninitialized value $after_match in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361. Reused existing connection. Normalizing root shell.... Done normalizing shell. zz c_79289701_P c_11856294P zz c_66821924_P__==sshcontroloutput==Cpanel::SSHControl::z0ZM1nQB9YELUG8V== ] Reused existing connection. Normalizing root shell.... Done normalizing shell. zz c_79289701_P c_11856294P zz c_66821924_P__==sshcontroloutput==Cpanel::SSHControl::z0ZM1nQB9YELUG8V==
Server Error from xxx.xxx.xxx.xxx: 401 Access Denied
Removing copied archive on remote server. …
Found archive: /home/cpmove-ACCOUNT1-split
ERROR: /bin/rm: cannot remove ‘/home/cpmove-ACCOUNT1-split’: Directory not empty
Done
Failed: sshcontrol failed because it went 1,800 seconds without reading any data. Use of uninitialized value $successfully_matching_string in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361. Use of uninitialized value $after_match in concatenation (.) or string at /usr/local/cpanel/Cpanel/Expect/Shell.pm line 361. Reused existing connection. Normalizing root shell.... Done normalizing shell. zz c_79289701_P c_11856294P zz c_66821924_P__==sshcontroloutput==Cpanel::SSHControl::z0ZM1nQB9YELUG8V==

The version of cpanel for both old and new server are 100.0.5

Thank you very much!

Tom
 
Last edited:

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,051
106
118
Houston, TX
cPanel Access Level
Root Administrator
Hello! The following stands out to me.

Code:
Server Error from xxx.xxx.xxx.xxx: 401 Access Denied
Are both servers able to communicate with each other? Can the server you're initiating the transfer from connect to the SSH port of the remote host you're trying to transfer the domains from?

How to use NMAP
 
  • Like
Reactions: rardark

rardark

Member
Oct 9, 2019
12
5
3
Japan
cPanel Access Level
Root Administrator
Hello! The following stands out to me.

Code:
Server Error from xxx.xxx.xxx.xxx: 401 Access Denied
Are both servers able to communicate with each other? Can the server you're initiating the transfer from connect to the SSH port of the remote host you're trying to transfer the domains from?

How to use NMAP
I discovered that the old server blocked the new server to access whostmgrd in Host Access Control and caused this error. I am going to do the transfer again and let's see if this solves the problem or not.

Thanks for the reply!
 
  • Like
Reactions: cPanelAnthony