Problem with solr


#1

I have a proble with solr

$knife search node

WARN: HTTP Request Returned 500 Internal Server Error: 500
"null__javalangNullPointerException_"
/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.9.8/lib/chef/rest.rb:229:inapi_request’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:280:in
retriable_rest_request' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:210:inapi_request’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/rest.rb:110:in
get_rest' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/search/query.rb:37:insearch’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/search.rb:67:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:inrun’
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118
:in run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:inload’
from /usr/bin/knife:19

$tail -f solr.log

Oct 11, 2010 10:36:40 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException

Oct 11, 2010 10:36:40 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/select
params={indent=off&start=0&q=&wt=ruby&fq=%2BX_CHEF_database_CHEF_X:chef+
%2BX_CHEF_type_CHEF_X:node&rows=20} status=500 QTime=1
Oct 11, 2010 10:36:40 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException

I remove solr index, restart chef-solr and rebuild index using knife but
it does not help

Can anyone have some idea why ?


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addresses. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.


#2

Hi there,

On Mon, Oct 11, 2010 at 1:38 AM, le.huy@ingdirect.es wrote:

I have a proble with solr

$knife search node

That isn’t a valid search command. If you want to search for all
nodes, you would do:

knife search node "*:*"

There are expamples and description of the search syntax on the wiki:

http://wiki.opscode.com/display/chef/Search

WARN: HTTP Request Returned 500 Internal Server Error: 500
"null__javalangNullPointerException_"

It would be great to improve the error message for this case.

  • seth