Skip to main content

rsync stopped working

Comments

8 comments

  • cPRex Jurassic Moderator

    Hey there!  This doesn't seem like it would be related to cPanel since this happens manually on the command line as well.  However, this does sound like a firewall issue of some sort since the connection drops.  Are you able to just run the SSH connection portion of the command between the two systems?

    1
  • PatrickVeenstra

    No, I'm not. I get the same error message: ssh_exchange_identification: read: Connection reset by peer

    0
  • cPRex Jurassic Moderator

    Well that's good then - that confirms the issue isn't related to cPanel or rsync or SSH, but a connection problem between the two systems.  You'll want to check the firewall on both ends and see what could be blocking that connection.

    1
  • PatrickVeenstra

    Thanks a lot cPRex. I thought it was that, and verified my firewall on both ends, so it's probably related to the DC. I've contacted them.

    0
  • cPRex Jurassic Moderator

    Hopefully they'll be able to take care of that quickly!

    0
  • PatrickVeenstra

    They were not. 9 days later: "It was possible though, to connect to the server after changing the SSH port. So this indicates, its not a issue on the underlaying system but rather on the servers itself."

    Any suggestion about how to fix this?

    BTW Does it make sense that suddenly I have to change the SSH port when it has been working for a long time?

    0
  • cPRex Jurassic Moderator

    It sounds like there were some external firewall issues they aren't telling you about, as that could explain both the rsync problem and the need for an SSH port change.  No, it doesn't make sense that you would suddenly need to change the SSH port after it's been working for years.

    0
  • PatrickVeenstra

    Their response:

    Thank you for contacting Contabo support.

    On a network basis, there are no restrictions from our side at all. We do not block any ports, but please consider that before a port will be open, you must install and activate a service on this port (for instance a web server).

    In most cases you did either install a firewall like ufw and forgot to open the port, or you did not yet install a mailserver that listens to the port, so it appears to be down. Or the configuration is wrong.

    If a port actually appears to be blocked, this could only be caused by a specific firewall setting on your server and you would have to adjust your firewall configuration in that regard.

    So they didn't help in any way. Finally, the solution was:
    rsync -au --delete --exclude '.htaccess' --exclude 'error_log' '-e sshpass -f pass_file ssh -p 22223' domain.net/ account@{my_ip}:domain.net

    Many thanks to Yalın YALNIZ. He helped me a lot (and for much less than Contabo).

    1

Please sign in to leave a comment.