[chef] knife search ... always fails with a Server Error


Chronological Thread 
  • From: Steve Webb < >
  • To:
  • Subject: [chef] knife search ... always fails with a Server Error
  • Date: Thu, 12 May 2011 15:26:57 -0600 (MDT)

Hey there. Chef newbie here. I've installed chef-server and I have gotten many things working, but I'm unable to do a search from the client-side using knife as mentioned in the docs.


 ~]# chef-solo --version
Chef: 0.9.12
Steve-Webbs-MacBook-Pro:~ swebb$ knife --version
Chef: 0.10.0

Steve-Webbs-MacBook-Pro:~ swebb$ knife node list
  cacti-server.gnip.com
  chefserver-test1

Steve-Webbs-MacBook-Pro:~ swebb$ knife search node "*:*"
ERROR: Server returned error for http://chefserver-test1.gnip.com:4000/search/node?q=*%253A*&sort=&start=0&rows=20, retrying 1/5 in 3s
ERROR: Server returned error for http://chefserver-test1.gnip.com:4000/search/node?q=*%253A*&sort=&start=0&rows=20, retrying 2/5 in 8s


I can do searches from the chef-gui and it seems to work. I can re-index and that seems to work:

Steve-Webbs-MacBook-Pro:~ swebb$ knife index rebuild -y
Chef::ApiClient:  success
Chef::DataBag:    success
Chef::Node:       success
Chef::Role:       success

solr is running:


 ~]# ps auxw | grep solr
root 17007 3.3 1.3 31380 24468 pts/1 Sl 17:02 0:48 /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-solr-indexer
root     17215  0.0  0.0   1848   508 pts/1    R+   17:25   0:00 grep solr
root 18848 0.0 11.6 420088 203236 ? Sl May03 0:19 java -Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data -Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar

However, I'm not using a solr.conf file, so it's using the defaults for solr.

Any ideas what's wrong with my 'knife search ...' command?

Thanks in advance.

- Steve Webb

--
Steve Webb - Senior System Administrator for gnip.com



Archive powered by MHonArc 2.6.16.

§