• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Command execution failed on the source server

Heath

New Pleskian
I am trying to use the Plesk Migrater Extension v2.6.11 but am having some sort of an issue with the migration.

I have made sure all the required ports are open on both servers.
8443, 110, 143, 22

On port 8443 I did not see it as open after a port scan or in the firewall extension, but it has to be since I connect to the panel on that port. That said, I went ahead and created a rule in the firewall extension. I was not sure if it just needed to be inbound only so I tried that and it failed the same. So I add an outbound rule on both firewalls for 8443 as well and it still failed.


Code:
Failed to fetch basic information about resellers, clients and domains data from source servers
Cause: Command execution failed on the source server 'source' (XXX.XXX.XXX.XX) with non-zero exit code.
command: echo 'ssh-rsa <OMITTING WHAT I ASSUME IS A LONG ENCRYPTION KEY HERE> [email protected]' >> /root/.ssh/authorized_keys
exit code: 1
stdout:
stderr: bash: /root/.ssh/authorized_keys: Permission denied

That is a critical error, migration was stopped.
 
Hi Heath,

could you pls. check on your source server:
Code:
lsattr -a /root/.ssh

If the result is
Code:
----i-------- /root/.ssh/.
pls. change that with for example:
Code:
chattr -i /root/.ssh
... and try again the migration process.​
 
Hi Heath,

could you pls. check on your source server:
Code:
lsattr -a /root/.ssh

If the result is
Code:
----i-------- /root/.ssh/.
pls. change that with for example:
Code:
chattr -i /root/.ssh
... and try again the migration process.​

Thanks for the reply. Below are the results.
Code:
-------------e- /root/.ssh/.
-------------e- /root/.ssh/..
----ia-------e- /root/.ssh/authorized_keys
 
----ia-------e- /root/.ssh/authorized_keys

It should be

-------------e-- /root/.ssh/authorized_keys

Fix it with

# chattr -ia /root/.ssh/authorized_keys
 
Back
Top