Solr Errors

144 views
Skip to first unread message

mki...@iit.edu

unread,
Mar 6, 2017, 11:31:07 AM3/6/17
to islandora
Hello Islandora folks,

I'm having an issue with SOLR that's come up recently after it was working well for the last few months. Searching SOLR on my development site returns the following error message:
  • Notice: Undefined variable: http_response_header in Apache_Solr_Service->_sendRawGet() (line 336 of /var/www/html/sites/all/modules/islandora_solr_search-7.x-1.6/SolrPhpClient/Apache/Solr/Service.php).
  • Error searching Solr index "0" Status: Communication Error
The SOLR admin page at localhost:8080/solr is working fine, SOLR is running and I'm able to search items through that portal. But the Islandora Solr Index module isn't connecting: Unable to connect to Solr server at localhost:8080/solr.

Unfortunately, the tomcat logs are less than helpful, with just the one line below: 

Mar 06, 2017 9:43:26 AM org.apache.solr.servlet.SolrDispatchFilter handleAdminRequest INFO: [admin] webapp=null path=/admin/cores params={wt=json} status=0 QTime=1

Does anyone have any thoughts as to what might be the problem?

Thanks,
Max

-- 
Max King
Stuart School of Business Liaison
eResources Librarian
Paul V. Galvin Library
Illinois Institute of Technology
35 W 33rd St.
Chicago, IL 60616
312.567.8603

Driving Innovation Through Knowledge and Scholarship

mki...@iit.edu

unread,
Apr 3, 2017, 5:08:22 PM4/3/17
to islandora
This is part bump, part added info: 

I've been working with my university's IT folks, and they are as stumped as I am, as our SOLR install is definitely working and open to connections. I've attached a screenshot of the normal Drupal Solr module, which is connecting fine to our SOLR setup. Does anyone have any thoughts as to why the Islandora Solr Module would not connect, when the Drupal Solr Module is working? Also, is there any reason why it would be better to use the Islandora Solr module over the Drupal Solr module? 

Thanks!
Max
Connection.png
Details_SOLR.png

Peter MacDonald

unread,
Apr 4, 2017, 4:42:35 PM4/4/17
to isla...@googlegroups.com
Max:

The "Solr URL" we use here: admin/islandora/search/islandora_solr

is this: http://[our_fedora_server]:8080/solr

If you don't have /solr in the URL, try adding it.

Peter




--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/20bc2f49-d869-4adf-a314-e8634299aa46%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Peter MacDonald,
Library Information Systems Specialist
Hamilton College Library
Clinton, New York
315 859-4493
pmacdona-hamilton (Skype)

mki...@iit.edu

unread,
Apr 21, 2017, 3:12:57 PM4/21/17
to islandora
Hi Peter,

Thanks for the response. I do have /solr in the URL and no luck.

I am now getting a different error message than the one I posted above that I'll throw in here in case this twigs any thoughts for anyone: 

Notice: Undefined variable: solr_avail in islandora_solr_admin_index_settings() (line 140 of /var/www/html/sites/all/modules/islandora_solr_search-7.x/includes/admin.inc).

Thanks,
Max
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

dp...@metro.org

unread,
Apr 24, 2017, 4:46:38 PM4/24/17
to islandora
Hi,
Are you mixing maybe module versions? I see that the name of your Solr search module directory has an 7.x which could mean its a stable release download and solr_avail variable was introduced not too long ago? https://github.com/Islandora/islandora_solr_search/commit/e51e20cca568bcb959bee179399eeb395a7dcd72

Best

Diego Pino N
Metro.org

mki...@iit.edu

unread,
Apr 26, 2017, 4:13:52 PM4/26/17
to islandora
Hi Diego,

Thanks for the response. To clarify, are you saying that it's possible my module is out of date (too old) or that it is not stable (too new)? Is there a specific version of the islandora_solr_search module you'd recommend? Or would the 'correct' version of islandora_solr_search depend on other factors (and if so, what would they be)?

Thanks!
Max

dp...@metro.org

unread,
Apr 26, 2017, 4:32:53 PM4/26/17
to islandora
Hi Max,
I think that your module is out of date. The 'correct' version of islandora_solr_search does not depend on other factors than having a mix of modules that belong relatively to the same "epoch". Can you check when was the last time you updated Islandora modules and if that happened as a whole or just a few? (if you cloned a git status on each module should be enough, if downloaded as zip files you need to check the .info files to know the exact version or even look at the creation dates)
In general, i would suggest using Islandora modules (all of them hopefully) from a similar time span/release version. In specific Solr tends to be used all around so even more important. We don't introduce too much deprecation and if we do, it tends to be incremental and well informed, so my guess is a mix of very old and new modules.

Mix/matching old and new modules is always problematic in Islandora. Hopefully my comments are useful somehow

Cheers!

Diego

mki...@iit.edu

unread,
May 12, 2017, 5:09:03 PM5/12/17
to islandora
Hi Diego,

Thanks - that's very helpful. I'm about to go through all of our modules systematically to check which ones may be out of date. When I set up Islandora for testing a while ago I was grabbing mainly 7.1.6, but there are definitely some exceptions to that. 

But while starting this process I realized that Islandora modules don't update through the Drupal interface. To update modules do I need to deactivate, uninstall and delete the module from my modules folder and then reverse that process with the new version of the module? Is this how all Islandora modules are updated? 

Thanks,
Max

John

unread,
Dec 13, 2019, 1:00:05 PM12/13/19
to islandora
Max,

Did you manage to figure out what is going on with this error? I have updated to the latest on all modules and am getting the same error you descibed above.

Undefined variable: solr_avail in islandora_solr_admin_index_settings() (line 144 of ....path to admin.inc)

What makes this really odd is that I have two drupal instances in our islandora implementation one for ingest one for viewing and the ingest instance does not give the error :(

John

John

unread,
Dec 13, 2019, 1:34:23 PM12/13/19
to islandora
The notice shows but hitting save at the bottom of the page clears up the message. so there is no issue here.

John

Diego Pino

unread,
Dec 16, 2019, 2:21:03 PM12/16/19
to islandora
Hi John,

What you are experiencing is a different issue (that warning)
Its a tiny little bug. $solr_avail is defined outside the scope of the call (a lot of ifs and elses there but still it ends being used when not yet set). Could you open a JIRA ticket?
Fix is simple enough (just setting a default somewhere at the top)
Look at all the code that goes before that line, its not much

If you have issues with accessing your Solr instance, that is different probably. What version of Solr are you running? On Solr 5.5 and newer, the endpoint is different to what is advertised in the help.

Diego
Reply all
Reply to author
Forward
0 new messages