meskyanichi/backup — Issue #257: "Failed to run mysqldump on x86_64-linux" when performing a backup. 
Author: frankjath
Created: 2012-01-13 22:02:02+00:00
State: open

Hi am getting this error when performing my backup.

Performing backup for Description for my_backup!
[2012/01/13 21:56:44][message] Backup::Database::MySQL started dumping and archiving 'my_database_name'.
[2012/01/13 21:56:44][error] ModelError: Backup for Description for my_backup (my_backup) Failed!
[2012/01/13 21:56:44][error] An Error occured which has caused this Backup to abort before completion.
[2012/01/13 21:56:44][error] Please review the Log for this Backup to determine if steps need to be taken
[2012/01/13 21:56:44][error] to clean up, based on the point at which the failure occured.
[2012/01/13 21:56:44][error] Reason: CLI::SystemCallError
[2012/01/13 21:56:44][error] Failed to run mysqldump on x86_64-linux
[2012/01/13 21:56:44][error] The following information should help to determine the problem:
[2012/01/13 21:56:44][error] Exit Code: 512
[2012/01/13 21:56:44][error] STDERR:
[2012/01/13 21:56:44][error] mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
[2012/01/13 21:56:44][error]
[2012/01/13 21:56:44][error] Backtrace:
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/cli/helpers.rb:92:in `raise_if_command_failed!'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/cli/helpers.rb:31:in `run'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/database/mysql.rb:99:in `perform!'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/finder.rb:84:in `to_proc'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/model.rb:245:in `each'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/model.rb:245:in `perform!'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/model.rb:243:in `each'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/model.rb:243:in `perform!'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/cli/utility.rb:72:in `perform'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/cli/utility.rb:51:in `each'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/lib/backup/cli/utility.rb:51:in `perform'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
[2012/01/13 21:56:44][error] /usr/lib/ruby/gems/1.8/gems/backup-3.0.20/bin/backup:11
[2012/01/13 21:56:44][error] /usr/bin/backup:19:in `load'
[2012/01/13 21:56:44][error] /usr/bin/backup:19
[2012/01/13 21:56:44][message] ModelError: If you have other Backup jobs (triggers) configured to run,
[2012/01/13 21:56:44][message] Backup will now attempt to continue...
[2012/01/13 21:56:44][message] Backup::Cleaner started cleaning up the temporary files.