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

aws_key_pair Errno::EACCESS running chef-client -z xxx.rb #481

Open
aterrazas opened this issue May 10, 2016 · 0 comments
Open

aws_key_pair Errno::EACCESS running chef-client -z xxx.rb #481

aterrazas opened this issue May 10, 2016 · 0 comments

Comments

@aterrazas
Copy link

Hello Team, we faced with this error on a box using aws ami.

basically we created and script using windows, and everything runs smoothly, how ever when we tried to run the same on a aws ec2 box using amazon ami, we could never get trow.
does not matter what we tried we always get

[2016-05-10T21:20:40+00:00] ERROR: aws_key_pair[alext-course](@recipe_files::/var/lib/jenkins/workspace/create_env/chef-repo/mycluster.rb line 41) had an error: Errno::EACCES: private_key[/var/lib/jenkins/workspace/create_env/chef-repo/.chef/keys/alext-course.pem](basic_chef_client::block line 104) had an error: Errno::EACCES: public_key[alext-course.pub](basic_chef_client::block line 154) had an error: Errno::EACCES: Permission denied @ rb_sysopen - alext-course.pub

our frustration is that the same script works on windows ....

the user jenkis was, of course, added to visudo nopassword, also we have tried changing (chmod) the directories permissions, etc etc, even we upgrade from ruby 2.x to 2.2.5 on the box, but I can see that chef-client makes reference to its own gems....
I also reinstalled aws-cli, and chefdk...

any idea!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant