Jump to content
  • 0

Sftp Backup Failing


Question

Posted

Hey,

 

My SFTP backup keeps failing. I have checked the settings by clicking the "Test settings" option and that says success but then if I click force offsite backup it fails.

 

Is there a log of this somewhere so I can see the reason for the failure?

21 answers to this question

Recommended Posts

  • 0
Posted

Testing the settings only checks whether the credentials are valid for connecting to the server. You can check the cron logs under [Tools] -> [Logs] -> [Cron] for the backup log to see if any information is available that describes why it failed to backup.

  • 0
Posted

Linux server? mysqldump binary exist? exec() and system() functions allowed in PHP? mysqldump is executed to create the database dump, and then it's SFTP'd over.. it may be that it's failing before it gets to the that point.

  • 0
Posted

Another issue might be that the SFTP user doesn't have permission to write to the directory where the backups are going, but then I would expect you'd see something in the cron log about that.

  • 0
Posted

need help I clicked on <Test These Settings> to test my sftp didn't receive any message and when clicking on <Download Backup> receieved this error and inside the log file nothing important more the message received/

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ddddddd.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • 0
Posted

Hello

 

Reviving an old thread here: I am not able to back up to my remote server, and there are no errors in the cron log. I have all the settings for SFTP properly configured, and the account can create and edit directories in the FTP receiving server. Nothing in the logs, am able to compete mysqldump as cron user. Please advise

 

Blesta Version 3.3.1

  • 0
Posted

Correct. When I try to use Force Offsite Backup, it spins forever and does not create the file on the external server.

 

There's something wrong with your set-up then. Have you gone to the SFTP page and click test?

 

post-38-0-39489800-1414536295_thumb.png

  • 0
Posted

The test makes an AJAX request. Sounds like your server is choking on the request.

 

Could be your server is missing or has an outdated version of the openssl or curl PHP extensions.

 

There are a lot of AJAX requests sitewide, though, and my server is able to handle them. It also uses cURL and SSL tools on other applications installed in the same account. It's a VPS with plenty of updated tools (such has been my experience).

 

Locked cron tasks: exchange rate updates & deliver reports are not enabled.

Exchange Rate Updates
  • 0
Posted

 

There are a lot of AJAX requests sitewide, though, and my server is able to handle them.

 

 

Has nothing to do with the AJAX request, rather you don't see the result of the AJAX request because your server chokes on the actual SFTP action.

 

If you're familiar with browser inspectors you could see the result returned from the server (if it returns anything).

 

You should enable PHP error logging on your server and log all PHP errors. You can also open the /config/blesta.php config and change the error reporting value from 0 to -1 at the top of that file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...