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

Madsonic Mashup Mod is a fork of the Subsonic 4.7 Server Build 3090 with some Subsonic Data schema modifications!

Moderator: moderators

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

Postby jonnymnemo » Thu Oct 11, 2012 9:36 am

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
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

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

Postby jonnymnemo » Mon Oct 15, 2012 2:10 pm

In fedora, it is quite the same, except you have to come from the latest .rpm build.
Then, WAR update is the same !
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

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

Postby gurutech » Wed Oct 17, 2012 12:14 am

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!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

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

Postby gurutech » Thu Nov 29, 2012 2:40 am

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...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

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

Postby MadEvil » Thu Nov 29, 2012 2:45 am

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
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

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

Postby hairlesshobo » Thu Nov 29, 2012 2:55 am

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?
hairlesshobo
 
Posts: 54
Joined: Tue Feb 15, 2011 4:34 pm

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

Postby gurutech » Thu Nov 29, 2012 2:58 am

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"...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

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

Postby gurutech » Thu Nov 29, 2012 6:33 am

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...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

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

Postby GJ51 » Thu Nov 29, 2012 9:16 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

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

Postby gurutech » Sun Dec 09, 2012 8:44 pm

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" ?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

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

Postby pcburner » Wed Dec 11, 2013 5:32 pm

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.
pcburner
 
Posts: 2
Joined: Fri Nov 08, 2013 5:48 pm

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

Postby daneren2005 » Wed Dec 11, 2013 6:44 pm

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:
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm


Return to Madsonic

Who is online

Users browsing this forum: No registered users and 2 guests