Copy Multiple Accounts/Packages From Another Server Fails for each account & package?

webwizardma

Member
Feb 25, 2014
5
0
1
cPanel Access Level
Root Administrator
Hi there,

I've used this built-in tool before, and it's awesome! However, I can't get mine to work!

I get this error...
Command failed with exit status 255

and this snippet:
Code:
[email protected]'s password: 	==sshcontroloutput==
pkgacct started.
pkgacct -- attempting to use daily backup to create an account package
pkgacct -- could not use daily backup because no daily incremental backup for user jshea89 can be found ( check if daily incremental backups are enabled )
pkgacct version 10 - user : jshea89 - tarball: 1 - target mysql : 5.5 - split: 1 - incremental: 0 - homedir: 0 - archive version: 3 - running with uid 0
pkgacct using '/usr/bin/gzip -6' to compress archives
pkgacct working dir : /home/cpmove-jshea89
Copying Reseller Config...
Copying Reseller Packages and Features ...
Done
Copying Suspension Info (if needed)...Done
Copying SSL certificates, CSRs, and keys...Privilege de-escalation before loading datastore either failed or was omitted. at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1159
	Cpanel::SSLStorage::_load_datastore('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)', 'lock', 1) called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1244
	Cpanel::SSLStorage::_load_datastore_rw('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)') called at /usr/local/cpanel/Cpanel/SSLStorage/Installed.pm line 634
	Cpanel::SSLStorage::Installed::_rebuild_records('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)') called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 308
	Cpanel::SSLStorage::__ANON__() called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 1330
	Cpanel::SSLStorage::_execute_coderef('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)', 'CODE(0x39662b8)') called at /usr/local/cpanel/Cpanel/SSLStorage.pm line 310
	Cpanel::SSLStorage::rebuild_records('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)') called at /usr/local/cpanel/scripts/pkgacct line 2888
	Script::Pkgacct::__ANON__('Cpanel::SSLStorage::Installed=HASH(0x2bfabb0)') called at /usr/local/cpanel/scripts/pkgacct line 2913
	Script::Pkgacct::backup_ssl_for_user('jshea89', '/home/cpmove-jshea89') called at /usr/local/cpanel/scripts/pkgacct line 532
	Script::Pkgacct::script('Script::Pkgacct', '--use_backups', '--skiphomedir', 'jshea89', '', '--split', '--compressed', '--mysql', 5.5, ...) called at /usr/local/cpanel/scripts/pkgacct line 111

sshcommandfailed=255

I've tried with user account with root escalation, just connecting with root, all the different options (like use ssl, etc.) and no luck!

The weird thing is it gets all the packages and accounts, and goes through them one by one trying to copy, but each comes back with a fail! Any help is greatly appreciated.
 

LostNerd

Well-Known Member
Mar 12, 2014
258
12
18
Hastings, East Sussex, UK
cPanel Access Level
Root Administrator
Twitter
This is usually happens when the remote is down/unavailable; or the remote machine doesn't have ssh installed; or a firewall doesn't allow a connection to be established to the remote host.

ssh returns 255 when an error occurred or 255 is returned by the remote script:
Code:
EXIT STATUS
ssh exits with the exit status of the remote command or with 255 if an error occurred.
Usually you would receive an error message something similar to:
Code:
ssh: connect to host host.domain.com port 22: No route to host
or

Code:
ssh: connect to host HOSTNAME port 22: Connection refused
It's hard to pinpoint the exact issue sometimes but my first guess would be to make sure that the server you are transferring from isn't blocking the server you are transferring to.
 

webwizardma

Member
Feb 25, 2014
5
0
1
cPanel Access Level
Root Administrator
I can definitely connect to the remote machine via SSH, I hit the test connection button and it says OK - and it lists out accounts & packages!

I dunno, I guess starting a ticket is the way to go from here, since it seems like this is a unique situation?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Check the server you are copying the accounts from for any special customizations to the /etc/ssh/sshd_config file. Does using the default/stock sshd_config file make a difference?

Thank you.