Subsonic 6.1.1 Postgres : only runs on Java 8, not 7 or 9

General discussions.

Moderator: moderators

Subsonic 6.1.1 Postgres : only runs on Java 8, not 7 or 9

Postby kstephens » Sun Oct 01, 2017 8:20 pm

Cost me some time, but I figured it out.

When enabling a PostgresDB on Linux (Ubuntu) Subsonic 6.1.1 doesn't run on Java 7.
It requires an updated JDBC postgres driver.
And Java 9 doesn't work because of an incompatablity with Spring and Beans.
After installing Sun jdk1.8.0_144, everything worked fine.

I can attach logs if anyone is interested.

The Installation page ( page should be updated to
reflect this.

Debian / Ubuntu installation
This installation option applies to Debian Linux, including Ubuntu.

First, install Java: sudo apt-get install openjdk-7-jre

Also: configures Subsonic to use the primary, privileged "postgres" user.

This is bad practice (also bad practice for MySQL/MariaDB "root" user).

Create a "subsonic" Postgres user role and create a "subsonic" database owned by the "subsonic" Postgres user.

Code: Select all
$ cat /proc/sys/kernel/random/uuid

$ sudo -u postgres psql
[sudo] password for USER:
psql (9.6.5)
Type "help" for help.

postgres=# create role subsonic with login password 'f18e1563-d272-42b4-8259-7d1ff4b08497';
postgres=# create database subsonic with owner = subsonic;

Code: Select all
# /etc/default/subsonic
SUBSONIC_ARGS="${SUBSONIC_ARGS} --db=jdbc:postgresql://localhost:5432/subsonic?user=subsonic&password=f18e1563-d272-42b4-8259-7d1ff4b08497"
Posts: 1
Joined: Sun Oct 01, 2017 7:59 pm

Re: Subsonic 6.1.1 Postgres : only runs on Java 8, not 7 or

Postby innerspaceboy » Mon Oct 30, 2017 2:15 am

Thank you SO MUCH! I just spent the last few hours grappling with a fresh install after upgrading to Ubuntu 17.10 and couldn't get localhost:4040 to connect after installing Java 9!

Rolling back to v8 instantly resolved the issue!

Posts: 36
Joined: Mon Jun 06, 2011 11:20 pm

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests