FAQ] Madsonic Install Starter Guide

Frequently asked questions. Tutorials, tips and tricks.

FAQ] Madsonic Install Starter Guide

Unread postby Madevil » 13 Mar 2013, 03:29


INFO


WARNING

1.st make a backup of your whole Subsonic folder, to go back if something goes wrong !!!

INSTALL/UPGRADE INFO

You should only need the installation packages, no other installations or workarounds are needed!
Since Beta the Upgrade works much better, the Installer also make a Backup from the DB folder,
but i still recommend a installation from Scratch!

Since Build 3120 Upgrade from Subsonic 4.6, 4.7 supported

5 quick steps to upgrade

  • stop Madsonic script/service
  • replace madsonic.war & madsonic-booter.jar
  • clean browser caches
  • restart madsonic
  • rescan files


WINDOWS

    [1] just use the installer to install or upgrade your installation.


TOMCAT

    [1] remove old war
    [2] delete work folder
    [3] redeploy new war file


LINUX

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


Short Instruction for new/existing Ubuntu/Fedora installation:

    [1] Fresh Ubuntu/Fedora Install
    [2] Install Java 1.7 JRE/JDK (sudo apt-get install openjdk-7-jdk)
    [3] Config current JRE/JDK to 1.7 with:
    [#] sudo update-alternatives --config javac
    [#] sudo update-alternatives --config java
    [4] check config with
    [#] javac -version
    [1] Start Firefox -> Check Java Version -> browse -> http://javatester.org
    [6] Install Adobe Flash Player
    [7] Uninstall all current subsonic/madsonic version
    [8] If exist delete folder /var/subsonic or /var/madsonic
    [9] Create /var/media folder
    [10] Put Content into /var/media
    [11] Install the madsonic Server deb/rpm)
    [12] Check if Service is running
    [#] sudo service madsonic start
    [13] Start Firefox -> browse -> http://localhost:4040
    14. Config subsonic via Webpage
    15. Done! :D


linux Defaults

/var/madsonic --> user db, settings, logs
/usr/share/madsonic --> madsonic.war, madsonic-booter.jar, madsonic.sh
/etc/int.d --> madsonic daemon (script)
/etc/default --> madsonic daemon (settings)



Complete Cleanup from Scratch

  • stop madsonic server
  • uninstall madsonic
  • delete folder c:\madsonic or /var/madsonic
  • cleanup all Browser Caches
  • cleanup all temp files



Conversion guide from older windows build version < 3630

  • stop madsonic server
  • make backup of c:\subsonic folder
  • uninstall older madonic version
  • install new madsonic version
  • stop service
  • copy back the db folder back from your madsonic backup
  • copy back the subsonic.properties file and rename it to madsonic.properties
  • start service
  • check user, settings, mediafolders
  • make full scan
  • finished, now all your old config should be back!


Conversion guide from older linux build version < 3630

  • stop madsonic daemon
  • make backup of /var/subsonic folder
  • uninstall older madonic version
  • install new madsonic version
  • stop daemon
  • copy back the db folder back from your madsonic backup into /var/madsonic
  • copy back the subsonic.properties file into /var/madsonic/ and rename it to madsonic.properties
  • start daemon
  • check user, settings, mediafolders
  • make full scan
  • finished, now all your old config should be back!


Data Migration guide from older version

    01. stop madsonic service
    02. backup! (zip or copy) your old subsonic/madsonic installation (in your case c:\subsonic) !!!
    03. move your backup to a save place
    04. uninstall all Madsonic installation
    05. delete all old traces -> (c:\subsonic, c:\madsonic, c:\supersonic and \var\subsonic, \var\madsonic, \var\supersonic)
    06. make a new madsonic installation
    07. after installation the service will automatically start (new DB will created)
    08. stop madsonic service
    09. delete DB folder again (in your case c:\madsonic\db or \var\madsonic\db)
    10. delete settings file (madsonic.properties)
    11. copy your backup (DB folder and subsonic.properties only!) into your madsonic installation folder (c:\madsonic\)
    12. rename subsonic.properties to madsonic.properties
    13. restart Madsonic service
    14. Madsonic detect automatically the db version and will upgrade to newest Madsonic db structure layout
    15. possibly it can't hurt to go through all your settings and even press the save button on every settings page
    16. make a Full Scan Mediascan
    17. hopefully all is done

best regards
User avatar
Madevil
Administrator
Administrator
 
Posts: 915
Joined: 07 Dec 2012, 03:58
Has thanked: 1339 times
Been thanked: 954 times

Re: Starter Guide

Unread postby pcburner » 07 Mar 2014, 10:40

First I just want to say thanks for you hard work and dedication. When I do the update for Madsonic from 3760 to 3780, I'll use the script that's provided in the forum, it'll run and finish with no errors also bear in mind that I'm do not have Subsonic installed. However, when I do an "about" it says I'm still using the previous version. Now I've tried it several different ways: First, removed and uninstalled subsonic & Madsonic, then reinstalled subsonic then installed Madsonic thinking Madsonic would overwrite the subsonic files. That didn't work. Finally, I removed Subsonic altogether and installed Madsonic but I'm still not able to accomplish the upgrade. I'm running Ubuntu 12.10 Server via terminal.
pcburner
 
Posts: 2
Joined: 13 Oct 2013, 22:45
Has thanked: 0 time
Been thanked: 0 time

Re: FAQ] Madsonic Install Starter Guide

Unread postby Madevil » 07 Mar 2014, 10:44

Update migration Info
User avatar
Madevil
Administrator
Administrator
 
Posts: 915
Joined: 07 Dec 2012, 03:58
Has thanked: 1339 times
Been thanked: 954 times

Re: FAQ] Madsonic Install Starter Guide

Unread postby oxias » 07 Jan 2015, 10:35

Hi there,

I've installed on my ubuntu (x64) server (core i7 2.4Ghz, 8Go RAM) the madsonic 5.1 techdemo III, and on my raspbmc the madsonic addon-on video. The server is contacted trough the local IP, no https.
Both devies are on the same LAN, and when I try to reach the madsonic server from the addon, nothing happens but timeout annoucement! So, no Library is displayed, and I can't play any movies owned.

Is there any issue with the techdemo version? How to consult the madsonic addon logs?

Thanks a lot for the hard work!

PS: any chance to have cover art with movies library (like KODI)?
oxias
 
Posts: 3
Joined: 08 Dec 2014, 00:32
Has thanked: 0 time
Been thanked: 1 time

Re: FAQ] Madsonic Install Starter Guide

