- From: Bryan McLellan <
>
- To:
- Subject: [chef] Re: knife search ... always fails with a Server Error
- Date: Thu, 12 May 2011 14:45:26 -0700
On Thu, May 12, 2011 at 2:26 PM, Steve Webb
<
>
wrote:
>
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
Chef-solo is a separate tool which allows you to run chef cookbooks
locally on a system without a server. Notable to this conversation, it
doesn't support search. You'll probably want to look over the
architecture document on the wiki:
http://wiki.opscode.com/display/chef/Architecture
>
Steve-Webbs-MacBook-Pro:~ swebb$ knife --version
>
Chef: 0.10.0
It would be interesting what version of the server you are running,
presumably 0.9.12. I would wonder if the 0.10.0 knife is backwards
compatible with that old of a Chef release. I would upgrade the server
to 0.9.16 at least.
>
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
:~$
ps ax | grep solr
5887 ? Sl 0:02 java -Xmx256M -Xms256M
-Dsolr.data.dir=/var/cache/chef/solr/data
-Dsolr.solr.home=/var/lib/chef/solr
-DSTART=/var/lib/chef/solr/solr-jetty/etc/start.config -jar
/var/lib/chef/solr/solr-jetty/start.jar
5948 ? S 0:03 ruby /usr/sbin/chef-solr-indexer -d -P
/var/run/chef/solr-indexer.pid -c /etc/chef/solr.rb -L
/var/log/chef/solr-indexer.log -u chef -g chef
6348 pts/0 S+ 0:00 grep --color=auto solr
:~$
chef-server --version
Chef Server (API) Version: 0.9.16
I can confirm that syntax works on a knife 0.9.16 versus chef 0.9.16.
Have you checked the solr logs yet?
Bryan
Archive powered by MHonArc 2.6.16.