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

Unset/reset SVDIR inside chef-server-ctl #1075

Closed
docwhat opened this issue Feb 6, 2017 · 2 comments
Closed

Unset/reset SVDIR inside chef-server-ctl #1075

docwhat opened this issue Feb 6, 2017 · 2 comments
Labels
Type: Bug Does not work as expected.

Comments

@docwhat
Copy link

docwhat commented Feb 6, 2017

chef-server-ctl (and any other -ctl programs) should unset or override the SVDIR environment variable.

I customize the environment variable SVDIR on all my cheffed servers, which broke chef-server-ctl:

$ chef-server-ctl status
fail: bookshelf: unable to change to service directory: file does not exist
fail: nginx: unable to change to service directory: file does not exist
fail: oc_bifrost: unable to change to service directory: file does not exist
fail: oc_id: unable to change to service directory: file does not exist
fail: opscode-erchef: unable to change to service directory: file does not exist
fail: opscode-expander: unable to change to service directory: file does not exist
fail: opscode-expander-reindexer: unable to change to service directory: file does not exist
fail: opscode-pushy-server: unable to change to service directory: file does not exist
fail: opscode-reporting: unable to change to service directory: file does not exist
fail: opscode-solr4: unable to change to service directory: file does not exist
fail: postgresql: unable to change to service directory: file does not exist
fail: rabbitmq: unable to change to service directory: file does not exist
fail: redis_lb: unable to change to service directory: file does not exist

It also breaks reconfigure as well. :-(

@stevendanna stevendanna added the bug label Feb 6, 2017
@stevendanna
Copy link
Contributor

Thanks for filing this bug. Unsetting SVDIR at the start of chef-server-ctl definitely seems like the best course of action here. We should probably do that in omnibus-ctl directly if possible.

@srenatus
Copy link
Contributor

Merged in omnibus-ctl -- this will be pulled into the next release, so I'm closing this. 😃

@tas50 tas50 added Type: Bug Does not work as expected. and removed bug labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

4 participants