Hello again.
I have tried to run the chef-basic sample [1]. I have run the add
command to create an instance in Amazon, using the command provide in
the example:
java -jar target/chef-basics-jar-with-dependencies.jar aws-ec2 accesskey
secretkey mygroup add
and I have obtained an error: *Permission denied* due to it the user
was the root. Gem was not installed and the chef folders was not created
too.
Before, I run the solo command to install an Apache using the sample
command again. But, as the gem was not installed in the instance, thus I
have obtained the error following:
*
<< node us-east-1/i-c12e92ef: [10.248.123.97, 54.224.20.190]
<< {output=,
error=/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh:
line 55: /etc/hosts: Permission denied
You need to be root to perform this command.
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
120: git: command not found
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
121: cd: /var/chef/cookbooks/apache2: No such file or directory
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
55: /etc/hosts: Permission denied
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /usr/lib/ruby/site_ruby/1.8/rubygems
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
136: gem: command not found
mkdir: cannot create directory `/var/chef': Permission denied
mkdir: cannot create directory `/var/chef': Permission denied
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
139: /var/chef/solo.rb: No such file or directory
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
145: /var/chef/node.json: No such file or directory
/tmp/jclouds-script-1390474405248/jclouds-script-1390474405248.sh: line
148: chef-solo: command not found
, exitStatus=127}
<< node us-east-1/i-39209c17: [10.214.19.61, 174.129.93.89]
<< {output=,
error=/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh:
line 55: /etc/hosts: Permission denied
You need to be root to perform this command.
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
120: git: command not found
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
121: cd: /var/chef/cookbooks/apache2: No such file or directory
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
55: /etc/hosts: Permission denied
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /usr/lib/ruby/site_ruby/1.8/rubygems
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
136: gem: command not found
mkdir: cannot create directory `/var/chef': Permission denied
mkdir: cannot create directory `/var/chef': Permission denied
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
139: /var/chef/solo.rb: No such file or directory
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
145: /var/chef/node.json: No such file or directory
/tmp/jclouds-script-1390474405254/jclouds-script-1390474405254.sh: line
148: chef-solo: command not found
, exitStatus=127}
*
I do know if I need to custom some code properties or features to change
the user which runs the commands or configure the AWS instance.
What do you recommend me? I have looked for the mail list and in the
google groups some information about this issue, but I did not find
anything.
I think this is the correct list to this questions, however If I am
wrong, I will move it :-)
Thanks a lot.
Jose
[1] https://github.com/jclouds/jclouds-examples/tree/master/chef-basics