Running 5.2.1 and 6.0 side by side

Need help? Post your questions here.

Moderator: moderators

Running 5.2.1 and 6.0 side by side

Postby apastuszak » Tue Jul 05, 2016 5:04 pm

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.
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am

Re: Running 5.2.1 and 6.0 side by side

Postby acroyear » Tue Jul 05, 2016 6:51 pm

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.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Running 5.2.1 and 6.0 side by side

Postby apastuszak » Tue Jul 05, 2016 7:19 pm

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.
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am

Re: Running 5.2.1 and 6.0 side by side

Postby acroyear » Tue Jul 05, 2016 7:52 pm

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.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Running 5.2.1 and 6.0 side by side

Postby apastuszak » Tue Jul 05, 2016 7:56 pm

Is there any way to give 6.0 it's own database file?
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am

Re: Running 5.2.1 and 6.0 side by side

Postby acroyear » Tue Jul 05, 2016 10:54 pm

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.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Running 5.2.1 and 6.0 side by side

Postby apastuszak » Wed Jul 06, 2016 1:50 pm

Thanks. You've been very helpful. I'll see what I can find.
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am

Re: Running 5.2.1 and 6.0 side by side

Postby apastuszak » Wed Jul 06, 2016 3:43 pm

Could I run them side by side if one was on Tomcat and the other was standalone?
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am

Re: Running 5.2.1 and 6.0 side by side

Postby apastuszak » Wed Jul 06, 2016 5:05 pm

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.
apastuszak
 
Posts: 78
Joined: Tue Oct 29, 2013 4:00 am


Return to Help

Who is online

Users browsing this forum: No registered users and 33 guests