Problem with ? chef-expander : chef-solar (ubuntu oneiric)

upon running chef-expander -l debug:

… lots of info :wink:

[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:
root@admin:~# 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"?>

8f080476-1c95-4f70-bf70-0515bbe7cf07chefnode… 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
Error 400 missing content stream

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:

root@admin:~# knife search node :
0 items found

root@admin:~#

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?

I just wanted to merely point out that I have isolated the problem to
chef-expander:

root@admin:~# 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"?> 0340 root@admin:~#

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
paigeat@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 paigeat@paigeat.info wrote:

upon running chef-expander -l debug:

... lots of info :wink:

[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:
root@admin:~# 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"?>

8f080476-1c95-4f70-bf70-0515bbe7cf07chefnode... 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
Error 400 missing content stream

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:

root@admin:~# knife search node :
0 items found

root@admin:~#

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?

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 Infra (archive) /
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
paigeat@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 paigeat@paigeat.info wrote:

I just wanted to merely point out that I have isolated the problem to
chef-expander:

root@admin:~# 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"?> 0340 root@admin:~#

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
paigeat@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 paigeat@paigeat.info wrote:

upon running chef-expander -l debug:

... lots of info :wink:

[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:
root@admin:~# 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"?>

8f080476-1c95-4f70-bf70-0515bbe7cf07chefnode... 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
Error 400 missing content stream

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:

root@admin:~# knife search node :
0 items found

root@admin:~#

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?