[chef] Re: chef-server-ctl backup and return code


Chronological Thread 
  • From: Irving Popovetsky < >
  • To:
  • Cc: Ryan Cragun < >
  • Subject: [chef] Re: chef-server-ctl backup and return code
  • Date: Wed, 16 Sep 2015 13:59:25 -0700

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 –  " style="color:rgb(17,85,204)" target="_blank">  – my: Blog  Github  Twitter  Calendar Free/Busy


On Wed, Sep 16, 2015 at 12:53 PM, Tiago Cruz < " target="_blank"> > wrote:
Why chef-server-ctl backup always return exit code <> 0?


~]# 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!
~]# echo $?
1


Thanks

--
-- Tiago Cruz





Archive powered by MHonArc 2.6.16.

§