[chef] Post installation issues


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Post installation issues
  • Date: Thu, 6 Aug 2009 04:52:09 -0700 (PDT)

Hello, 

I am encountering a few problems with my first installation of Chef. I have
installed Chef on a fresh install of Ubuntu 9.04, which uses universe
repositories (this is on a linode server, fyi). 

After installation, I have run the following commands to get started with 
Chef:
aptitude update && aptitude safe-upgrade
aptitude install ubuntu-standard build-essential git-core 
aptitude install ruby rubygems vim-ruby libreadline-ruby ruby1.8-dev
libopenssl-ruby1.8 rdoc ri irb wget ssl-cert vim

I have added /var/lib/gems/1.8/bin/ to my PATH.

Then I installed Chef:
gem sources -a http://gems.opscode.com && gem install ohai chef

I created ~/chef.json:
{ "chef": { "server_fqdn": "mylinode.server.com"}, "recipes": "chef::server" }

And  ~/solo.rb:
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"

After that, I ran this as root:
chef-solo -c ~/solo.rb -j ~/chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz

The installation went smoothly. The only things was that couchdb hanged after
starting. (See
https://cloud-support.engineyard.com/discussions/problems/284-deploy-hangs-on-running-custom-recipes-if-they-exist)
But, running "/etc/init.d/couchdb restart" in another terminal fixed that
issue, and Chef-server installation continued.

After installing Chef-server, I edited /etc/chef/server.rb to update
authorized_openid_providers and authorized_openid_identifiers. Then restarted
apache.

At that point, I can reach https://mylinode.server.com, I can log in using
openid, but when I am redirected back from my openid provider, I get a server
500 error.

The logs (/var/log/chef/server.log) contain this:
 ~ Started request handling: Thu Aug 06 11:47:37 +0000 2009
 ~ Params: {"action"=>"index", "controller"=>"chef_server_slice/nodes"}
 ~ 404 "Object Not Found" - (Net::HTTPServerException)
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!'
/var/lib/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:232:in `run_request'
/var/lib/gems/1.8/gems/chef-0.7.4/lib/chef/rest.rb:85:in `get_rest'
/var/lib/gems/1.8/gems/chef-0.7.4/lib/chef/couchdb.rb:124:in `list'
/var/lib/gems/1.8/gems/chef-0.7.4/lib/chef/node.rb:351:in `list'
/var/lib/gems/1.8/gems/chef-server-slice-0.7.4/app/controllers/nodes.rb:31:in
`index'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in
`send'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in
`_call_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:289:in
`_dispatch'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/merb_controller.rb:252:in
`_dispatch'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:100:in
`dispatch_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:100:in
`synchronize'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:100:in
`dispatch_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:74:in
`handle'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:36:in
`handle'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/rack/application.rb:17:in
`call'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:in
`process_request'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in
`main_loop'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/application_spawner.rb:118:in
`run'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/application_spawner.rb:69:in
`spawn_application'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:in
`safe_fork'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/application_spawner.rb:62:in
`spawn_application'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/application_spawner.rb:45:in
`spawn_application'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:158:in
`spawn_application'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:in
`handle_spawn_application'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in
`__send__'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in
`main_loop'
/var/lib/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'
/var/lib/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server:61
 ~ Params: {"action"=>"index", "controller"=>"chef_server_slice/nodes"}
 ~ 

Did I miss something during the installation process? Any hint is welcome.
Thank you very much in advance.

Adrien.



Archive powered by MHonArc 2.6.16.

§