[chef] Re: Re: Re: Re: I broke my install of 0.8.8 ...


Chronological Thread 
  • From: Adam Jacob < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: Re: Re: I broke my install of 0.8.8 ...
  • Date: Mon, 29 Mar 2010 18:53:35 -0700

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" 
< >
 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?



:~$
 curl http://localhost:5984/chef/node_
{"error":"not_found","reason":"missing"}
:~$

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. :)

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) ~ {: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: 



!DSPAM:4bb15360284963628912299!






Archive powered by MHonArc 2.6.16.

§