Chef Error while bootstrapping

Ive run into this error a few times while getting my VMs setup and Chef installed on them: Starting Chef Client, version 11.6.0 Creating a new client identity for target3 using the validator key. ================================================================================ Chef encountered an error attempting to create the client "target3" ================================================================================ Authorization Error: Your validation client is not authorized to create the client for this node (HTTP 403). Possible Causes: * There may already be a client named "target3" * Your validation client (sethlearningchef-validator) may have misconfigured authorization permissions. [2013-11-18T14:07:52-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out Chef Client failed. 0 resources updated [2013-11-18T14:07:52-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Im not sure what causes it but here is the fix that works for me:

On management station:

knife client delete NODENAME
knife node delete NODENAME

On affected node:

sudo rm /etc/chef/client.pem
sudo chef-client

Then on your managment server so your bootstrap command again:

sudo knife bootstrap --sudo -p USERNAME -N "NODENAME"

One response to “Chef Error while bootstrapping

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s