ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Private key could not be loaded. #312

Open nrob81 opened 7 years ago

nrob81 commented 7 years ago

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 commented 7 years ago

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.