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

Backup command requires rsync installed #11

Open
jeremysells opened this issue Nov 17, 2018 · 1 comment
Open

Backup command requires rsync installed #11

jeremysells opened this issue Nov 17, 2018 · 1 comment

Comments

@jeremysells
Copy link

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 added a commit to jeremysells/docker-chef-server that referenced this issue Nov 17, 2018
* Adding rsync (required for backup)
* Adding nano
* Ignoring Intellij files
@jeremysells jeremysells changed the title Backup complains of no rsync installed Backup command requires rsync installed Nov 17, 2018
@jeremysells
Copy link
Author

PR created: #12

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

1 participant