You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!?
The text was updated successfully, but these errors were encountered:
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!?
The text was updated successfully, but these errors were encountered: