Upon trying to search I am getting the following in watchdog:
Message "0" Status: Request failed
Severity error
SOLR is running and indexing documents correctly, the site can contact the server and the Solr PHP Client Library is correct.
Testing with drush gives the following
# drush solr search finance
PHP Fatal error: Uncaught exception 'Exception' with message '"0" Status: Request failed' in /web/vhosts/ixisdev/sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php:272
Stack trace:
#0 /web/vhosts/ixisdev/sites/all/modules/apachesolr/SolrPhpClient/Apache/Solr/Service.php(964): Drupal_Apache_Solr_Service->_sendRawGet('http://192.168....')
#1 /web/vhosts/ixisdev/sites/all/modules/apachesolr/apachesolr_search.module(246): Apache_Solr_Service->search('finance', 0, '20', Array)
#2 /web/vhosts/ixisdev/sites/all/modules/apachesolr/drush/apachesolr.drush.inc(145): apachesolr_search_execute('finance')
#3 [internal function]: apachesolr_drush_solr_search('finance')
#4 /usr/share/drush/includes/drush.inc(51): call_user_func_array('apachesolr_drus...', Array)
#5 /usr/share/drush/drush.php(90): drush_dispatch(Array)
#6 /usr/share/drush/drush.php(40): drush_main()
#7 {main}
thrown in /web/vhosts/ixisdev/sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php on line 272
Drush command could not be completed.
From the SOLR logs I get the following
_header=[1290936822,747881713,m=4,g=4096,p=4096,c=4096]={/solr/select?fl=id%2Cnid%2Ctitle%2Ccomment_cou SNIP}{}
_buffer=[1290936822,747881713,m=4,g=4096,p=4096,c=4096]={/solr/select?fl=id%2Cnid%2 SNIP {}
2010-04-25 11:47:59.784::WARN: handle failed
java.io.IOException: FULL
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:274)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
I have tried to increase headerBufferSize and tried varying versions of SOLR & jetty from nightly builds. SOLR attachments, statistics and node access are being used to have disabled all those to try and narrow it down further to no avail.
Comments
Comment #1
jpmckinney commentedDid you copy the schema.xml and solrconfig.xml files from this module into your Solr instance's directory (and then restarted Solr)? Are you using Solr 1.4?
Comment #2
jpmckinney commentedComment #3
chrishaslam commentedApologies for the delay in update.
This was actually due to some custom SOLR modules which were apparently doing something ugly with hook_apachesolr_cck_fields_alter() && hook_apachesolr_prepare_query() Removing these fixed the problem immediately.
Comment #4
janusman commentedDuplicate of #761990: 400 Bad Status if URL length limit exceeded
Comment #5
janusman commentedSee http://drupal.org/node/443980 for a possible fix.
Comment #6
qasimzee commentedThanks @janusman, your solution solved my problem