Unread postby addseo1115 » 19 Aug 2015, 09:44

when I do an "about" it says I'm still using the previous version.
addseo1115
 

Re: FAQ] Madsonic Install Starter Guide

Unread postby VikingOy » 17 Sep 2015, 16:13

Madevil wrote:
INFO


WARNING

1.st make a backup of your whole Subsonic folder, to go back if something goes wrong !!!

INSTALL/UPGRADE INFO

You should only need the installation packages, no other installations or workarounds are needed!
Since Beta the Upgrade works much better, the Installer also make a Backup from the DB folder,
but i still recommend a installation from Scratch!

Since Build 3120 Upgrade from Subsonic 4.6, 4.7 supported

5 quick steps to upgrade

  • stop Madsonic script/service
  • replace madsonic.war & madsonic-booter.jar
  • clean browser caches
  • restart madsonic
  • rescan files


WINDOWS

    [1] just use the installer to install or upgrade your installation.


TOMCAT

    [1] remove old war
    [2] delete work folder
    [3] redeploy new war file


LINUX

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


Short Instruction for new/existing Ubuntu/Fedora installation:

    [1] Fresh Ubuntu/Fedora Install
    [2] Install Java 1.7 JRE/JDK (sudo apt-get install openjdk-7-jdk)
    [3] Config current JRE/JDK to 1.7 with:
    [#] sudo update-alternatives --config javac
    [#] sudo update-alternatives --config java
    [4] check config with
    [#] javac -version
    [1] Start Firefox -> Check Java Version -> browse -> http://javatester.org
    [6] Install Adobe Flash Player
    [7] Uninstall all current subsonic/madsonic version
    [8] If exist delete folder /var/subsonic or /var/madsonic
    [9] Create /var/media folder
    [10] Put Content into /var/media
    [11] Install the madsonic Server deb/rpm)
    [12] Check if Service is running
    [#] sudo service madsonic start
    [13] Start Firefox -> browse -> http://localhost:4040
    14. Config subsonic via Webpage
    15. Done! :D


linux Defaults

/var/madsonic --> user db, settings, logs
/usr/share/madsonic --> madsonic.war, madsonic-booter.jar, madsonic.sh
/etc/int.d --> madsonic daemon (script)
/etc/default --> madsonic daemon (settings)



Complete Cleanup from Scratch

  • stop madsonic server
  • uninstall madsonic
  • delete folder c:\madsonic or /var/madsonic
  • cleanup all Browser Caches
  • cleanup all temp files



Conversion guide from older windows build version < 3630

  • stop madsonic server
  • make backup of c:\subsonic folder
  • uninstall older madonic version
  • install new madsonic version
  • stop service
  • copy back the db folder back from your madsonic backup
  • copy back the subsonic.properties file and rename it to madsonic.properties
  • start service
  • check user, settings, mediafolders
  • make full scan
  • finished, now all your old config should be back!


Conversion guide from older linux build version < 3630

  • stop madsonic daemon
  • make backup of /var/subsonic folder
  • uninstall older madonic version
  • install new madsonic version
  • stop daemon
  • copy back the db folder back from your madsonic backup into /var/madsonic
  • copy back the subsonic.properties file into /var/madsonic/ and rename it to madsonic.properties
  • start daemon
  • check user, settings, mediafolders
  • make full scan
  • finished, now all your old config should be back!


Data Migration guide from older version

    01. stop madsonic service
    02. backup! (zip or copy) your old subsonic/madsonic installation (in your case c:\subsonic) !!!
    03. move your backup to a save place
    04. uninstall all Madsonic installation
    05. delete all old traces -> (c:\subsonic, c:\madsonic, c:\supersonic and \var\subsonic, \var\madsonic, \var\supersonic)
    06. make a new madsonic installation
    07. after installation the service will automatically start (new DB will created)
    08. stop madsonic service
    09. delete DB folder again (in your case c:\madsonic\db or \var\madsonic\db)
    10. delete settings file (madsonic.properties)
    11. copy your backup (DB folder and subsonic.properties only!) into your madsonic installation folder (c:\madsonic\)
    12. rename subsonic.properties to madsonic.properties
    13. restart Madsonic service
    14. Madsonic detect automatically the db version and will upgrade to newest Madsonic db structure layout
    15. possibly it can't hurt to go through all your settings and even press the save button on every settings page
    16. make a Full Scan Mediascan
    17. hopefully all is done

best regards

Hi, any chance of a complete QPKG installation package for QNAP soon?

Sent from my SM-G900F using Tapatalk
VikingOy
 
Posts: 32
Joined: 03 May 2015, 20:26
Has thanked: 3 times
Been thanked: 5 times


Return to Info

Who is online

Users browsing this forum: No registered users and 1 guest

cron