cpanel transfer tool migration failed
when I try transfer Cpanel account I get the following warning
The system failed to initiate a remote background package account due to an error: pass, accesshash, or api_token is a required parameter at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/cPanel/PublicAPI.pm line 139. cPanel::PublicAPI::new("cPanel::PublicAPI", "user", "root", "accesshash", undef, "usessl", 1, "ssl_verify_mode", ...) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 562 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::_run_whm_api(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130), "start_background_pkgacct", HASH(0x33865e8)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 614 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::_call_remote_background_pkgacct_with_internal_data(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 342 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x33862b8), Try::Tiny::Catch=REF(0x33741e0)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 346 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::_remote_background_pkgacct(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 308 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::_remote_pkgacct_decision(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Item.pm line 359 Whostmgr::Transfers::Session::Item::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x33604e8), Try::Tiny::Catch=REF(0x335ff00)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Item.pm line 388 Whostmgr::Transfers::Session::Item::exec_path(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130), ARRAY(0x347bf20), ARRAY(0x33728f8), 1) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountRemoteRoot.pm line 206 Whostmgr::Transfers::Session::Items::AccountRemoteRoot::transfer(Whostmgr::Transfers::Session::Items::AccountRemoteRoot=HASH(0x347c130)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 658 Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Whostmgr/Transfers/Session.pm line 1484 Whostmgr::Transfers::Session::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x347b4b8), Try::Tiny::Catch=REF(0x347c1a8)) called at /usr/local/cpanel/Whostmgr/Transfers/Session.pm line 1488 Whostmgr::Transfers::Session::exec_with_output_directed_to_fh(Whostmgr::Transfers::Session=HASH(0x32e4e08), GLOB(0x3360068), CODE(0x335fa38)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 674 Whostmgr::Transfers::Session::Processor::_process_dequeued_item(Whostmgr::Transfers::Session::Processor=HASH(0x338a178)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 554 Whostmgr::Transfers::Session::Processor::_process_items(Whostmgr::Transfers::Session::Processor=HASH(0x338a178)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 508 Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 72 eval {...} called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 72 Cpanel::ForkAsync::do_in_child(CODE(0x3327898)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 510 Whostmgr::Transfers::Session::Processor::_spawn_child(Whostmgr::Transfers::Session::Processor=HASH(0x338a178), 1, Whostmgr::Transfers::Session=HASH(0x32e4e08)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 292 Whostmgr::Transfers::Session::Processor::_process_child(Whostmgr::Transfers::Session::Processor=HASH(0x338a178), Whostmgr::Transfers::Session=HASH(0x32e4e08), 0) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 240 Whostmgr::Transfers::Session::Processor::_process_child_with_output_redirection(Whostmgr::Transfers::Session::Processor=HASH(0x338a178), Whostmgr::Transfers::Session=HASH(0x32e4e08), 0, "alphahostherecopya20221205201515I9WH") called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 205 Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 72 eval {...} called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 72 Cpanel::ForkAsync::do_in_child(CODE(0x335b950)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 207 Whostmgr::Transfers::Session::Processor::start(Whostmgr::Transfers::Session::Processor=HASH(0x338a178)) called at bin/start_transfer.pl line 57 main::__ANON__() called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x32e4dd8), Try::Tiny::Catch=REF(0x1ef3808)) called at bin/start_transfer.pl line 72
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).
and on the restore get the following warning
Skipped: The "Mysql" restore module failed because of an error: missing: api_token at /usr/local/cpanel/Whostmgr/Transfers/Systems/Mysql/Stream.pm line 375.
Skipped: The "ManualMX" restore module failed because of an error: no API token? at /usr/local/cpanel/Whostmgr/Transfers/Utils.pm line 735.
Skipped: The "ServiceProxy" restore module failed because of an error: no API token? at /usr/local/cpanel/Whostmgr/Transfers/Utils.pm line 735.
-
Hey there! I wouldn't expect the restore to work at all with the errors you got from the transfer side of things. Can you confirm you were trying to transfer the accounts as the root user? I would need more details about the connection you were making (root, or a cPanel user) and what you were trying to transfer (one account, multiple accounts, did multiple accounts fail, etc.) before I can provide much information. 0 -
Hey there! I wouldn't expect the restore to work at all with the errors you got from the transfer side of things. Can you confirm you were trying to transfer the accounts as the root user? I would need more details about the connection you were making (root, or a cPanel user) and what you were trying to transfer (one account, multiple accounts, did multiple accounts fail, etc.) before I can provide much information.
I am using the root login on both servers. This happens when I use the transfer tool to move an account to a new server. The transfer or Restore a cPanel Account option works fine with the cpanel credentials.0 -
On the Source machine, are you able to manually run "/scripts/pkgacct username" and successfully package the cPanel account there manually? 0
Please sign in to leave a comment.
Comments
3 comments