Chef Search Broken

Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

‘knife node list’ returns a list of nodes but ‘knife search node “:”’ returns
0 items.

Solr and Expander is up. I’ve also updated the maxFieldLength to be 100000 as
recommended by this open issue: http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks

Some thoughts:

Try "knife index rebuild" to generate a solr index.

Ensure that the solr URL in your chef configuration is pointing to the
correct solr process (and ensure that said process is accepting connections)

On Tue, Dec 4, 2012 at 3:55 PM, Kevin Huynh kevin@factual.com wrote:

Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

'knife node list' returns a list of nodes but 'knife search node ":"'
returns
0 items.

Solr and Expander is up. I've also updated the maxFieldLength to be
100000 as
recommended by this open issue:
http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks

Thanks for tips. I've tried "knife index build" to no avail. Running that
command outputs this to /var/log/chef/solr.log: INFO: webapp=/solr
path=/update params={} status=0 QTime=5

Solr is listening on port 8983 and doesn't log an error when trying to
rebuild the index, so I assume it's accepting connections.

I have a suspicion that this is related to chef-expander though. Nothing
gets logged to "chef-expanderctl log-level debug" when I'm rebuilding.

On Tue, Dec 4, 2012 at 12:57 PM, Brian Hatfield bhatfield@brightcove.comwrote:

Some thoughts:

Try "knife index rebuild" to generate a solr index.

Ensure that the solr URL in your chef configuration is pointing to the
correct solr process (and ensure that said process is accepting connections)

On Tue, Dec 4, 2012 at 3:55 PM, Kevin Huynh kevin@factual.com wrote:

Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

'knife node list' returns a list of nodes but 'knife search node ":"'
returns
0 items.

Solr and Expander is up. I've also updated the maxFieldLength to be
100000 as
recommended by this open issue:
http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks

Are you indexing Windows nodes? I've had to up the maxFieldLength value to
2500000 before some of our Windows nodes were indexed properly. No idea if
that's a sensible number or what impact it might have, we've since moved to
Opscode hosted Chef.

Might be worth a try though.

On 4 December 2012 20:55, Kevin Huynh kevin@factual.com wrote:

Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

'knife node list' returns a list of nodes but 'knife search node ":"'
returns
0 items.

Solr and Expander is up. I've also updated the maxFieldLength to be
100000 as
recommended by this open issue:
http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks

--

Jim Croft
Systems Developer, Cloudreach Limited
[t] +44 20 7183 3893 (ext. 418)
[m] +44 7595 352 856

Cloudreach Limited is a limited company registered in England with registered number 06975407

The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion,
and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations
will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.

This email may be confidential or privileged. If you received this communication by mistake, please don't forward
it to anyone else, please erase all copies and attachments, and please let us know that it has gone to the wrong person.

I had that happen at times. In my case, it turned out to be a RabbitMQ issue. The manual installation instructions on the Opscode Web site describe how to set up the queues (I hope I got the terminology right). I had to first delete all the queues, and then recreate them. After that, searches started to magically work again.

-----Original message-----
From:Kevin Huynh kevin@factual.com
Sent:Tue 12-04-2012 12:55 pm
Subject:[chef] Chef Search Broken
To:chef@lists.opscode.com;
Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

‘knife node list’ returns a list of nodes but ‘knife search node “:”’ returns
0 items.

Solr and Expander is up. I’ve also updated the maxFieldLength to be 100000 as
recommended by this open issue: http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks

Thanks for the help guys.

Thanks Kevin Keane -- it was a rabbitMQ issue for me as well.

For those with similar chef search problems, here's what I did:

1.) I deleted my chef vhost and user from rabbitmq
2.) Created new chef vhost and user: "rabbitmqctl add_vhost /chef" and
"rabbitmqctl add_user chef ****" (Replace **** with password)
3.) Then in /etc/chef/server.rb, I added:

amqp_user "chef"
amqp_pass "****" where **** is the password

4.) I restarted chef-server, chef-expander, and chef-solr just for good
measure, and everything works now.

Thanks all!

Kevin

On Tue, Dec 4, 2012 at 8:05 PM, Kevin Keane (subscriptions) <
subscription@kkeane.com> wrote:

**

I had that happen at times. In my case, it turned out to be a RabbitMQ
issue. The manual installation instructions on the Opscode Web site
describe how to set up the queues (I hope I got the terminology right). I
had to first delete all the queues, and then recreate them. After that,
searches started to magically work again.

-----Original message-----
From: Kevin Huynh kevin@factual.com
Sent: Tue 12-04-2012 12:55 pm
Subject: [chef] Chef Search Broken
To: chef@lists.opscode.com;
Hi guys,

I am currently getting 0 items returned for any kind of knife search task.

'knife node list' returns a list of nodes but 'knife search node ":"'
returns
0 items.

Solr and Expander is up. I've also updated the maxFieldLength to be
100000 as
recommended by this open issue:
http://tickets.opscode.com/browse/CHEF-2346

Any ideas?

Thanks