- From: Paul Welch <
>
- To:
- Subject: [chef] Re: search returns error
- Date: Mon, 9 Apr 2012 12:36:46 -0400
/var/log/chef/server.log output when running search
merb : chef-server (api) : worker (port 4000) ~ Started request
handling: Mon Apr 09 12:34:34 -0400 2012
merb : chef-server (api) : worker (port 4000) ~ Params:
{"id"=>"users", "action"=>"show", "start"=>"0", "rows
"=>"1000", "sort"=>"", "controller"=>"search", "q"=>"groups%3Asysadmin"}
merb : chef-server (api) : worker (port 4000) ~
Net::HTTPServerException: 404 "Not Found" - (Chef::Exceptions
::SolrConnectionError)
/usr/lib/ruby/vendor_ruby/chef/solr_query/solr_http_request.rb:127:in
`request_failed!'
/usr/lib/ruby/vendor_ruby/chef/solr_query/solr_http_request.rb:107:in `run'
/usr/lib/ruby/vendor_ruby/chef/solr_query/solr_http_request.rb:66:in `select'
/usr/lib/ruby/vendor_ruby/chef/solr_query.rb:119:in `results'
/usr/lib/ruby/vendor_ruby/chef/solr_query.rb:115:in `object_ids'
/usr/lib/ruby/vendor_ruby/chef/solr_query.rb:105:in `objects'
/usr/lib/ruby/vendor_ruby/chef/solr_query.rb:124:in `search'
/usr/share/chef-server-api/app/controllers/search.rb:43:in `show'
/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/vendor_ruby/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/vendor_ruby/eventmachine.rb:256: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
merb : chef-server (api) : worker (port 4000) ~ Params:
{"action"=>"show", "start"=>"0", "rows"=>"1000", "sor
t"=>"", "type"=>"users", "controller"=>"search", "q"=>"groups%3Asysadmin"}
merb : chef-server (api) : worker (port 4000) ~
If im not mistaken it looks like an issue talking to Solr. However, I
am not sure why it would work on initial install but stop working
later...
On Mon, Apr 9, 2012 at 12:30 PM, Paul Welch
<
>
wrote:
>
Running Ubuntu 10.04.4 LTS and Open-Source Chef server 0.10.8 from Opscode
>
Repo.
>
>
When searching, either inside a cookbook (in this case nagios) during
>
a chef-run or using `knife search users "groups:sysadmin" I get this
>
error:
>
>
ERROR: Server returned error for
>
http://chef.mydomain.com:4000/search/users?q=groups%253Asysadmin&sort=&start=0&rows=1000,
>
retrying 1/5 in 3s
>
>
>
This error happened once before and after messing with it for several
>
hours I decided to reinstall the chef-server from scratch. After
>
reinstalling I used it to build another nagios-server node with
>
cookbook. This worked on the fresh install. After the weekend I try
>
the `knife search` again and get the same error.
>
>
Does anyone have any suggestions on how to fix this or why it is happening?
>
>
>
--
>
Paul Welch
>
--
Paul Welch
+1.352.327.8087
Archive powered by MHonArc 2.6.16.