Skip to main content

Problem backing up some accounts via sftp

Comments

7 comments

  • cPanelMichael
    Hello :) Do you notice any entries in the /var/log/secure file on the destination server related to the connection failure? Are there any firewall rules on the destination server that could be filtering or blocking certain connection attempts? Note that you may need to enable SFTP logging on the destination server per the instructions at: Logging sftp commands - Red Hat Customer Portal Thank you.
    0
  • MoreK
    Hello :) Do you notice any entries in the /var/log/secure file on the destination server related to the connection failure? Are there any firewall rules on the destination server that could be filtering or blocking certain connection attempts? Thank you.

    No log entries in /var/log/secure related to the problem. And no FW rules in destination that may block connection. Note that rest of the backups work ok over the same connection. I just checked last night logs and everything worked ok! So, this concerned only five accounts last week, in two consecutive nights.
    0
  • cPanelMichael
    I just checked last night logs and everything worked ok! So, this concerned only five accounts last week, in two consecutive nights.

    I'm happy to see it's now working as expected. You may want to ensure SFTP logging is enabled on the destination server so additional logs are available in the event this happens again. Thank you.
    0
  • MoreK
    Just a short follow-up on this. The problems came back some time ago. I noticed that backups actually were copied to destination, I just received these error messages. I had updated MySQL to 5.6 earlier. However I didn't update EasyApache & PHP at that time, but left it to version 5.5, based on some information I found from somewhere, can't remember where. Yesterday I was forced to update EasyApache PHP to 5.6, due to some errors with new WordPress version. This morning I took a look at the logs and... no backup errors! Looks like that MySQL 5.6 + PHP 5.5 combination was somehow related to the errors. If someone gets same issues, it may be worth of checking MySQL and PHP versions.
    0
  • cPanelMichael
    It's possible the two issues are unrelated, as FTP is a separate service that does not rely upon Apache/PHP/MySQL. Let us know if you encounter any additional issues. Thank you.
    0
  • MoreK
    A quick follow-up for those who might be struggling with the same issue. The probable reason, after all, seemed to be the Timeout value in SFTP section in backup settings. It defaults to 60 seconds. I doubled it to 120 a week ago and haven't had the problem ever since.
    0
  • cPanelMichael
    A quick follow-up for those who might be struggling with the same issue. The probable reason, after all, seemed to be the Timeout value in SFTP section in backup settings. It defaults to 60 seconds. I doubled it to 120 a week ago and haven't had the problem ever since.

    I'm happy to see you were able to address the issue after modifying the timeout value. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.