DSpace: Solr webapp shows “UnknownHostException”


I’m trying to set up a DSpace 5.4 on a local VM to prepare for the upgrade to DSpace 5.5 on another machine.

The setup procedure works fine, but I can’t get the Apachesolr webapp to work. I deployed it (Using Tomocat 8.0.33 and OpenJDK 1.8.0_60 on OpenSuse Leaf 42.1), and it’s returning the following error when called from the VM and from the host:

java.net.UnknownHostException: linux-ai1n: unknown error
java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
So when using a discovery related function, this error is returned:

Expected mime type application/octet-stream but got text/html.
Answers I found only suggest to change the solr URL, so I have tried changing the solr URL in config/modules/discovery.cfg from http://localhost:8080/solr/search to, but that did not solve the problem.

Any hints what to check next would be very helpful. Could this be an issue with not enough memory available on the virtual machine?

Thank you

I suspect…

Your solr is installed bound to your network address, which would be different than your localhost address.
In any case, it looks like it’s likely that your solr app may be using name resolution so you should be able to overcome whatever network address solr is bound to, by creating an appropriate mapping in your /etc/hosts file (supporting the hostname in your solr config file).

Big data apps like Lucene and solr are pretty specialized,
I suspect that you won’t likely find many if anyone familiar with the app(s) here… I myself only have a passing exposure to it because I specialize in the solr/pig/hive stack’s competitor, elastic.

Looks like the reference for your config file plus additional support documents is at or near

Good Luck,

You will become an expert in architecture and selenium components thanks to our online selenium training. The best online course for selenium helps you to master the entire 3.0 suite. The Selenium Online Training begins with a review of fundamental Java concepts before delving into the basics of test automation and how crucial it is to corporate operations. The Selenium online course covers both fundamental and more complex concepts related to WebDriver and many tools and frameworks, including testing, Maven, AutoIT, Sikuli, and log4j.