Page 1 of 1

Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 5:04 pm
by apastuszak
Can I run Subsonic 5.2.1 and 6.0 side by side on the same Tomcat server?

5.2.1 is running fine, but 6.0 refuses to start.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 6:51 pm
by acroyear
The second one to start needs a lot of configuration changes. it needs to set a different http port, a different https port (potentially, if you're using it), and different folders for its logs and database. if you haven't changed anything, then the 6.0 is not starting either because it is trying to open the same port, or because it is trying to open the database file, but the 5.2.1 server has locked it.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 7:19 pm
by apastuszak
I'm running on Tomcat. It can use the same port. Just needs to be a different webapp name. I renamed the war file to subsonic6 and it installed in it's own directory, but it fails to start.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 7:52 pm
by acroyear
Then it seems likely a matter of the 6.0 attempting to open the database file of the 5.2.1, which the 5.2.1 box has locked.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 7:56 pm
by apastuszak
Is there any way to give 6.0 it's own database file?

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Tue Jul 05, 2016 10:54 pm
by acroyear
There is (the -Dsubsonic.home property) but how it needs to be set varies for each platform (including the straight .war files). I really haven't had the time to dig into that any deeper.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Wed Jul 06, 2016 1:50 pm
by apastuszak
Thanks. You've been very helpful. I'll see what I can find.

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Wed Jul 06, 2016 3:43 pm
by apastuszak
Could I run them side by side if one was on Tomcat and the other was standalone?

Re: Running 5.2.1 and 6.0 side by side

PostPosted: Wed Jul 06, 2016 5:05 pm
by apastuszak
I think I figured it out.

I removed 6.0 from tomcat

I installed Subsonic 6.0 deb package and added the argument home=/var/subsonic6 to /etc/defaults/subsonic

I did a cp -R /var/subsonic to /var/subsonic6

sudo service subsonic start and it fired right up for me.