Chef-server-ctl backup failed

Hi guys,

I’m facing an error while executing the backup command:

Starting Chef Server backup
Bringing down the Chef Server
Dumping Postgresql database to /tmp/chef_backup20160828-1972-1g9j8ks/chef_backup-2016-08-28-23-55-48.sql
Writing backup manifest
Creating backup tarball
ERROR: Something wen't terribly wrong, aborting backup
ERROR: Command timed out after 600s:
Command exceeded allowed execution time, process terminated
---- Begin output of tar -czf /tmp/chef_backup20160828-1972-1g9j8ks/chef-backup-2016-08-28-23-55-48.tgz /var/opt/opscode/rabbitmq/db /var/opt/opscode/opscode-solr4/data /var/opt/opscode/redis_lb/data /var/opt/opscode/postgresql/9.2/data /var/opt/opscode/bookshelf/data /var/opt/opscode/upgrades /etc/opscode /etc/opscode-push-jobs-server /etc/opscode-analytics chef_backup-2016-08-28-23-55-48.sql manifest.json ----
STDOUT:
STDERR: tar: Removing leading `/' from member names
---- End output of tar -czf /tmp/chef_backup20160828-1972-1g9j8ks/chef-backup-2016-08-28-23-55-48.tgz /var/opt/opscode/rabbitmq/db /var/opt/opscode/opscode-solr4/data /var/opt/opscode/redis_lb/data /var/opt/opscode/postgresql/9.2/data /var/opt/opscode/bookshelf/data /var/opt/opscode/upgrades /etc/opscode /etc/opscode-push-jobs-server /etc/opscode-analytics chef_backup-2016-08-28-23-55-48.sql manifest.json ----
Ran tar -czf /tmp/chef_backup20160828-1972-1g9j8ks/chef-backup-2016-08-28-23-55-48.tgz /var/opt/opscode/rabbitmq/db /var/opt/opscode/opscode-solr4/data /var/opt/opscode/redis_lb/data /var/opt/opscode/postgresql/9.2/data /var/opt/opscode/bookshelf/data /var/opt/opscode/upgrades /etc/opscode /etc/opscode-push-jobs-server /etc/opscode-analytics chef_backup-2016-08-28-23-55-48.sql manifest.json returned
Cleaning up /tmp/chef_backup20160828-1972-1g9j8ks
Bringing up the Chef Server

Someone knows where was the timeout?

Regards,
Bevilaqua, Tiago

Hi Tiago,

This part:
ERROR: Command timed out after 600s: Command exceeded allowed execution
time, process terminated

Is saying that the tar command is taking longer than 10 minutes to
complete. The timeout value wasn’t configurable until about 3 days ago
on master
https://github.com/chef/chef_backup/commit/9892fde86e7e664cba437db324305753c1cac82d
.

*Irving Popovetsky *— Principal Customer Architect | CHEF

mobile: 503-490-5523 – irving@chef.io – *my: *Blog
http://irvingpop.github.io/ Github http://github.com/irvingpop Twitter
http://www.twitter.com/irvingpop Calendar Free/Busy
https://www.google.com/calendar/embed?src=irving%40chef.io&ctz=America/Los_Angeles&mode=WEEK

1 Like