- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: I broke my install of 0.8.8 ...
- Date: Mon, 29 Mar 2010 18:14:46 -0700
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. :)
Adam
On Mon, Mar 29, 2010 at 6:01 PM, Joshua Miller
<
>
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
>
>
>
>
:~$
>
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
>
:~$
>
knife client list
>
[
>
"chef-validator",
>
"chef-webui",
>
"jmiller",
>
"srv-101-03.mydomain.removed"
>
]
>
:~$
>
>
>
>
:~$
>
knife node create sample.mydomain.removed
>
INFO: Created (or updated) node[sample.mydomain.removed]
>
:~$
>
knife node show sample.mydomain.removed
>
{
>
"name": "sample.mydomain.removed",
>
"attributes": {
>
>
},
>
"json_class": "Chef::Node",
>
"run_list": [
>
>
],
>
"defaults": {
>
>
},
>
"overrides": {
>
>
},
>
"chef_type": "node"
>
}
>
:~$
>
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
>
:~$
>
>
I am also able to show nodes that existed prior to the upgrade:
>
>
:~$
>
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"
>
},
>
...
>
:~$
>
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:
- [chef] I broke my install of 0.8.8 ..., Joshua Miller, 03/29/2010
- [chef] Re: I broke my install of 0.8.8 ..., Adam Jacob, 03/29/2010
- [chef] Re: Re: I broke my install of 0.8.8 ..., Joshua Miller, 03/29/2010
- [chef] Re: Re: Re: I broke my install of 0.8.8 ..., Scott M. Likens, 03/29/2010
- [chef] Re: Re: Re: Re: I broke my install of 0.8.8 ..., Joshua Miller, 03/29/2010
- [chef] Re: Re: Re: Re: Re: I broke my install of 0.8.8 ..., Adam Jacob, 03/29/2010
- [chef] Re: Re: Re: Re: Re: Re: I broke my install of 0.8.8 ..., Joshua Miller, 03/29/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: I broke my install of 0.8.8 ..., Joshua Timberman, 03/29/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: I broke my install of 0.8.8 ..., Joshua Miller, 03/30/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: I broke my install of 0.8.8 ..., Joshua Timberman, 03/30/2010
- [chef] Re: I broke my install of 0.8.8 ..., Joshua Miller, 03/30/2010
- [chef] Re: Re: I broke my install of 0.8.8 ..., Daniel DeLeo, 03/30/2010
Archive powered by MHonArc 2.6.16.