Upgrade from 0.10.4 to 0.10.8 via Ubuntu packages prevents logins


#1

Hello,

I just did an upgrade on our Chef server using "apt-get upgrade chef"
and it appeared to upgrade all the packages and the server is running.
However, we can now no longer log into the Chef server via the WebUI
and all of our clients (including knife) no longer are allowed access.
It appears that the data files have not been changed.

When logging in as a previously allowed use, chef-server throws this traceback:

merb : chef-server (api) : worker (port 4000) ~ Cannot load user
- (Merb::ControllerExceptions::NotFound)
/usr/share/chef-server-api/app/controllers/users.rb:38:in show' /usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:insend’
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`_call_action’

/usr/sbin/chef-server:86

Any help is appreciated.

-J


#2

Figured it out. The upgrade also upgraded couchdb to 1.0.1. Copied the
chef.couch file to the 1.0.1 data directory and knife and clients seem
to work.

WebUI is throwing “HTTPServer Exception 500” errors though just trying to load:

-J

On Thu, Feb 23, 2012 at 12:15 PM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

Hello,

I just did an upgrade on our Chef server using "apt-get upgrade chef"
and it appeared to upgrade all the packages and the server is running.
However, we can now no longer log into the Chef server via the WebUI
and all of our clients (including knife) no longer are allowed access.
It appears that the data files have not been changed.

When logging in as a previously allowed use, chef-server throws this traceback:

merb : chef-server (api) : worker (port 4000) ~ Cannot load user
- (Merb::ControllerExceptions::NotFound)
/usr/share/chef-server-api/app/controllers/users.rb:38:in show' /usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:insend’
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`_call_action’

/usr/sbin/chef-server:86

Any help is appreciated.

-J


#3

On Thu, Feb 23, 2012 at 12:23 PM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

Figured it out. The upgrade also upgraded couchdb to 1.0.1. Copied the
chef.couch file to the 1.0.1 data directory and knife and clients seem
to work.

WebUI is throwing “HTTPServer Exception 500” errors though just trying to load:

https://gist.github.com/1894477

Figured this out too. For some reason the Chef Ubuntu package
overwrote my webui.pem file. Restored the correct PEM from a backup
and the UI started working again.

-J