[chef] Re: chef-server(-api) not starting on starting after fresh install [CHEF-2827]


Chronological Thread 
  • From: Infor Mation < >
  • To:
  • Subject: [chef] Re: chef-server(-api) not starting on starting after fresh install [CHEF-2827]
  • Date: Thu, 22 Dec 2011 16:36:15 -0800

Quoting Info 
< >:


Solved it by:

downgrading couchdb to 0.11.0-2.3 from 1.1.1-1

downgrading rubygems to 1.3.7-3 from 1.8.12-1

now it starts!

THANK YOU very much!

-m


ok, out of the fire, into the frying pan. now that chef-server starts, chef-server-webui *doesn't* start.

It appears related to whatever's listening on port 4000 (the API, I'm guessing), but the output from trying to run chef-server-webui is:

# /usr/sbin/chef-server-webui -p 4040 -e production -a thin -L /var/log/chef/server-webui.log -C /etc/chef/webui.rb -u chef -G chef
Loading init file from /usr/share/chef-server-webui/config/init.rb
[Thu, 22 Dec 2011 16:34:04 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
[Thu, 22 Dec 2011 16:34:04 -0800] ERROR: Server returned error for http://localhost:4000/users/admin, retrying 1/5 in 3s
[Thu, 22 Dec 2011 16:34:07 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
[Thu, 22 Dec 2011 16:34:07 -0800] ERROR: Server returned error for http://localhost:4000/users/admin, retrying 2/5 in 6s
[Thu, 22 Dec 2011 16:34:13 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
[Thu, 22 Dec 2011 16:34:13 -0800] ERROR: Server returned error for http://localhost:4000/users/admin, retrying 3/5 in 10s
[Thu, 22 Dec 2011 16:34:23 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
[Thu, 22 Dec 2011 16:34:23 -0800] ERROR: Server returned error for http://localhost:4000/users/admin, retrying 4/5 in 27s
[Thu, 22 Dec 2011 16:34:50 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
[Thu, 22 Dec 2011 16:34:50 -0800] ERROR: Server returned error for http://localhost:4000/users/admin, retrying 5/5 in 59s
[Thu, 22 Dec 2011 16:35:49 -0800] INFO: HTTP Request Returned 500 Internal Server Error: uninitialized constant Mixlib::Authentication::MissingAuthenticationHeader
/usr/lib/ruby/1.8/net/http.rb:2105:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
        from /usr/lib/ruby/vendor_ruby/chef/rest.rb:245:in `api_request'
from /usr/lib/ruby/vendor_ruby/chef/rest.rb:296:in `retriable_rest_request'
        from /usr/lib/ruby/vendor_ruby/chef/rest.rb:226:in `api_request'
        from /usr/lib/ruby/vendor_ruby/chef/rest.rb:130:in `put_rest'
        from /usr/lib/ruby/vendor_ruby/chef/webui_user.rb:181:in `save'
        from /usr/share/chef-server-webui/config/init.rb:59
        from /usr/lib/ruby/1.8/merb-core/bootloader.rb:521:in `load'
        from /usr/lib/ruby/1.8/merb-core/bootloader.rb:521:in `load_initfile'
        from /usr/lib/ruby/1.8/merb-core/bootloader.rb:388:in `run'
        from /usr/lib/ruby/1.8/merb-core/bootloader.rb:99:in `run'
        from /usr/lib/ruby/1.8/merb-core/server.rb:172:in `bootup'
        from /usr/lib/ruby/1.8/merb-core/server.rb:42:in `start'
        from /usr/lib/ruby/1.8/merb-core.rb:170:in `start'
        from /usr/sbin/chef-server-webui:73


and for completenesses sake, here are all the packages i have in relation to mixlib(?)

# dpkg -l | grep mixlib
ii libmixlib-authentication-ruby 1.1.4-1 Ruby mixin client/server header signing authentication/verification
ii libmixlib-authentication-ruby1.8 1.1.2-1 Ruby mixin client/server header signing authentication/verification
ii libmixlib-cli-ruby 1.2.0-1 A Ruby mixin for creating command line applications
ii libmixlib-cli-ruby1.8 1.2.0-1 A Ruby 1.8 mixin for creating command line applications
ii libmixlib-config-ruby 1.1.2-2 Transitional package for ruby-mixlib-config
ii libmixlib-log-ruby 1.3.0-1 A gem that provides a simple mixin for log functionality
ii libmixlib-log-ruby1.8 1.1.0-1 A simple Ruby 1.8 mixin for creating a logger object
ii ruby-mixlib-config 1.1.2-2 Simple class based config mechanism for Ruby


oh, so, there's a happy ending of sorts,

upgrading libmixlib-authentication-ruby1.8 to 1.1.4-1 fixes it! Not being explicitly called out as a required version (eg ">= 1.1.3" like it's brother libmixlib-authentication-ruby) might be a small issue tho.

cheers,
-m




Archive powered by MHonArc 2.6.16.

§