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:
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
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?