- From: Halezov Ivan <
>
- To:
- Subject: [chef] Re: Re: trouble with chef server
- Date: Thu, 15 Dec 2011 17:12:46 +0400
The following messages i can find in chef server.log, when executing
"knife node list":
merb : chef-server (api) : worker (port 4000) ~ Params:
{"format"=>nil, "action"=>"index",
"controller"=>"nodes"}
merb : chef-server (api) : worker (port 4000) ~
merb : chef-server (api) : worker (port 4000) ~ Started request
handling: Thu Dec 15 16:07:31 +0300 2011
merb : chef-server (api) : worker (port 4000) ~ Params:
{"format"=>nil, "action"=>"index",
"controller"=>"nodes"}
merb : chef-server (api) : worker (port 4000) ~ Named route node
could not be generated with {:id=>nil} -
(Merb::Router::GenerationError)
/usr/lib/ruby/1.8/merb-core/dispatch/router/route.rb:148:in
`generate'
/usr/lib/ruby/1.8/merb-core/dispatch/router.rb:237:in `url'
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:350:in
`url'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:563:in
`absolute_url'
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:401:in
`absolute_url'
/usr/share/chef-server-api/app/controllers/nodes.rb:35:in
`index'
/usr/lib/ruby/1.8/merb-core/controller/mixins/render.rb:129:in
`inject'
/usr/share/chef-server-api/app/controllers/nodes.rb:34:in `each'
/usr/share/chef-server-api/app/controllers/nodes.rb:34:in
`inject'
/usr/share/chef-server-api/app/controllers/nodes.rb:34:in
`index'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`send'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`_call_action'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:289:in
`_dispatch'
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:252:in
`_dispatch'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:102:in
`dispatch_action'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:74:in
`handle'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:36:in
`handle'
/usr/lib/ruby/1.8/merb-core/rack/application.rb:17:in `call'
/usr/lib/ruby/1.8/merb-core/rack/middleware/static.rb:28:in
`call'
/usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
/usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
/usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
/usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/1.8/thin/server.rb:156:in `start'
/usr/lib/ruby/1.8/merb-core/rack/adapter/thin.rb:30:in
`start_server'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:298:in
`start_at_port'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:128:in
`start'
/usr/lib/ruby/1.8/merb-core/server.rb:174:in `bootup'
/usr/lib/ruby/1.8/merb-core/server.rb:159:in `daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in `fork'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in `daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:35:in `start'
/usr/lib/ruby/1.8/merb-core.rb:170:in `start'
/usr/sbin/chef-server:86
--
With, regards
Ivan Halezov
-----------------------------
www.oversun.ru
+7 (495) 544-59-69
15.12.2011 16:55, Bryan McLellan пишет:
"
type="cite">
Does the chef server have any relevant error messages? Both
knife and the webui act as clients to the chef server.
Bryan
On Dec 15, 2011 7:35 AM, "Halezov Ivan"
<
">
>
wrote:
Hi All!
I have a trouble with our chef server now..
I can not login to chef-server-webui
Went trying to login, i get the folowing error in
server-webiu.log :
erb : chef-server-webui : worker (port 4040) ~
Started request handling: Thu Dec 15 13:05:10 +0300
2011
merb : chef-server-webui : worker (port 4040) ~
Params: {"name"=>"ihalezov", "submit"=>"login",
"action"=>"login_exec", "controller"=>"users",
"password"=>"[FILTERED]"}
merb : chef-server-webui : worker (port 4040) ~
Redirecting to: / (302)
merb : chef-server-webui : worker (port 4040) ~
{:before_filters_time=>0.091999,
:action_time=>0.111999,
:dispatch_time=>0.111999,
:after_filters_time=>0.0}
merb : chef-server-webui : worker (port 4040) ~
merb : chef-server-webui : worker (port 4040) ~
Started request handling: Thu Dec 15 13:05:10 +0300
2011
merb : chef-server-webui : worker (port 4040) ~
Params: {"action"=>"index",
"controller"=>"nodes"}
merb : chef-server-webui : worker (port 4040) ~
undefined method `empty?' for nil:NilClass -
(NoMethodError)
/usr/share/chef-server-webui/app/views/nodes/index.html.haml:14:in
`__usr__share__chef__server__webui__app__views__nodes__index_html_haml'
/usr/lib/ruby/1.8/merb-core/controller/mixins/render.rb:137:in
`send'
/usr/lib/ruby/1.8/merb-core/controller/mixins/render.rb:137:in
`render'
/usr/share/chef-server-webui/app/controllers/nodes.rb:43:in
`index'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`send'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in
`_call_action'
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:289:in
`_dispatch'
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:252:in
`_dispatch'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:102:in
`dispatch_action'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:74:in
`handle'
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:36:in
`handle'
/usr/lib/ruby/1.8/merb-core/rack/application.rb:17:in
`call'
/usr/lib/ruby/1.8/merb-core/rack/middleware/static.rb:28:in
`call'
/usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
/usr/lib/ruby/1.8/thin/connection.rb:76:in
`pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
/usr/lib/ruby/1.8/thin/connection.rb:74:in
`pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
/usr/lib/ruby/1.8/thin/connection.rb:42:in
`receive_data'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
/usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/1.8/thin/server.rb:156:in `start'
/usr/lib/ruby/1.8/merb-core/rack/adapter/thin.rb:30:in
`start_server'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:298:in
`start_at_port'
/usr/lib/ruby/1.8/merb-core/rack/adapter/abstract.rb:128:in
`start'
/usr/lib/ruby/1.8/merb-core/server.rb:174:in `bootup'
/usr/lib/ruby/1.8/merb-core/server.rb:159:in
`daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in `fork'
/usr/lib/ruby/1.8/merb-core/server.rb:143:in
`daemonize'
/usr/lib/ruby/1.8/merb-core/server.rb:35:in `start'
/usr/lib/ruby/1.8/merb-core.rb:170:in `start'
/usr/sbin/chef-server-webui:73
I think there is some problem with node list generation..
Also, when i try to get node list with knife ( ~# knife
node list), i can see this error:
HTTP Request Returned 500 Internal Server Error:
Named route node could not be generated with
{:id=>nil}
Can anybody help with it?
Many thanks in advance.
--
With, regards
Ivan Halezov
-----------------------------
www.oversun.ru
+7 (495) 544-59-69
|
Archive powered by MHonArc 2.6.16.