Unable to start migration on Plesk server: Command execution failed on the local server with non-zero exit code.

Follow

Comments

4 comments

  • Avatar
    simon chan

    It doesn't work even ran the command on target server.

    Failed to deploy Python on source server
    Cause: Command execution failed on the local server with non-zero exit code.
    command: rsync -l --chmod=Fu=rw,Du=rwx,go= --timeout=30 -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys/id_rsa.IP addres -p 8022 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh_upload.1 root@IP addres:/etc/yum.repos.d/plesk-migrator.repo
    exit code: 255
    stdout:
    stderr: root@IP addres: Permission denied (gssapi-keyex,gssapi-with-mic,password).
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]

    That is a critical error, migration was stopped.

     

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    simon chan

    Hi. This means there are other settings preventing connection.

    I'd suggest:

    - to check if the key from /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys/id_rsa.pub is installed at /root/.ssh/authorized_keys on the source server

    - to try connecting manually via SSH from target to source(with ssh debug options: `-vvv`), using that key

    That should give some insight.

    0
    Comment actions Permalink
  • Avatar
    simon chan

    There is nothing in the folder /usr/local/psa/var/modules/panel-migrator/sessions/20240305232615/ssh-keys

    0
    Comment actions Permalink
  • Avatar
    Stefan Yakubov

    The folder is removed right away once migration attempt is over. You need to use inotify-tools or make haste to get contents out of there. Then, drop the public key on the source server and re-try manually.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request