- From: "Thompson, Paige" <
>
- To:
- Subject: [chef] Re: problem with ? chef-expander : chef-solar (ubuntu oneiric)
- Date: Tue, 27 Mar 2012 16:17:18 -0700
Okay I fixed my issue, this was an issue with a typo in my
/etc/chef/solr.rb file:
solr_url "
http://localhost:8983/solar"
changed to
solr_url "
http://localhost:8983/solr"
what an epic pain in the ass, but it works! thanks everyone on #chef /
freenode for your help, sorry it was something so simple--simple but
very elusive!
-Paige Thompson
(Software Engineer / Web Applications Developer / IT Specialist)
http://paigeat.info
Google Voice: +1-(424)-262-5969 (best way to reach me by phone)
Cell: +1-(206)-890-9590 <-- worst way to reach me by phone
On Tue, Mar 27, 2012 at 4:05 PM, Thompson, Paige
<
>
wrote:
>
I just wanted to merely point out that I have isolated the problem to
>
chef-expander:
>
>
:~#
>
curl -X POST -d @test.xml -H "Content-Type:
>
text/xml\r\n" http://localhost:8983/solr/update
>
<?xml version="1.0" encoding="UTF-8"?>
>
<response>
>
<lst name="responseHeader"><int name="status">0</int><int
>
name="QTime">340</int></lst>
>
</response>
>
:~#
>
>
This post shows up in the status tab in the web-ui,
>
>
now how do I fix expander?
>
>
>
-Paige Thompson
>
(Software Engineer / Web Applications Developer / IT Specialist)
>
http://paigeat.info
>
>
Google Voice: +1-(424)-262-5969 (best way to reach me by phone)
>
Cell: +1-(206)-890-9590 <-- worst way to reach me by phone
>
>
>
>
On Tue, Mar 27, 2012 at 2:15 PM, Paige Thompson
>
<
>
>
wrote:
>
> upon running chef-expander -l debug:
>
>
>
> ... lots of info ;)
>
>
>
>
>
> [Tue, 27 Mar 2012 21:17:50 +0000] ERROR: Failed to post to solr:
>
> node[8f080476-1c95-4f70-bf70-0515bbe7cf07] database[chef]
>
>
>
> Nothing shows up in chef-solar -l debug about this though.........
>
>
>
> so I decided to run nc and see if expander isactually doing anything:
>
>
:~#
>
> nc -l 8983
>
> POST /solar/update HTTP/1.1
>
> Content-Type: text/xml
>
> Content-Length: 71666
>
> Host: localhost:8983
>
> User-Agent: EventMachine HttpClient
>
> Connection: close
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <add><doc><field
>
> name="X_CHEF_id_CHEF_X">8f080476-1c95-4f70-bf70-0515bbe7cf07</field><field
>
> name="X_CHEF_database_CHEF_X">chef</field><field
>
> name="X_CHEF_type_CHEF_X">node</field><field name="content">... lots of
>
> data
>
>
>
> obviously it is, however I have no idea how to use curl to repost this data
>
> however,
>
>
>
> curl -X POST -d '' http://localhost:8983/solr/update
>
> <erratic> <title>Error 400 missing content stream</title>
>
>
>
> everything appears as though it should be working, is there some underlying
>
> issue that anybody else might be aware of that is causing this? I ran a
>
> knife
>
> query to see if I could search:
>
>
>
>
>
>
:~#
>
> knife search node *:*
>
> 0 items found
>
>
>
>
:~#
>
>
>
> chef-solr doesn't seem to have any problems with this:
>
>
>
> INFO: [] webapp=/solr path=/select
>
> params={sort=&indent=off&start=0&q=*:*&wt=json&fq=%2BX_CHEF_type_CHEF_X:node+%2BX_CHEF_database_CHEF_X:chef&rows=1000}
>
> hits=0 status=0 QTime=123
>
>
>
>
>
> so in short, for some reason chef-expander is unable to "insert into"
>
> chef-solr
>
> but apparently knife can search chef-solr, any ideas?
Archive powered by MHonArc 2.6.16.