solr-jetty does not work - multiple issues

Bug #1869802 reported by Colin McKinnon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lucene-solr (Ubuntu)
New
Undecided
Unassigned

Bug Description

After installing solr-jetty and solr-common (3.6.2+dfsg-1) on Ubuntu 18.04.4 LTS, jetty starts and reports a banner page at http://$HOST:8080/ but returns an error at http://$HOST:8080/solr/

(I'm guessing based on the config that this is the path - the documentation explains *nothing*).

Although a directories /var/log/solr and /var/log/jetty9 are created, there is nothing in them.

systemd is capturing some information that suggests something is going wrong at startup:

? jetty9.service - Jetty 9 Web Application Server
   Loaded: loaded (/lib/systemd/system/jetty9.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-03-30 22:27:39 BST; 13min ago
     Docs: https://www.eclipse.org/jetty/documentation/current/
 Main PID: 1206 (java)
    Tasks: 27 (limit: 2318)
   CGroup: /system.slice/jetty9.service
           +-1206 /usr/bin/java -Djetty.home=/usr/share/jetty9 -Djetty.base=/usr/share/jetty9 -Djava.io.tmpdir=/tmp -jar /usr/share/jetty9/start.jar jetty.state=/var/lib/jetty9/jetty.state jetty-started.xml

Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at java.lang.reflect.Method.invoke(Method.java:498)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at org.eclipse.jetty.start.Main.start(Main.java:490)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: at org.eclipse.jetty.start.Main.main(Main.java:77)
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: 2020-03-30 22:27:41.475:INFO:oejs.AbstractConnector:main: Started ServerConnector@51399530{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Mar 30 22:27:41 dev-a02-si-solr.bip jetty9[1206]: 2020-03-30 22:27:41.475:INFO:oejs.Server:main: Started @1654ms

There are no setup instructions in /usr/share/doc/solr-jetty

i.e. issues are:
1) it doesn't appear to work
2) documentation is incomplete
3) default configuration is not writing any log files

Revision history for this message
Colin McKinnon (symcbean) wrote :

After trying solr-tomcat in place of solr-jetty, I get some more meaningful errors suggesting that the system won't start due to the lack of any base dataset. Navigating to the solr web page returns a stack trace suggesting:

If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in solr.xml

However this tag is not currently present in solr.xml, and adding it / retarting the service had no impact on the behaviour.

Revision history for this message
Colin McKinnon (symcbean) wrote :

(and it suggests that the primary issues are within solr-common)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.