popularity question answers views user  
1
HTTPServerException: 403 "Forbidden" after succesful chef-client run

Hello,

I am trying to get a centos 6.3 server to register as chef client for my new hosted chef account. This is my installation script:

rpm -Uvh http://rbel.frameos.org/rbel6
yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
gem install chef --no-ri --no-rdoc
mkdir -p /etc/chef
cp /path/to/client.rb /etc/chef
cp /path/to/MYORG-validator.pem /etc/chef/validation.pem
echo '{ "run_list": [ "role[esb]" ] }' > /etc/chef/attributes.json

then when I run

chef-client --json-attributes /etc/chef/attributes.json

All recipes run successfully then the following error is displayed:

<snip>
[2012-11-23T13:39:59+01:00] INFO: execute[start service] ran successfully
[2012-11-23T13:40:05+01:00] ERROR: Running exception handlers
[2012-11-23T13:40:05+01:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2012-11-23T13:40:05+01:00] ERROR: Exception handlers complete
[2012-11-23T13:40:05+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2012-11-23T13:40:05+01:00] FATAL: Net::HTTPServerException: 403 "Forbidden"

Can anyone help me resolve the error ‘Net::HTTPServerException: 403 “Forbidden”’?

more →
1 497  
0
How to use ark on a node

Hi,
i added the ark cookbook in the run list of my hosted chef node.
Now i want to use ark in another cookbook, that comes right after the ark cookbook.

I included the ark recipe in the recipe of the cookbook that comes right after the ark cookbook. The code looks like this:

include_recipe “ark”

dowloading olio

subversion “checkout-olio” do

repository "https://svn.apache.org/repos/asf/incubator/olio/"
revision "HEAD"
destination "/usr/local"
action :checkout

end

install faban

ark “install-faban” do

url "http://java.net/projects/faban/downloads/download/faban-kit/faban-kit-022311.tar.gz"
version "1.0"
path "/usr/local"
append_env_path true

end

When i upload this file and run the client the following error occurs: NoMethodError: undefined method `url' for Chef::Resource::Ark

Can somebody please tell me where the problem is?

more →
0 293