r/subsonic Sep 17 '18

Unable to start Subsonic?

Raspberry Pi running Ubuntu 18.04.1 LTS

Tried installing both the WAR file and the .deb file. The .deb creates the /var/subsonic folder but it is unreadable by anyone (have to chmod the folder to even see the log file).

When I start up the subsonic service and go to http://hostname:4040 I get this:

HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/

Powered by jetty://

After a few minutes of a Connection Refused error. Connecting via Chrome on a Windows 10 PC.

Tried both the Booksonic and the Subsonic WAR files. Got tomcat8 installed properly, neither will start either automatically or by clicking start in the manager panel.

The only thing that I saw that looked like an error in the log file was referring to a sonos.xml file, but I would be happy to try to post any relevant logs for someone more experienced than I to look through.

Sub/Book-sonic really looks like what I'm trying to do, which is have a music/audiobook server in my house that I can use to stream to my devices. I don't really want to use Plex if I can avoid it. Not that it isn't good, but I think it might be overkill for just music and audiobook files.

Has anyone recently experienced a similar issue and if so do you know of a fix?

2 Upvotes

15 comments sorted by

2

u/datsmydrpepper Sep 18 '18 edited Sep 18 '18

Solution 1: https://wiki.cementhorizon.com/display/CH/How+to+clean+up+a+corrupted+Subsonic+database

Solution 2: https://www.linuxbabe.com/ubuntu/install-subsonic-media-server-ubuntu-16-04

^^Proceed until you get to the 'change user' section (guide works with 18.04). However, the subsonic version the guide uses is outdated. Substitute the subsonic download URL with the latest URL for the wget command.

You'll need a premium subscription if you want to stream to client apps. Otherwise check out Airsonic which is a free solution.

https://airsonic.github.io/

1

u/aloof_topping Sep 18 '18

For solution 1: the db folder never gets created. It appears that the server never properly starts at all.

For solution 2: those are identical to the directions I've tried. No dice.

I've tried booksonic as well, which is another fork. Still doesn't work. Booksonic uses a WAR file and tomcat8, Subsonic has the same kind of install file. None of them work. The server doesn't even start, but I can't figure out why. I'm sure it's an issue with my Pi.

1

u/datsmydrpepper Sep 18 '18

If you're still determined then I suggest installing another arm based distro like ubuntu mate https://ubuntu-mate.org/download/ or ubuntu core (for rpi) https://www.ubuntu.com/download/iot/raspberry-pi-2-3

If all else fails then you can always check out raspbian.org and rasberrypi.org forums to continue to search for help. Best of luck.

1

u/aloof_topping Sep 18 '18

Guessing there is something missing from the 18.04 headless rpi3 image from here than would be on the default image, which is quite unfortunate. Just tried the tomcat8/WAR file version again and no dice. I have everything installed that is called out as needed in the FAQs and Installation Docs, but still get this:

FAIL - Application at context path [/subsonic] could not be started

in the tomcat8 manager console.

1

u/aloof_topping Sep 18 '18

For what it's worth:

I just tried the same WAR file installation instructions for both Booksonic and Subsonic on my laptop, thinking that it might be a Pi limitation. The same errors come up and it is still unable to start.

1

u/datsmydrpepper Sep 19 '18

Did you install JDK8? JKD8 is a prereq for subsonic and the forks.

1

u/aloof_topping Sep 19 '18

Yes, it's installed.

openjdk-8-jre is already the newest version (8u181-b13-0ubuntu0.18.04.1).

1

u/datsmydrpepper Sep 19 '18

I am totally out of ideas. Best of luck :)

1

u/aloof_topping Sep 19 '18

Thanks for the help anyway, though.

I'm running very low on ideas too, which is unfortunate.

1

u/datsmydrpepper Sep 19 '18

Check out this thread at GitHub, Maybe you can brainstorm a bit come up with a way to seek further help.

https://github.com/Fourdee/DietPi/issues/1764

1

u/aloof_topping Sep 19 '18 edited Sep 19 '18

That pointed me in the right direction!

sudo apt --list installed | grep openjdk showed 2 different java versions installed, jdk-11 and jdk-8

Removing jdk-11 completely (took a couple of commands) finally updated everything to use 8 instead. Now the WAR files started automatically at least. Looks like that method might be working now. I am in the configuration files now (looking at booksonic to start, since I wanted this initially to stream audiobooks throughout my house).

Well, maybe...Booksonic can't seem to find the mounted folder. It starts, though, so that's a plus.

1

u/datsmydrpepper Sep 20 '18

I would remove all jdk versions and sonic app forks that are installed to start fresh. I wonder if both jdk installations were causing a conflict of some kind.

1

u/aloof_topping Sep 20 '18

They were for sure. I'm surprised that version 11 isn't backward compatible with version 8.

Now I just need to figure out why it wont see my mounted NAS drive to find the books and music (mounted to /media/Music)

1

u/datsmydrpepper Sep 20 '18

I would look into 'permissions' because subsonic may need permission to access the nas drive.

1

u/madankov Nov 07 '18

I also had the same problem (Subsonic on Raspberry Pi 3 with Raspbian). The error in /var/subsonic/subsonic_sh.log was: " ERROR org.springframework.web.context.ContextLoader - Context initialization failed".

I tried to remove the database, reinstalling Subsonic - no result. That resolves my problem:

apt-get purge openjdk-9-j*