Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.8.2
-
Fix Version/s: None
-
Component/s: WebUI
-
Labels:None
Description
Starting the webui failed on first run due to the admin user not existing. What creates this user? There was a bit of time after chef-server started that I tried to start the webui, as I was looking up the command, so I'm feeling like the admin user creation was triggered by the start of the webui, in which case it doesn't seem right that we fail, we should at least retry once in this case.
ubuntu@domU-12-31-39-00-C1-51:/var/lib/gems/1.8/bin$ sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002
Loading init file from /var/lib/gems/1.8/gems/chef-server-0.8.0/config/init-webui.rb
Loading /var/lib/gems/1.8/gems/chef-server-0.8.0/config/environments/development.rb
~ Loaded slice 'ChefServerWebui' ...
WARN: HTTP Request Returned 404 Not Found: Cannot load user admin
~ Compiling routes...
~ Could not find resource model Node
~ Could not find resource model Role
~ Could not find resource model Search
~ Could not find resource model Cookbook
~ Could not find resource model Client
~ Could not find resource model Databag
~ Could not find resource model DatabagItem
/var/lib/gems/1.8/gems/chef-server-0.8.0/config/init-webui.rb:32: uninitialized constant OpenID (NameError)
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/bootloader.rb:1258:in `call'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/bootloader.rb:1258:in `run'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/bootloader.rb:1258:in `each'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/bootloader.rb:1258:in `run'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/bootloader.rb:99:in `run'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:172:in `bootup'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in `start'
from /var/lib/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in `start'
from /var/lib/gems/1.8/gems/chef-server-0.8.0/bin/chef-server-webui:73
from /var/lib/gems/1.8/bin/chef-server-webui:19:in `load'
from /var/lib/gems/1.8/bin/chef-server-webui:19
ubuntu@domU-12-31-39-00-C1-51:/var/lib/gems/1.8/bin$ sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002
Loading init file from /var/lib/gems/1.8/gems/chef-server-0.8.0/config/init-webui.rb
Loading /var/lib/gems/1.8/gems/chef-server-0.8.0/config/environments/development.rb
~ Loaded slice 'ChefServerWebui' ...
~ Compiling routes...
~ Could not find resource model Node
~ Could not find resource model Role
~ Could not find resource model Search
~ Could not find resource model Cookbook
~ Could not find resource model Client
~ Could not find resource model Databag
~ Could not find resource model DatabagItem
~ Activating slice 'ChefServerWebui' ...
merb : worker (port 4002) ~ Starting Thin at port 4002
merb : worker (port 4002) ~ Using Thin adapter on host 0.0.0.0 and port 4002.
merb : worker (port 4002) ~ Successfully bound to port 4002
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
Per kallistec, user created here:
http://github.com/opscode/chef/blob/master/chef-server-webui/lib/chef-server-webui.rb#L131