Why chef-server-ctl backup always return exit code <> 0?
[root@mordor2 ~]# chef-server-ctl backup --yes
Starting Chef Server backup
Bringing down the Chef Server
ok: down: bookshelf: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: oc_bifrost: 0s, normally up
ok: down: oc_id: 0s, normally up
ok: down: opscode-chef-mover: 0s, normally up
ok: down: opscode-erchef: 0s, normally up
ok: down: opscode-expander: 0s, normally up
ok: down: opscode-expander-reindexer: 0s, normally up
ok: down: opscode-solr4: 0s, normally up
ok: down: rabbitmq: 1s, normally up
ok: down: redis_lb: 0s, normally up
Dumping Postgresql database to
/tmp/chef_backup20150916-2948-zhsm7b/chef_backup-2015-09-16-19-49-59.sql
could not change directory to "/root"
ok: down: postgresql: 0s, normally up
Writing backup manifest
Creating backup tarball
tar: Removing leading `/’ from member names
Bringing up the Chef Server
ok: run: bookshelf: (pid 3121) 1s
ok: run: nginx: (pid 3168) 0s
ok: run: oc_bifrost: (pid 3183) 0s
ok: run: oc_id: (pid 3231) 1s
ok: run: opscode-chef-mover: (pid 3247) 0s
ok: run: opscode-erchef: (pid 3289) 0s
ok: run: opscode-expander: (pid 3312) 0s
ok: run: opscode-expander-reindexer: (pid 3334) 1s
ok: run: opscode-solr4: (pid 3360) 1s
ok: run: postgresql: (pid 3392) 0s
ok: run: rabbitmq: (pid 3429) 1s
ok: run: redis_lb: (pid 3655) 0s
Exporting tarball to /var/opt/chef-backup
Cleaning up /tmp/chef_backup20150916-2948-zhsm7b
Backup Complete!
[root@mordor2 ~]# echo $?
1
Thanks
–
– Tiago Cruz
Tiago, you're right. We just confirmed this behavior. We'll work on a fix.
--
*Irving Popovetsky *— Team Lead, Customer Engineering | 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
On Wed, Sep 16, 2015 at 12:53 PM, Tiago Cruz tiago.tuxkiller@gmail.com
wrote:
Why chef-server-ctl backup always return exit code <> 0?
[root@mordor2 ~]# chef-server-ctl backup --yes
Starting Chef Server backup
Bringing down the Chef Server
ok: down: bookshelf: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: oc_bifrost: 0s, normally up
ok: down: oc_id: 0s, normally up
ok: down: opscode-chef-mover: 0s, normally up
ok: down: opscode-erchef: 0s, normally up
ok: down: opscode-expander: 0s, normally up
ok: down: opscode-expander-reindexer: 0s, normally up
ok: down: opscode-solr4: 0s, normally up
ok: down: rabbitmq: 1s, normally up
ok: down: redis_lb: 0s, normally up
Dumping Postgresql database to
/tmp/chef_backup20150916-2948-zhsm7b/chef_backup-2015-09-16-19-49-59.sql
could not change directory to "/root"
ok: down: postgresql: 0s, normally up
Writing backup manifest
Creating backup tarball
tar: Removing leading `/' from member names
Bringing up the Chef Server
ok: run: bookshelf: (pid 3121) 1s
ok: run: nginx: (pid 3168) 0s
ok: run: oc_bifrost: (pid 3183) 0s
ok: run: oc_id: (pid 3231) 1s
ok: run: opscode-chef-mover: (pid 3247) 0s
ok: run: opscode-erchef: (pid 3289) 0s
ok: run: opscode-expander: (pid 3312) 0s
ok: run: opscode-expander-reindexer: (pid 3334) 1s
ok: run: opscode-solr4: (pid 3360) 1s
ok: run: postgresql: (pid 3392) 0s
ok: run: rabbitmq: (pid 3429) 1s
ok: run: redis_lb: (pid 3655) 0s
Exporting tarball to /var/opt/chef-backup
Cleaning up /tmp/chef_backup20150916-2948-zhsm7b
Backup Complete!
[root@mordor2 ~]# echo $?
1
Thanks
--
-- Tiago Cruz