Jump to content

Question

Posted

I just recently instaled Blesta on my In Motion Hosting Virtual LAMP server. I am in the process of setting up Blesta. I followed the instructions in the User Manual for setting up a secure FTP:

 

http://docs.blesta.com/display/user/Important+Settings#ImportantSettings-SystemSpecific

 

When I test the settings, I get the following:

 

SFTP connection was successful!

 

When I go back to On Demand backup and click on Force Offsite Backup, I get the following message:

 

The SFTP backup failed.

 

Any thoughts on why I am getting the failed message?  Thanks!

 

 

14 answers to this question

Recommended Posts

  • 0
Posted

It depends on your set-up is there a firewall blocking the connections or timing it out. It could be the location is invalid on the settings under (Path)

I use a backup server with TheSkySpace with the UBuntu OS and it works fine?

  • 0
Posted

The backup uses the mysqldump binary, which must exist on your system. If you have SSH access, you can type "whereis mysqldump" to see if it exists. While Blesta may be able to make the SFTP connection successfully, it may not be able to generate the backup file if mysqldump is not available.

  • 0
Posted

mysql dump is installed on the server.

 

Where is it? Is it in the environment variables? I forget if Blesta simply tries to execute mysqldump, or if it includes the path. I believe the default path on most systems is /usr/bin/mysqldump.

 

Also, are there any commands disabled in your php.ini? It probably uses exec() or shell_exec()

  • 0
Posted

Thanks Paul,

Here is the output of the command:

 

# whereis mysqldump
mysqldump: /usr/bin/mysqldump /usr/share/man/man1/mysqldump.1.gz

 

php.ini diabled commands:

 

asp_tags = Off
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
safe_mode = Off
safe_mode_gid = Off
expose_php = Off
display_startup_errors = Off
ignore_repeated_errors = Off
ignore_repeated_source = Off
track_errors = Off
register_globals = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off    
magic_quotes_sybase = Off
define_syslog_variables  = Off
sql.safe_mode = Off
mysql.trace_mode = Off
pgsql.auto_reset_persistent = Off
sybase.compatability_mode = Off
mssql.compatability_mode = Off
mssql.secure_connection = Off
 

  • 0
Posted

Let's see if you can run mysqldump via the command line (SSH), try executing this command:

 

mysqldump  -u USER -p DATABASENAME -r dump.sql

 

Replace USER and DATABASENAME with the proper values. You will be prompted for the password after you run the command. You can check your Blesta config at /config/blesta.php for your database details.

 

Do you have a dump.sql after running the command? How large is it? Open it up and see if it looks right.

  • 0
Posted

Thank you Paul, I will try that. I was just thinking, I am setting up my Blesta per the manual procedures, I haven't set up packages, modules, etc. yet. Would that have anything to do with the error message?

Thanks!

  • 0
Posted

Thank you Paul, I will try that. I was just thinking, I am setting up my Blesta per the manual procedures, I haven't set up packages, modules, etc. yet. Would that have anything to do with the error message?

Thanks!

 

Nope, the backup should work with a fresh install and is not dependent on a certain level of configuration -- except configuring the backups themselves! :) Curious the result of running mysqldump manually per above.

  • 0
Posted

4,200 KB. Contains a lot of tables. Looks like everything is there.

 

So running the command via SSH worked, but not so much within Blesta? Does your cron run as the same user as your SSH user? Unusual

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...