I broke my install of 0.8.8

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list … spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~ knife node list /usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in `run_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in `get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in `list' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26 from /usr/bin/knife:19:in `load' from /usr/bin/knife:19 jmiller@srv-101-03:~ knife client list
[
“chef-validator”,
“chef-webui”,
“jmiller”,
“srv-101-03.mydomain.removed”
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~ knife node create sample.mydomain.removed INFO: Created (or updated) node[sample.mydomain.removed] jmiller@srv-101-03:~ knife node show sample.mydomain.removed
{
“name”: “sample.mydomain.removed”,
“attributes”: {

},
“json_class”: “Chef::Node”,
“run_list”: [

],
“defaults”: {

},
“overrides”: {

},
“chef_type”: “node”
}
jmiller@srv-101-03:~ knife node list /usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in `run_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in `get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in `list' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26 from /usr/bin/knife:19:in `load' from /usr/bin/knife:19 jmiller@srv-101-03:~

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~ knife node show srv-101-03.mydomain.removed |more { "name": "srv-101-03.mydomain.removed", "attributes": { "kernel": { "modules": { "mptsas": { "size": "55824", "refcount": "4" }, "async_tx": { "size": "4096", "refcount": "3" }, ... jmiller@srv-101-03:~ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller’
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller’
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:inslice_url’
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:inindex’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:ineach’
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:inindex’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in_call_action’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:incatch’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in_dispatch’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:incall’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:inhandle’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:incall’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:inpre_process’
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:inpre_process’
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:inreceive_data’
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun’
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:instart’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:instart_at_port’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:inbootup’
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:instart’
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load’
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {“format”=>nil, “action”=>“index”, “controller”=>“chef_server_api/nodes”}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

Also a bug fixed and will be included in a release soon.

Sent from my iPhone

On Mar 29, 2010, at 6:29 PM, "Scott M. Likens" scott@likens.us wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is
not compatable with Chef .8.8, you should downgrade Merb back to
1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/
mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29
21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in
get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/
nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in
pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in
pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in
receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb: 57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in
start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:
174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb: 42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in
start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui: 76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/
controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/ _navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/
index.html.haml:4:in
__usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/ nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in
catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in
process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:
57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb: 174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:
42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:
76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:b
efore_filters_time=

3.7e-
05,
:d
ispatch_time=
0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:b
efore_filters_time=

3.7e-
05,
:d
ispatch_time=
0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node
with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller
jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a
reboot so not sure which actually caused the failure. I am
running knife to get a node list and it generates errors, also I
am able to pull a client list ... spent a few hours trying to
track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb: 296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:
106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb: 363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb: 296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:
106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb: 363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed
|more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?:
true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node
could not be generated with {:id=>nil} -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/ controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/
application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/ nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/ nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/
nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/ nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:
57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb: 165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil,
"action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~
{:a
ction_time=

0.000385,
:a
fter_filters_time=
8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed
up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is
not compatable with Chef .8.8, you should downgrade Merb back to
1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29
21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in
get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/
controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb: 57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in
start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:
165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server- webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/
controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/ nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/
nodes/index.html.haml:4:in
__usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/ controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/ dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/
dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:
57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb: 165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-
webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:b
efore_filters_time=

3.7e-
05,
:d
ispatch_time=
0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:b
efore_filters_time=

3.7e-
05,
:d
ispatch_time=
0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node
with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller <jassinpain@gmail.com

wrote:
Trouble with 0.8.8 after update from 0.8.6. there was also a
reboot so not sure which actually caused the failure. I am
running knife to get a node list and it generates errors, also I
am able to pull a client list ... spent a few hours trying to
track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb: 296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:
106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb: 363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb: 296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:
106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb: 363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show
srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? :
true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?:
true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node
could not be generated with {:id=>nil} -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/ controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/
controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/
controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:
57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb: 165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil,
"action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~
{:a
ction_time=

0.000385,
:a
fter_filters_time=
8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just to confirm:

Do you have only merb 1.0.15 installed? After uninstalling merb 1.1.0,
was chef-server fully restarted?

Are all the server related processes running? By default:

rabbitmq-server listens on port 5672.
chef-solr listens on port 8983.
chef-solr-indexer should have a connection established to port 5672.
chef-server listens on port 4000.
couchdb listens on port 5984.

If everything is running, then turn on debugging for the chef-server
(log_level :debug in /etc/chef/server.rb).

Capture the relevant log output from running

% knife node list

When the internal server error 500 happens.

On Mar 30, 2010, at 2:10 PM, Joshua Miller wrote:

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller
jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com
wrote:

Progress the webui is back up but "nodes and status" still
messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which
is not compatable with Chef .8.8, you should downgrade Merb
back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar
29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in
get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/
controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/ base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:
156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:
165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server- webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/
controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/ nodes/_navigation.html.haml:3:in
__usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml
'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/
nodes/index.html.haml:4:in
__usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml ' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/mixins/render.rb:137:insend'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/ controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb: 42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/
base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb: 156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/ adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/
adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb: 165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-
webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:before_filters_time

3.7e
-05
, :dispatch_time

0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index",
"controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~
{:before_filters_time

3.7e
-05
, :dispatch_time

0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that
got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a
node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller <jassinpain@gmail.com

wrote:
Trouble with 0.8.8 after update from 0.8.6. there was also a
reboot so not sure which actually caused the failure. I am
running knife to get a node list and it generates errors,
also I am able to pull a client list ... spent a few hours
trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/
rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create
sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/
rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/
node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/ application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the
upgrade:

jmiller@srv-101-03:~$ knife node show
srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900
seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes
match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/
_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node
could not be generated with {:id=>nil} -
(Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb- slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/
controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/
controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/ controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/ connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/
connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/ connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/
connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/ connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/ eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/
base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb: 156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/ server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/
server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb: 165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-
server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil,
"action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~
{:action_time

0.000385
, :after_filters_time

8.0e
-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkuyc/kACgkQO97WSdVpzT2zBACeJrhpRBFP5C3rgeoR6hMXPunz
OjAAmwWpAjLvZgSQsgpt5RoK/nio25K3
=nLuq
-----END PGP SIGNATURE-----

I did a dump of the chef couchdb and am sure this is the problem but do not know enough about couchdb to fix it .. doing research but if anyone just knows the answer.

{"chef_type": "node", "name": null, "_rev": "1-d40f879d3cbf5d93099b75619d03c8cf", "defaults": {}, "run_list": , "attributes": {}, "json_class": "Chef::Node", "_id": "61250eb6-62da-450e-a90a-97856291a2ee", "overrides": {}}^M
--==954fdeac87864055bc0716669a22d711==^M
Content-ID: 72b00c98-75c8-4ac8-8aed-723c60686d1c^M
Content-Length: 351^M
Content-MD5: mcsIj4Vf9ssbVNz8jjub2w==^M
Content-Type: application/json;charset=utf-8^M

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Box was rebooted just to make sure everything was nicely restarted

yes all processes are running

jmiller@srv-101-03:~$ !curl
curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I still agree there is a bad node name in the system but am not sure how to find it ...

server.log:

-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T23:59:27Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in load' /usr/bin/chef-server:19 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"} DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError) /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate'
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81 /usr/bin/chef-server:19:in load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~

On Mar 30, 2010, at 2:58 PM, Joshua Timberman wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just to confirm:

Do you have only merb 1.0.15 installed? After uninstalling merb 1.1.0, was chef-server fully restarted?

Are all the server related processes running? By default:

rabbitmq-server listens on port 5672.
chef-solr listens on port 8983.
chef-solr-indexer should have a connection established to port 5672.
chef-server listens on port 4000.
couchdb listens on port 5984.

If everything is running, then turn on debugging for the chef-server (log_level :debug in /etc/chef/server.rb).

Capture the relevant log output from running

% knife node list

When the internal server error 500 happens.

On Mar 30, 2010, at 2:10 PM, Joshua Miller wrote:

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkuyc/kACgkQO97WSdVpzT2zBACeJrhpRBFP5C3rgeoR6hMXPunz
OjAAmwWpAjLvZgSQsgpt5RoK/nio25K3
=nLuq
-----END PGP SIGNATURE-----

Joshua,
you probably want to access CouchDB's webui which is available from a
URL like http://localhost:5984/_utils/

On most installations, CouchDB configured to listen only on the
localhost/loopback interface, so you'll most likely want to set up an
SSH tunnel from port 5984 on your box to localhost:5984. From there,
you can navigate to the "chef" database and then select the nodes >
all_id view. This URL will probably work for that:
http://localhost:5984/_utils/database.html?chef/_design/nodes/_view/all_id

Then find the one with a null/blank id and delete it.

HTH,
Dan DeLeo

On Tue, Mar 30, 2010 at 5:15 PM, Joshua Miller jassinpain@gmail.com wrote:

I did a dump of the chef couchdb and am sure this is the problem but do not know enough about couchdb to fix it .. doing research but if anyone just knows the answer.

{"chef_type": "node", "name": null, "_rev": "1-d40f879d3cbf5d93099b75619d03c8cf", "defaults": {}, "run_list": , "attributes": {}, "json_class": "Chef::Node", "_id": "61250eb6-62da-450e-a90a-97856291a2ee", "overrides": {}}^M
--==954fdeac87864055bc0716669a22d711==^M
Content-ID: 72b00c98-75c8-4ac8-8aed-723c60686d1c^M
Content-Length: 351^M
Content-MD5: mcsIj4Vf9ssbVNz8jjub2w==^M
Content-Type: application/json;charset=utf-8^M

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Box was rebooted just to make sure everything was nicely restarted

yes all processes are running

jmiller@srv-101-03:~$ !curl
curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I still agree there is a bad node name in the system but am not sure how to find it ...

server.log:

-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T23:59:27Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in load' /usr/bin/chef-server:19 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"} DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError) /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate'
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81 /usr/bin/chef-server:19:in load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~

On Mar 30, 2010, at 2:58 PM, Joshua Timberman wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just to confirm:

Do you have only merb 1.0.15 installed? After uninstalling merb 1.1.0, was chef-server fully restarted?

Are all the server related processes running? By default:

rabbitmq-server listens on port 5672.
chef-solr listens on port 8983.
chef-solr-indexer should have a connection established to port 5672.
chef-server listens on port 4000.
couchdb listens on port 5984.

If everything is running, then turn on debugging for the chef-server (log_level :debug in /etc/chef/server.rb).

Capture the relevant log output from running

  % knife node list

When the internal server error 500 happens.

On Mar 30, 2010, at 2:10 PM, Joshua Miller wrote:

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkuyc/kACgkQO97WSdVpzT2zBACeJrhpRBFP5C3rgeoR6hMXPunz
OjAAmwWpAjLvZgSQsgpt5RoK/nio25K3
=nLuq
-----END PGP SIGNATURE-----

Run:

curl -X DELETE http://localhost:5984/chef/61250eb6-62da-450e-a90a-97856291a2ee

On the couchdb system to delete that node.

Adam

On Tue, Mar 30, 2010 at 5:15 PM, Joshua Miller jassinpain@gmail.com wrote:

I did a dump of the chef couchdb and am sure this is the problem but do not know enough about couchdb to fix it .. doing research but if anyone just knows the answer.

{"chef_type": "node", "name": null, "_rev": "1-d40f879d3cbf5d93099b75619d03c8cf", "defaults": {}, "run_list": , "attributes": {}, "json_class": "Chef::Node", "_id": "61250eb6-62da-450e-a90a-97856291a2ee", "overrides": {}}^M
--==954fdeac87864055bc0716669a22d711==^M
Content-ID: 72b00c98-75c8-4ac8-8aed-723c60686d1c^M
Content-Length: 351^M
Content-MD5: mcsIj4Vf9ssbVNz8jjub2w==^M
Content-Type: application/json;charset=utf-8^M

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Box was rebooted just to make sure everything was nicely restarted

yes all processes are running

jmiller@srv-101-03:~$ !curl
curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I still agree there is a bad node name in the system but am not sure how to find it ...

server.log:

-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T23:59:27Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in load' /usr/bin/chef-server:19 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"} DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError) /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate'
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81 /usr/bin/chef-server:19:in load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~

On Mar 30, 2010, at 2:58 PM, Joshua Timberman wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just to confirm:

Do you have only merb 1.0.15 installed? After uninstalling merb 1.1.0, was chef-server fully restarted?

Are all the server related processes running? By default:

rabbitmq-server listens on port 5672.
chef-solr listens on port 8983.
chef-solr-indexer should have a connection established to port 5672.
chef-server listens on port 4000.
couchdb listens on port 5984.

If everything is running, then turn on debugging for the chef-server (log_level :debug in /etc/chef/server.rb).

Capture the relevant log output from running

  % knife node list

When the internal server error 500 happens.

On Mar 30, 2010, at 2:10 PM, Joshua Miller wrote:

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkuyc/kACgkQO97WSdVpzT2zBACeJrhpRBFP5C3rgeoR6hMXPunz
OjAAmwWpAjLvZgSQsgpt5RoK/nio25K3
=nLuq
-----END PGP SIGNATURE-----

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

You rock thank you, that fixed it.

Joshua

On Mar 30, 2010, at 5:41 PM, Daniel DeLeo wrote:

Joshua,
you probably want to access CouchDB's webui which is available from a
URL like http://localhost:5984/_utils/

On most installations, CouchDB configured to listen only on the
localhost/loopback interface, so you'll most likely want to set up an
SSH tunnel from port 5984 on your box to localhost:5984. From there,
you can navigate to the "chef" database and then select the nodes >
all_id view. This URL will probably work for that:
http://localhost:5984/_utils/database.html?chef/_design/nodes/_view/all_id

Then find the one with a null/blank id and delete it.

HTH,
Dan DeLeo

On Tue, Mar 30, 2010 at 5:15 PM, Joshua Miller jassinpain@gmail.com wrote:

I did a dump of the chef couchdb and am sure this is the problem but do not know enough about couchdb to fix it .. doing research but if anyone just knows the answer.

{"chef_type": "node", "name": null, "_rev": "1-d40f879d3cbf5d93099b75619d03c8cf", "defaults": {}, "run_list": , "attributes": {}, "json_class": "Chef::Node", "_id": "61250eb6-62da-450e-a90a-97856291a2ee", "overrides": {}}^M
--==954fdeac87864055bc0716669a22d711==^M
Content-ID: 72b00c98-75c8-4ac8-8aed-723c60686d1c^M
Content-Length: 351^M
Content-MD5: mcsIj4Vf9ssbVNz8jjub2w==^M
Content-Type: application/json;charset=utf-8^M

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Box was rebooted just to make sure everything was nicely restarted

yes all processes are running

jmiller@srv-101-03:~$ !curl
curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I still agree there is a bad node name in the system but am not sure how to find it ...

server.log:

-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T23:59:27Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in load' /usr/bin/chef-server:19 merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"} DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError) /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/router/route.rb:148:in generate'
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.0.15/lib/merb-slices/controller_mixin.rb:157:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:412:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:315:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/merb_controller.rb:252:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:102:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/dispatcher.rb:36:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:296:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/adapter/abstract.rb:128:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81 /usr/bin/chef-server:19:in load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~

On Mar 30, 2010, at 2:58 PM, Joshua Timberman wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just to confirm:

Do you have only merb 1.0.15 installed? After uninstalling merb 1.1.0, was chef-server fully restarted?

Are all the server related processes running? By default:

rabbitmq-server listens on port 5672.
chef-solr listens on port 8983.
chef-solr-indexer should have a connection established to port 5672.
chef-server listens on port 4000.
couchdb listens on port 5984.

If everything is running, then turn on debugging for the chef-server (log_level :debug in /etc/chef/server.rb).

Capture the relevant log output from running

  % knife node list

When the internal server error 500 happens.

On Mar 30, 2010, at 2:10 PM, Joshua Miller wrote:

no luck, any other ideas out there?

Joshua

On Mar 29, 2010, at 7:24 PM, Joshua Timberman wrote:

/etc/init.d/chef-server restart

Also make sure the following services are running:

  • rabbitmq-server
  • chef-solr
  • chef-solr-indexer

On Mon, Mar 29, 2010 at 8:15 PM, Joshua Miller jassinpain@gmail.com wrote:

sorry not sure how to restart the API maybe I am missing a process?

On Mar 29, 2010, at 6:57 PM, Adam Jacob wrote:

Restart the chef-server-API as well.

Sent from my iPhone

On Mar 29, 2010, at 6:53 PM, Joshua Miller jassinpain@gmail.com wrote:

Progress the webui is back up but "nodes and status" still messed up and knife still sucks.

Thank you guys,

Joshua

jmiller@srv-101-03:~$ gem list merb

*** LOCAL GEMS ***

merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
jmiller@srv-101-03:~$

Joshua

On Mar 29, 2010, at 6:29 PM, Scott M. Likens wrote:

Hi Joshua,

After looking at your stack trace, you are using Merb 1.1 which is not compatable with Chef .8.8, you should downgrade Merb back to 1.0.15 if you want the webui to work at all.

Damm

/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in `send'

On Mar 29, 2010, at 6:26 PM, Joshua Miller wrote:

Does not look like it unless I am missing something here?

jmiller@srv-101-03:~$ curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
jmiller@srv-101-03:~$

I should note that the webui is not working:

Generation Error 500
Sorry about that...

server.log
merb : worker (port 4040) ~ Started request handling: Mon Mar 29 21:25:06 -0400 2010
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
ERROR: 500 "Internal Server Error"
/usr/lib/ruby/1.8/net/http.rb:2097:in error!' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:32:in index' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start' /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76 /usr/bin/chef-server-webui:19:in load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Named route not found: new_node - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:153:in slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/_navigation.html.haml:3:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes____navigation_html_haml'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:326:in partial'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in map' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:321:in partial'
/usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/views/nodes/index.html.haml:4:in __usr__lib__ruby__gems__1_8__gems__chef__server__webui__0_8_8__app__views__nodes__index_html_haml' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in send'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:137:in render' /usr/lib/ruby/gems/1.8/gems/chef-server-webui-0.8.8/app/controllers/nodes.rb:38:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server-webui:76
/usr/bin/chef-server-webui:19:in `load'
/usr/bin/chef-server-webui:19
merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

merb : worker (port 4040) ~ Params: {"action"=>"index", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ {:before_filters_time=>3.7e-05, :dispatch_time=>0.035989, :action_time=>0.000433, :after_filters_time=>1.0e-05}
merb : worker (port 4040) ~

On Mar 29, 2010, at 6:14 PM, Adam Jacob wrote:

I'm going to go out on a limb and assume you have a node that got
created with a blank name. There is a ticket open about this:

http://tickets.opscode.com/browse/CHEF-1069

Check the contents of your CouchDB database, and look for a node with
no name. Delete it. :slight_smile:

Adam

On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller jassinpain@gmail.com wrote:

Trouble with 0.8.8 after update from 0.8.6. there was also a reboot so not sure which actually caused the failure. I am running knife to get a node list and it generates errors, also I am able to pull a client list ... spent a few hours trying to track id own and just am lost.

Any help is much appreciated.

Joshua

jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$ knife client list
[
"chef-validator",
"chef-webui",
"jmiller",
"srv-101-03.mydomain.removed"
]
jmiller@srv-101-03:~$

jmiller@srv-101-03:~$ knife node create sample.mydomain.removed
INFO: Created (or updated) node[sample.mydomain.removed]
jmiller@srv-101-03:~$ knife node show sample.mydomain.removed
{
"name": "sample.mydomain.removed",
"attributes": {

},
"json_class": "Chef::Node",
"run_list": [

],
"defaults": {

},
"overrides": {

},
"chef_type": "node"
}
jmiller@srv-101-03:~$ knife node list
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:296:in run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/rest.rb:106:in get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/node.rb:363:in list'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/knife/node_list.rb:35:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/lib/chef/application/knife.rb:110:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/knife:26
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
jmiller@srv-101-03:~$

I am also able to show nodes that existed prior to the upgrade:

jmiller@srv-101-03:~$ knife node show srv-101-03.mydomain.removed |more
{
"name": "srv-101-03.mydomain.removed",
"attributes": {
"kernel": {
"modules": {
"mptsas": {
"size": "55824",
"refcount": "4"
},
"async_tx": {
"size": "4096",
"refcount": "3"
},
...
jmiller@srv-101-03:~$ mydomain.removed

server.log

DEBUG: Request time difference: 0.21357, within 900 seconds? : true
DEBUG: Candidate Block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Request decrypted block is: 'Method:GET
Hashed Path:bEM+o9tCkqf41JkAi8jgkkr5ZvU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2010-03-30T00:46:45Z
X-Ops-UserId:jmiller'
Candidate content hash is: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
Request Content Hash is: '2jmj7l5rSw0yVb/vlWAYkK/YBwk='
Signatures match: true, Allowed Time Skew: true, Hashes match?: true

DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes/_view/all_id
merb : worker (port 4000) ~ Named route chef_server_api_node could not be generated with {:id=>nil} - (Merb::Router::GenerationError)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/router/route.rb:150:in generate' /usr/lib/ruby/gems/1.8/gems/merb-slices-1.1.0/lib/merb-slices/controller_mixin.rb:157:in slice_url'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/application.rb:55:in absolute_slice_url' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:32:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/mixins/render.rb:129:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in each'
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in inject' /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.8.8/app/controllers/nodes.rb:31:in index'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in send' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:321:in _call_action'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:289:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in catch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/abstract_controller.rb:284:in _dispatch' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:285:in _dispatch'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:262:in _call' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/controller/merb_controller.rb:252:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:98:in dispatch_action' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:74:in handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/dispatch/dispatcher.rb:34:in handle' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/application.rb:17:in call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/middleware/static.rb:28:in call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:76:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:74:in pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:57:in process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:42:in receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/thin.rb:30:in start_server' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:298:in start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/rack/adapter/abstract.rb:131:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:174:in bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core/server.rb:42:in start' /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.0/lib/merb-core.rb:165:in start'
/usr/lib/ruby/gems/1.8/gems/chef-server-0.8.8/bin/chef-server:81
/usr/bin/chef-server:19:in `load'
/usr/bin/chef-server:19
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"chef_server_api/nodes"}
merb : worker (port 4000) ~ {:action_time=>0.000385, :after_filters_time=>8.0e-06, :before_filters_time=>8.0e-06, :dispatch_time=>0.009856}
merb : worker (port 4000)

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

!DSPAM:4bb15360284963628912299!

--
Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.334.RUBY E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAkuyc/kACgkQO97WSdVpzT2zBACeJrhpRBFP5C3rgeoR6hMXPunz
OjAAmwWpAjLvZgSQsgpt5RoK/nio25K3
=nLuq
-----END PGP SIGNATURE-----