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

ERROR: Errno::EACCES: Permission denied - /etc/chef/validation.pem #5

Closed
zacksiri opened this issue Jul 17, 2012 · 4 comments
Closed
Assignees

Comments

@zacksiri
Copy link

I am getting this error after the boostrap is complete

@xdissent
Copy link
Contributor

xdissent commented Oct 8, 2012

You need to set your validation_key path in knife.rb. If you're using chef-bootstrap, setting a KNIFE_SERVER_NAME env var is enough to trigger this automatically, placing your validation key in a file named after your user and chef server in ~/.chef.d. Or you could actually create /etc/chef and that would work too.

fnichol added a commit that referenced this issue Dec 19, 2012
It is very likely that many new users to this gem have not previously
set up a knife.rb file, so this section of the README deserves a bit
more content.

References #5
References #10
@ghost ghost assigned fnichol Dec 19, 2012
@fnichol
Copy link
Owner

fnichol commented Dec 19, 2012

Does the commit above help clarify the need for user-writable locations for client_key and validation_key? I'm open to moving things around to help make this easier to follow.

If I've missed the boat here, or you're still having problems, please reopen. Thank you!

@fnichol fnichol closed this as completed Dec 19, 2012
@RakeshMsr
Copy link

simple just add sudo command. like this

$ sudo chef-client

@kiranbanda420
Copy link

kiranbanda420 commented Jan 23, 2018

I do got above error
Tried $ sudo chef-client
Succeded Thanks@RakeshMsr.

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

5 participants