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 Install Fails on RHEL/CentOS #59

Open
Azrael808 opened this issue Jan 14, 2015 · 0 comments
Open

Chef Server Install Fails on RHEL/CentOS #59

Azrael808 opened this issue Jan 14, 2015 · 0 comments

Comments

@Azrael808
Copy link

The knife server --distro "chef11/rhel" ... command eventually fails with the following error:

ERROR: RuntimeError: SSH exited with code 127 for [echo 'chefchef' | knife configure --initial --server-url http://127.0.0.1:8000 --user root --repository "" --admin-client-name chef-webui --admin-client-key /etc/chef-server/chef-webui.pem --validation-client-name chef-validator --validation-key /etc/chef-server/chef-validator.pem --defaults --yes 2>> /tmp/chef-server-install-errors.txt]

The problem appears to be that the shell can't find the knife binary. I would hazard a guess that the solution is to either reference the full path to the knife binary, or (probably preferable) updating the $PATH environment variable to include the installed Chef's binary path (/opt/chef-server/bin).

I'm considering submitting a PR for the first solution, but it might be worth figuring out why the $PATH environment variable isn't updated post-Chef install.

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