jvm arg for --default-music-folder not working in 6.1.5

Need help? Post your questions here.

Moderator: moderators

jvm arg for --default-music-folder not working in 6.1.5

Postby mattc » Fri Dec 28, 2018 12:08 pm

<-------------------------Subsonic Help Request---------------------->
Problem Description: jvm arg for --default-music-folder aka -Dsubsonic.defaultMusicFolder is not working on Subsonic 6.1.5 but --default-podcast-folder and --default-playlist-folder are working fine. Apart from changing the root user, no other customisations have been made, so this is a vanilla install of subsonic 6.1.5 via the debian package on a fresh Ubuntu.
It retains the default value "/var/music" and does not get overridden via the jvm setting.
Documented in `/usr/share/subsonic/subsonic.sh --help` as
Code: Select all
  --default-music-folder=DIR    Configure Subsonic to use this folder for music.  This option
                                only has effect the first time Subsonic is started. Default '/var/music'
  --default-podcast-folder=DIR  Configure Subsonic to use this folder for Podcasts.  This option
                                only has effect the first time Subsonic is started. Default '/var/music/Podcast'
  --default-playlist-folder=DIR Configure Subsonic to use this folder for playlist imports.  This option
                                only has effect the first time Subsonic is started. Default '/var/playlists'

Troubleshooting Steps:
  • `cat /etc/default/subsonic` looks fine
    Code: Select all
    SUBSONIC_ARGS="--max-memory=150 --default-music-folder=/var/vcap/store/home/jumpbox --default-podcast-folder=/var/vcap/store/home/jumpbox --default-playlist-folder=/var/vcap/store/home/jumpbox"
  • `systemctl status subsonic` shows
    Code: Select all
    `java -Xmx150m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/vcap/store/home/jumpbox -Dsubsonic.defaultPodcastFolder=/var/vcap/store/home/jumpbox -Dsubsonic.defaultPlaylistFolder=/var/vcap/store/home/jumpbox -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar`
  • `tail -n2000 -f /var/subsonic/subsonic.log` looks fine
  • `tail -f /var/subsonic/subsonic_sh.log` looks fine
  • Analyse GUI...
    - Navigate to Podcast, Save Podcasts in = “/var/vcap/store/home/jumpbox”
    - Navigate to General, Import playlists from = “/var/vcap/store/home/jumpbox”
    - Navigate to Media Folders,
    -- ACTUAL: Name “Music” = “/var/music”
    -- EXPECTED: Name “Music” = “/var/vcap/store/home/jumpbox”
Playback Application and version: Subsonic 6.1.5
Subsonic Version: 6.1.5 (build 759abe) – December 1, 2018
Server Version: jetty-6.1.x, java 1.8.0_191, HSQLDB, Linux (62.2 MB / 84.0 MB)
Hardware Platform: Linux - Description: Ubuntu 16.04.5 LTS Codename: xenial
Java Memory Limit: --max-memory=150
Problem Filename: N/A
Output from ffmpeg -i: N/A
Last ten log file lines:

Code: Select all
    [12/28/18 10:53:40 AM UTC]        INFO        MediaScannerService        Automatic media library scanning scheduled to run every 1 day(s), starting at Sat Dec 29 03:00:00 UTC 2018
    [12/28/18 10:53:40 AM UTC]        INFO        UPnPService        Starting UPnP service...
    [12/28/18 10:53:40 AM UTC]        INFO        PodcastService        Automatic Podcast update scheduled to run every 24 hour(s), starting at Fri Dec 28 10:58:40 UTC 2018
    [12/28/18 10:53:40 AM UTC]        INFO        UPnPService        Disabling UPnP/DLNA media server
    [12/28/18 10:53:40 AM UTC]        INFO        UPnPService        Starting UPnP service - Done!
    [12/28/18 10:53:50 AM UTC]        WARN        NetworkService        No UPnP router found.
    [12/28/18 10:54:01 AM UTC]        INFO        BootstrapVerificationFilter        Servlet container: jetty-6.1.x
    [12/28/18 10:54:50 AM UTC]        INFO        PlayerDao        Created player 2.
    [12/28/18 10:54:50 AM UTC]        INFO        VersionService        Resolved local Subsonic version to: 6.1.5
    [12/28/18 10:54:50 AM UTC]        INFO        VersionService        Resolved latest Subsonic final version to: 6.1.5
    [12/28/18 10:54:50 AM UTC]        INFO        VersionService        Resolved latest Subsonic beta version to: 6.1.beta2
    [12/28/18 10:58:40 AM UTC]        INFO        PodcastService        Starting scheduled Podcast refresh.
    [12/28/18 10:58:40 AM UTC]        INFO        PodcastService        Completed scheduled Podcast refresh.


<-------------------------Subsonic Help Request---------------------->
mattc
 
Posts: 2
Joined: Fri Dec 28, 2018 10:55 am

Re: jvm arg for --default-music-folder not working in 6.1.5

Postby mattc » Fri Dec 28, 2018 4:03 pm

After tearing down the entire set up, and rebuilding its fine now. My set up is automated so there was little room for manual error on my side, so I'm a bit baffled. Anyway it works now, so happy days..
mattc
 
Posts: 2
Joined: Fri Dec 28, 2018 10:55 am


Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests