Instructions on how to upgrade Subsonic Java version?

Need help? Post your questions here.

Moderator: moderators

Instructions on how to upgrade Subsonic Java version?

Postby Fightmong » Thu Aug 11, 2011 9:11 pm

Hello

The subject says it all. I have installed the Java or "source" version of Subsonic and would like to upgrade to 4.5. How do I do this without breaking everything?

I'd like to replace all the files with the new Subsonic files but I don't know which ones are important (that contain user settings and the like).

Any help would be greatly appreciated. :D
Fightmong
 
Posts: 3
Joined: Thu Aug 11, 2011 9:00 pm

Postby supra92 » Thu Aug 11, 2011 11:43 pm

The common downloads from SS's site are: Windows, OSX, Debian/Ubu, RH/Fedora, standalone Jetty, and WAR.

Do I assume correctly you're referring to the WAR version that gets run in a java servlet container such as Tomcat? If so, the process is pretty simple:

1. Stop Tomcat.
2. Delete $TOMCAT_HOME/work/Catalina directory
3. Delete (or move someplace) the $TOMCAT_HOME/webapps/subsonic directory
4. Move your new version's .WAR file into $TOMCAT_HOME/webapps
5. Start Tomcat, which will automatically unpack all the files stored in the WAR archive, creating the new "subsonic" directory under webapps.

That's all you should need to do -- your database info (reviews, ratings, users, etc.) will be intact because those are located elsewhere at /var/subsonic.

Bear in mind that any personal modifications/changes/hacks that you made to any of the JSP files in the old version will need to be re-done on the new version's files.

If you're running Windows, then the above should be used as a guide, substituting windows-specific directories/locations etc. where necessary.

If you're truly using java source code and compiling all those class files yourself from scratch, and not using Tomcat.... then ignore the above :)

HTH,
Supra92
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Postby Fightmong » Fri Aug 12, 2011 4:34 pm

Hi supra92

Thanks for the informative post. Unfortunately I'm not running Tomcat. I double-checked and I'm using the Standard Installation.

My original subsonic install consisted of me uploading the files to the server, logging in via SSH and running the subsonic.sh file (after setting the paths in the configuration file).

I could just reinstall it from scratch for the new version but I don't want to lose the current setup for the members and stuff :(
Fightmong
 
Posts: 3
Joined: Thu Aug 11, 2011 9:00 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 3 guests