3ofcoins / docker-chef-server

Docker image running Chef server
45 stars 40 forks source link

Backup command requires rsync installed #11

Open jeremysells opened 5 years ago

jeremysells commented 5 years ago

Hi,

First of all, thanks for creating this container! It made setting up a a Chef server really easy.

I am using the container/image quay.io/3ofcoins/chef-server:12.18.14 and I am getting the following errors. Ill try create a pull request for adding rsync

root@7cf394faf939:/# chef-server-ctl backup
Locating rsync..
[ERROR] rsync must be installed in order to run this command

After running (inside the container)

root@7cf394faf939:/# apt update
...
root@7cf394faf939:/# apt install nano rsync

The command runs


It might not be an issue with this, but there was a couple of permission issues in the process

Bringing down the Chef Server
ok: down: bookshelf: 1s, 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: 1s, normally up
ok: down: opscode-expander: 0s, normally up
ok: down: opscode-solr4: 0s, normally up
ok: down: rabbitmq: 0s, normally up
ok: down: redis_lb: 1s, normally up
Dumping Postgresql database to /tmp/chef_backup20181117-1780-14zmbg4/chef_backup-2018-11-17-20-28-27.sql
could not change directory to "/tmp/d20181117-1780-120wb2p": Permission denied
ok: down: postgresql: 1s, normally up
Writing backup manifest
Creating backup tarball
/opt/opscode/embedded/lib/ruby/gems/2.5.0/gems/mixlib-shellout-2.3.2/lib/mixlib/shellout/unix.rb:185: warning: conflicting chdir during another chdir block
tar: Removing leading `/' from member names
Bringing up the Chef Server
ok: run: bookshelf: (pid 2091) 0s
ok: run: nginx: (pid 2162) 0s
ok: run: oc_bifrost: (pid 2175) 0s
ok: run: oc_id: (pid 2248) 0s
ok: run: opscode-chef-mover: (pid 2263) 0s
ok: run: opscode-erchef: (pid 2330) 0s
ok: run: opscode-expander: (pid 2648) 1s
ok: run: opscode-solr4: (pid 2778) 0s
ok: run: postgresql: (pid 2887) 0s
ok: run: rabbitmq: (pid 2332) 45s
ok: run: redis_lb: (pid 3074) 0s
Exporting tarball to /var/opt/chef-backup
Cleaning up /tmp/chef_backup20181117-1780-14zmbg4
Backup Complete!
jeremysells commented 5 years ago

PR created: https://github.com/3ofcoins/docker-chef-server/pull/12