Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chef-server-ctl backup and return code #534

Closed
tiago-cruz-movile opened this issue Sep 17, 2015 · 0 comments
Closed

chef-server-ctl backup and return code #534

tiago-cruz-movile opened this issue Sep 17, 2015 · 0 comments
Assignees

Comments

@tiago-cruz-movile
Copy link

Using Chef 12.2.0, 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

Confirmed by @irvingpop :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants