
**In brief:** fresh Buster install on a Raspberry Pi 3, usual Subsonic install steps followed and Subsonic throws this error in its log:
- Code: Select all
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
**Details:** I installed Subsonic following [this][1] and in particular installed openjdk-8-jre. Since Buster comes with java 11 by default and I was getting the previously mentionned error in the log, I uninstalled all four java 11 packages (jdk, `dk-headless, jre and jre-headless that is).
- Code: Select all
java -version
- Code: Select all
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)
I believe Subsonic requires java 8. I have also been reading that java 8 is no longer supported in Buster, but as per the above I seem to do just fine ?
In any case, here is the meat: Subsonic starts and stops fine, and
- Code: Select all
sudo systemctl status subsonic
- Code: Select all
● subsonic.service - LSB: Subsonic daemon
Loaded: loaded (/etc/init.d/subsonic; generated)
Active: active (running) since Mon 2020-04-13 14:38:51 CEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 8555 ExecStart=/etc/init.d/subsonic start (code=exited, status=0/SUCCESS)
Tasks: 18 (limit: 2200)
Memory: 46.2M
CGroup: /system.slice/subsonic.service
└─2767 java -Xmx150m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/mus
Apr 13 14:38:51 fifine systemd[1]: Starting LSB: Subsonic daemon...
Apr 13 14:38:51 fifine systemd[1]: Started LSB: Subsonic daemon.
which I believe is OK. However, at http://localhost:4040 I get:
HTTP ERROR: 503
SERVICE_UNAVAILABLE
RequestURI=/
Powered by jetty://
I thus grep'ed Subsonic's log for errors and got a bunch of
- Code: Select all
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
I googled that but nothing is too Subsonic specific. I found [this][2] which seems relevant, but I'm not sure I understand the accepted answer. It seems this is for manually running some code involving java, but in my case I only need Subsonic to work. I thus fail to understand how to apply the possible fixes for java 8 mentionned in there in my case.
**More information:**
- I did add `JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf` to `/etc/environment`
-
- Code: Select all
sudo apt list --installed | grep openjdk
- Code: Select all
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
openjdk-8-jdk-headless/stable,now 8u212-b01-1+rpi1 armhf [installed,automatic]
openjdk-8-jdk/stable,now 8u212-b01-1+rpi1 armhf [installed]
openjdk-8-jre-headless/stable,now 8u212-b01-1+rpi1 armhf [installed,automatic]
openjdk-8-jre/stable,now 8u212-b01-1+rpi1 armhf [installed]
-
- Code: Select all
java -version
- Code: Select all
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)
**Bottom line:** Subsonic clearly fails to work because of a java-related issue. If java 8 is indeed installed correctly (and supported!) on my Raspberry Pi 3 running Buster, then I would only need a way of adapting / understanding the fix [here][2]. Any other way of making Subsonic work would open the doors of Heaven for me, folks!
[1]: http://www.subsonic.org/pages/installation.jsp#debian
[2]: https://stackoverflow.com/questions/435 ... ption-in-j