Note that there are some explanatory texts on larger screens.

plurals
  1. PODeleting a Knife client without a private key?
    text
    copied!<p>I've joined a new company and to get caught up to speed, I've been playing with Vagrant for my VM. I had my system nearly set up and then a weird error forced me to shut off my laptop without disconnecting via <code>vagrant destroy</code>. Now when trying to get set, I run <code>vagrant up</code> and get the following error message.</p> <pre><code> [default] Running provisioner: Vagrant::Provisioners::ChefClient... [default] Creating folder to hold client key... [default] Uploading chef client validation key... [default] Generating chef JSON and uploading... [default] Running chef-client... stdin: is not a tty [Wed, 16 Jan 2013 05:20:20 -0500] INFO: *** Chef 0.10.2 *** [Wed, 16 Jan 2013 05:20:20 -0500] INFO: Client key /etc/chef/client.pem is not present - registering [Wed, 16 Jan 2013 05:20:21 -0500] INFO: HTTP Request Returned 409 Conflict: Client already exists. [Wed, 16 Jan 2013 05:20:22 -0500] INFO: HTTP Request Returned 403 Forbidden: Merb::ControllerExceptions::Forbidden [Wed, 16 Jan 2013 05:20:22 -0500] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out [Wed, 16 Jan 2013 05:20:22 -0500] FATAL: Net::HTTPServerException: 403 "Forbidden" The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! chef-client -c /tmp/vagrant-chef-1/client.rb -j /tmp/vagrant-chef-1/dna.json </code></pre> <p>Now from my own research I see that this means a client already exists with the name specified, so I decided to manually shut it down. I tried to list all the knife clients with <code>knife client list</code> but then got the following message:</p> <pre><code> WARNING: No knife configuration file found ERROR: Your private key could not be loaded from /etc/chef/client.pem Check your configuration file and ensure that your private key is readable </code></pre> <p>Strange. I know knife.rb exists, I see it when I <code>ls</code> so I don't know how the knife configuration file couldn't exist. I can't see my knife clients without this private key apparently. I'm completely new to Vagrant, Knife AND Chef so I'm stumped.</p> <p>Thoughts?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload