Chef-0.8.10 web login with default password failing


#1

I’ve just installed a fresh copy of chef-server on an Ubuntu 9.10 EC2
instance (ami-857829c0)

I can’t login. Details below. Any help would be appreciated.

thanks,

Mike

http://chef.failmode.com:4040/

/etc/chef/server.rb

web_ui_admin_user_name "admin"
web_ui_admin_default_password “1R0KVK8XdWca11Rdrh8z”

Error displayed on web page: “Could not complete logging in.”

root@ip-10-160-81-191:/etc/service/chef-server/log/main# tail -f current

2010-04-02_14:50:52.47123 INFO: Authenticating client chef-webui
2010-04-02_14:50:52.49012 merb : worker (port 4000) ~ Cannot load user admin

  • (Merb::ControllerExceptions::NotFound)
    2010-04-02_14:50:52.49013
    /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.10/app/controllers/users.rb:37:in
    show' 2010-04-02_14:50:52.49013 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:insend’
    2010-04-02_14:50:52.49014
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in
    _call_action' 2010-04-02_14:50:52.49014 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in_dispatch’
    2010-04-02_14:50:52.49015
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in
    _dispatch' 2010-04-02_14:50:52.49016 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:indispatch_action’
    2010-04-02_14:50:52.49016
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in
    handle' 2010-04-02_14:50:52.49017 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:inhandle’
    2010-04-02_14:50:52.49017
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in
    call' 2010-04-02_14:50:52.49018 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:incall’
    2010-04-02_14:50:52.49019
    /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in
    pre_process' 2010-04-02_14:50:52.49020 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:incatch’
    2010-04-02_14:50:52.49020
    /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in
    pre_process' 2010-04-02_14:50:52.49021 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:inprocess’
    2010-04-02_14:50:52.49021
    /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in
    receive_data' 2010-04-02_14:50:52.49024 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine’
    2010-04-02_14:50:52.49025
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
    run' 2010-04-02_14:50:52.49025 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:instart’
    2010-04-02_14:50:52.49026
    /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' 2010-04-02_14:50:52.49026 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:instart_server’
    2010-04-02_14:50:52.49027
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in
    start_at_port' 2010-04-02_14:50:52.49027 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:instart’
    2010-04-02_14:50:52.49028
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in
    bootup' 2010-04-02_14:50:52.49029 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:instart’
    2010-04-02_14:50:52.49029
    /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' 2010-04-02_14:50:52.49030 /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.10/bin/chef-server:77 2010-04-02_14:50:52.49030 /usr/bin/chef-server:19:inload’
    2010-04-02_14:50:52.49031 /usr/bin/chef-server:19
    2010-04-02_14:50:52.49049 merb : worker (port 4000) ~ Params:
    {“format”=>nil, “action”=>“show”, “id”=>“admin”,
    “controller”=>“chef_server_api/users”}
    2010-04-02_14:50:52.49092 merb : worker (port 4000) ~
    2010-04-02_14:50:52.49092

#2

This happened to me twice yesterday installing 0.8.8. I couldn’t find a better solution than reinstalling, and being very very careful to get the first login right…

John

On Apr 2, 2010, at 8:00 AM, Mike Bailey wrote:

I’ve just installed a fresh copy of chef-server on an Ubuntu 9.10 EC2 instance (ami-857829c0)

I can’t login. Details below. Any help would be appreciated.

thanks,

Mike

http://chef.failmode.com:4040/

/etc/chef/server.rb

web_ui_admin_user_name "admin"
web_ui_admin_default_password “1R0KVK8XdWca11Rdrh8z”

Error displayed on web page: “Could not complete logging in.”

root@ip-10-160-81-191:/etc/service/chef-server/log/main# tail -f current

2010-04-02_14:50:52.47123 INFO: Authenticating client chef-webui
2010-04-02_14:50:52.49012 merb : worker (port 4000) ~ Cannot load user admin - (Merb::ControllerExceptions::NotFound)
2010-04-02_14:50:52.49013 /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.10/app/controllers/users.rb:37:in show' 2010-04-02_14:50:52.49013 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:insend’
2010-04-02_14:50:52.49014 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action' 2010-04-02_14:50:52.49014 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in_dispatch’
2010-04-02_14:50:52.49015 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch' 2010-04-02_14:50:52.49016 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:indispatch_action’
2010-04-02_14:50:52.49016 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle' 2010-04-02_14:50:52.49017 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:inhandle’
2010-04-02_14:50:52.49017 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call' 2010-04-02_14:50:52.49018 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:incall’
2010-04-02_14:50:52.49019 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' 2010-04-02_14:50:52.49020 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:incatch’
2010-04-02_14:50:52.49020 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' 2010-04-02_14:50:52.49021 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:inprocess’
2010-04-02_14:50:52.49021 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' 2010-04-02_14:50:52.49024 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine’
2010-04-02_14:50:52.49025 /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' 2010-04-02_14:50:52.49025 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:instart’
2010-04-02_14:50:52.49026 /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' 2010-04-02_14:50:52.49026 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:instart_server’
2010-04-02_14:50:52.49027 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port' 2010-04-02_14:50:52.49027 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:instart’
2010-04-02_14:50:52.49028 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup' 2010-04-02_14:50:52.49029 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:instart’
2010-04-02_14:50:52.49029 /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' 2010-04-02_14:50:52.49030 /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.10/bin/chef-server:77 2010-04-02_14:50:52.49030 /usr/bin/chef-server:19:inload’
2010-04-02_14:50:52.49031 /usr/bin/chef-server:19
2010-04-02_14:50:52.49049 merb : worker (port 4000) ~ Params: {“format”=>nil, “action”=>“show”, “id”=>“admin”, “controller”=>“chef_server_api/users”}
2010-04-02_14:50:52.49092 merb : worker (port 4000) ~
2010-04-02_14:50:52.49092


John Merrells
http://johnmerrells.com
+1.415.244.5808


#3

On Fri, Apr 2, 2010 at 8:00 AM, Mike Bailey mike@bailey.net.au wrote:

I’ve just installed a fresh copy of chef-server on an Ubuntu 9.10 EC2
instance (ami-857829c0)
I can’t login. Details below. Any help would be appreciated.

I had to restart the chef-server-webui once after installation when I
configured that field for it to work. It still wants me to change the
password after login pretty regularly now.

Bryan