This may not be a Sarnia issue. So I apologize in advance if it isn't. But recently the solr server became inaccessible. Once this happened, I was unable to access Drupal (when attempting to login). I consistently get this error on a white error page:

Apache_Solr_HttpTransportException: '-111' Status: Unknown Status in Apache_Solr_Service->_sendRawGet() (line 338 of /opt/vtls/lampstack/apache2/htdocs/drupal/sites/all/libraries/SolrPhpClient/Apache/Solr/Service.php).

Same thing happens if I try to do anything with Drush (clear cache, disable modules, etc). Any ideas as to how I may get around this error? I need to change the solr address... but ultimately, I'd like to figure out how to prevent such an error in the future that would only disable solr searching and not affect the entire Drupal instance.

Thanks,
Tony

CommentFileSizeAuthor
#2 sarnia-solr-connection-1673654-2.patch959 byteslarowlan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

becw’s picture

Status: Active » Needs work

Interesting. From the exception, it seems like this is rooted in Search API Solr. If the Solr server isn't available, it definitely shouldn't take down the site, preferably shouldn't show exceptions to end users, and hopefully won't try to hit Solr on every page view until it comes back up.

It's possible that it's Sarnia that is abusing the Solr connection; we should look into how Sarnia behaves with a missing Solr server vs. how Search API Solr behaves, and whether Sarnia is doing too much here.

This has actually been reported in the Search API Solr issue queue, but the issue was about the error messages rather than the behavior: #1340244: Friendlier error exception notices.

larowlan’s picture

Status: Needs work » Needs review
FileSize
959 bytes

This try/catch seems to at least allow me to get to the search api settings page so I can change the server connection details.

larowlan’s picture

Category: support » bug
jmdeleon’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Tested patch.

jmdeleon’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.