How to upgrade Subsonic on CENT OS VPS (GigaPros)

Need help? Post your questions here.

Moderator: moderators

How to upgrade Subsonic on CENT OS VPS (GigaPros)

Postby sno crash » Mon May 14, 2012 11:48 pm

I'm in the middle of a setup with GigaPros, which I'm documenting here: http://forum.subsonic.org/forum/viewtopic.php?f=5&t=9518

An issue came up which I don't believe I've seen addressed on the forum. They are running CENTOS, and the Subsonic version is outdated and needs to be upgraded. The first time I put the request in, they (GigaPros) rebuilt the VPS, which wiped out the installation as well as the music library.

They (GigaPros) are asking which downloadable version of Subsonic they should use and how should it be properly upgraded so that the data and music remains intact? I can get access to the folder that has the database, so I could in theory keep a backup copy of that. But how does the application itself get updated?

I'm not sure how to direct them on this - does anyone know from their own experience?
sno crash
 
Posts: 15
Joined: Fri May 21, 2010 8:54 pm

Re: How to upgrade Subsonic on CENT OS VPS (GigaPros)

Postby supra92 » Wed May 16, 2012 2:34 am

This mostly depends on whether they are going with the standalone Jetty engine version, or if they're running a java servlet container like Tomcat. There are plusses and minuses for both methods, but having used both I ultimately wound up rolling with Tomcat. The simple way to upgrade the Subsonic application within Tomcat is thusly:

1. Stop the Tomcat service.
2. Move the old $TOMCAT_HOME/webapps/subsonic directory someplace else.
3. Drop the new Subsonic's .WAR file in $TOMCAT_HOME/webapps directory.
4. Fire up the Tomcat service.

Step 4 will automatically unpack the .WAR file and create the entire new subsonic directory structure underneath webapps. Assuming you've left the database stuff in /var/subsonic untouched, you should be ready to rock'n'roll with the new SS version.

Hope this helps, and cheers,
Supra92
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Re: How to upgrade Subsonic on CENT OS VPS (GigaPros)

Postby sno crash » Fri May 18, 2012 3:52 pm

Thanks for that. So, given that this is a VPS service, is that something that I could actually do myself? Or is this something they would have to do? I'm assuming they would because I don't see that directory structure anywhere.


supra92 wrote:This mostly depends on whether they are going with the standalone Jetty engine version, or if they're running a java servlet container like Tomcat. There are plusses and minuses for both methods, but having used both I ultimately wound up rolling with Tomcat. The simple way to upgrade the Subsonic application within Tomcat is thusly:

1. Stop the Tomcat service.
2. Move the old $TOMCAT_HOME/webapps/subsonic directory someplace else.
3. Drop the new Subsonic's .WAR file in $TOMCAT_HOME/webapps directory.
4. Fire up the Tomcat service.

Step 4 will automatically unpack the .WAR file and create the entire new subsonic directory structure underneath webapps. Assuming you've left the database stuff in /var/subsonic untouched, you should be ready to rock'n'roll with the new SS version.

Hope this helps, and cheers,
Supra92
sno crash
 
Posts: 15
Joined: Fri May 21, 2010 8:54 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests