Skip to content

Chef Server Install Fails on RHEL/CentOS #59

Description

@Azrael808

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions