[chef] The indexer isn't indexing.


Chronological Thread 
  • From: Jon Wood < >
  • To:
  • Subject: [chef] The indexer isn't indexing.
  • Date: Wed, 27 Jan 2010 17:26:35 +0000

Hi,

I'm having some trouble with an installation of Chef 0.7.14 from
Opscode's repository on Debian 5.0.3.

Chef itself has started correctly, and clients are able to connect to
run recipes from it, however the search index doesn't seem to be
getting populated.

When browsing the web interface, and selecting the Search tab, I see
an empty page which the documentation suggests is caused by the index
not having been created yet. Also when I use Ferret directly it isn't
returning any results:

infrastructure:/srv/chef/search_index# irb
irb(main):001:0> require 'ferret'
=> true
irb(main):002:0> index = Ferret::Index::Index.new(:path => ".")
=> #<Ferret::Index::Index:0x7fddf1df0008 @mon_entering_queue=[],
@key=nil, @mon_count=0, @writer=nil, @default_input_field=:id,
@dir=#<Ferret::Store::FSDirectory:0x7fddf1deffb8>, @mon_owner=nil,
@qp=nil, @searcher=nil, @default_field=:*, @close_dir=true,
@auto_flush=false, @mon_waiting_queue=[], @open=true,
@options={:lock_retry_time=>2, :default_field=>:*,
:dir=>#<Ferret::Store::FSDirectory:0x7fddf1deffb8>, :path=>".",
:analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x7fddf1defe78>},
@id_field=:id, @reader=nil>
irb(main):003:0> index.size
=> 0
irb(main):004:0> index.search("*")
=> #<struct Ferret::Search::TopDocs total_hits=0, hits=[],
max_score=0.0, searcher=#<Ferret::Search::Searcher:0x7fddf3ee2ea0>>

The indexer service appears to be running, and the log files claim to
be indexing things, as shown by the sample below:

[Wed, 27 Jan 2010 16:43:23 +0000] INFO: Headers
{"destination"=>"/queue/chef/index", "content-type"=>"text/plain;
charset=UTF-8", "content-length"=>"7452"}
[Wed, 27 Jan 2010 16:43:23 +0000] INFO: Indexed object from
/queue/chef/index in 0.107933 seconds

I'm not really sure where else to look to debug this any further now.
If anyone can point me in the right direction, I'd be very
appreciative.

Cheers,

Jon Wood



Archive powered by MHonArc 2.6.16.

§