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

Private key could not be loaded. #312

Open
nrob81 opened this issue Oct 7, 2016 · 1 comment
Open

Private key could not be loaded. #312

nrob81 opened this issue Oct 7, 2016 · 1 comment

Comments

@nrob81
Copy link

nrob81 commented Oct 7, 2016

Hello,
i have installed the image on my linux mint 17.3.
I can't access localhost:8888.

I connected to the machie through ssh and started chef.

my log is:
`vagrant@vagrant-ubuntu-trusty-64:~$ sudo chef-client
Starting Chef Client, version 12.14.89
Creating a new client identity for vagrant-ubuntu-trusty-64 using the validator key.
[2016-10-07T18:20:17+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/validation.pem>

Chef encountered an error attempting to create the client "vagrant-ubuntu-trusty-64"

Private Key Not Found:

Your private key could not be loaded. If the key file exists, ensure that it is
readable by chef-client.

Relevant Config Settings:

validation_key "/etc/chef/validation.pem"

Platform:

x86_64-linux

Running handlers:
[2016-10-07T18:20:17+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-10-07T18:20:17+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 07 seconds
[2016-10-07T18:20:17+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-10-07T18:20:17+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-10-07T18:20:17+00:00] ERROR: I cannot read /etc/chef/validation.pem, which you told me to use to sign requests!
[2016-10-07T18:20:17+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)`

I have tried this also in windows 10, same errors seen.
What can I do? Thanks!

@rreben
Copy link

rreben commented Oct 11, 2016

I made a fork, with some adjustments. It is working for me (Windows 7). https://github.com/rreben/Mining-the-Social-Web-2nd-Edition It is reported to work on windows 10 and MacOS as well.

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

2 participants