Page 1 of 1

[FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Oct 11, 2012 9:36 am
by jonnymnemo
Sometimes, madsonic updates are only provided in .exe and .war packages.
On ubuntu/debian, with a war package, you can easy update your madsonic.
(This works if you previously installed a .deb version of madsonic, I'm not sure it will work if you come from subsonic)

Unzip the files in the /usr/share/subsonic folder, then in the same folder do a
Code: Select all
chmod +x *

If you don't, subsonic won't be able to start.

In summary (you have to be in root):
Code: Select all
service subsonic stop
cd /usr/share/subsonic
wget put_the_link_to_the_file -O the_name_you_want_to_give_it.zip
unzip the_name_you_want_to_give_it.zip
chmod +x *
service subsonic start


All builds don't have deb, ok, but the installation with a war package is quite as easy ! :wink:
Anyways, if you want this update to be easier, I made a script : http://forum.subsonic.org/forum/viewtopic.php?f=15&t=10443

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Mon Oct 15, 2012 2:10 pm
by jonnymnemo
In fedora, it is quite the same, except you have to come from the latest .rpm build.
Then, WAR update is the same !

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Wed Oct 17, 2012 12:14 am
by gurutech
copying the WAR file over the old one and restarting subsonic didn't work. Can't get the site to load now... I did the chmod part and verified the settings are the same as what the old 3112 folder was. I do see a 3155 folder now, and copied my original login.jsp in there, but it's not even loading the page....

Edit: Nevermind... it just took f'ing forever once I restarted the service before I could view it online. It's working now!

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 2:40 am
by gurutech
Just upgraded again from 3220 to 3280 (beta1 to beta2 on 4.8 Madsonic), and again, it's just taking a long time to come back up in my browser. The service has already been started again after copying the files over, and I do have a 3280 folder under "jetty", so I know it's working...

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 2:45 am
by MadEvil
gurutech wrote:Just upgraded again from 3220 to 3280 (beta1 to beta2 on 4.8 Madsonic), and again, it's just taking a long time to come back up in my browser. The service has already been started again after copying the files over, and I do have a 3280 folder under "jetty", so I know it's working...


Firsttime Init could always be longer! First Full Scan too!
Best regards

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 2:55 am
by hairlesshobo
Correct me if I'm wrong, first time init has to run db conversion scripts to upgrade the schema and verify data, and then I assume it runs a full scan. Sound about right?

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 2:58 am
by gurutech
Next upgrade will be before I go to bed, then I will check for the first time when I wake up in the morning... :-)


Maybe a suggestion could be to put up a "default" page or something, stating that Madsonic is undergoing an upgrade, and will "return shortly"...

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 6:33 am
by gurutech
The update wouldn't take over 3 hours, would it? I've restarted the service only the one time (stop service, update WAR file, start service), and that was about 3.5 hours ago.

I may just restart my computer to see if that does anything. Just downloaded some OS updates anyway....


Edit: Ended up rebooting, but before I did, I checked my services that were running, and even though I told SS to start again, it was in a "hung" state, somewhere between started and stopped. I tried starting it again, and got the OK, but it still wasn't properly started. So I rebooted and am waiting for it to come up now...

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Thu Nov 29, 2012 9:16 am
by GJ51
I just upgraded my server. Rescanned

2,229 all artists
1,597 album artists
4,181 albums
160 genres
59,248 songs
5151.35 GB (~ 5,022 hours)

Took 2 mins.

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Sun Dec 09, 2012 8:44 pm
by gurutech
Question on Fedora WAR updates...

I think I found why I was having problems with my installation... I wasn't coming from the latest RPM build. I did a "yum remove subsonic", then updated to the latest RPM build (which when I did this, it was 3280), and just now instead of doing an RPM update to 3292, it looks like the WAR update will work.

Question is this: If I continue with RPM updates, do I have to manually uninstall the previous version first (similar to what I did above), and will doing so remove any settings (user accounts, access rights, etc...)?

Also, is there a Subsonic "repository" that can be added, so all that is needed for an upgrade is "yum update subsonic" ?

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Wed Dec 11, 2013 5:32 pm
by pcburner
I don't have much experience when dealing with .war packages if someone could possible do a "how-to" via terminal, that would be awesome. I did install Madsonic from a .deb file. After that I have no idea what to do. Thanks in advance.

Re: [FAQ] Update madsonic with a war package on debian linux

PostPosted: Wed Dec 11, 2013 6:44 pm
by daneren2005
pcburner wrote:I don't have much experience when dealing with .war packages if someone could possible do a "how-to" via terminal, that would be awesome. I did install Madsonic from a .deb file. After that I have no idea what to do. Thanks in advance.

You mean like the one in the first post? :roll: