Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Subsonic 4.6 Plugin for unRAID 5b11+

Featured Replies

am i the only one having problem autostarting subsonic?

 

I'm also not getting an auto-start.  I ssh in and start manually if I am at a PC - but if I am using my phone I'm stuffed.

  • Replies 102
  • Views 29.2k
  • Created
  • Last Reply
  • Author

I'm also not getting an auto-start.  I ssh in and start manually if I am at a PC - but if I am using my phone I'm stuffed.

 

Can you send me the outputs of the following:

 

cat /boot/config/plugins/subsonic/subsonic.cfg

 

cat /usr/local/emhttp/plugins/subsonic/event/disks_mounted
[code]

subsonic.cfg

#subsonic configuration
service="enable"
expected_version="4.6"
SUBSONIC_HOME="/mnt/cache/.subsonic"
SUBSONIC_HOST="0.0.0.0"
SUBSONIC_PORT="4040"
SUBSONIC_CONTEXT_PATH="/"
SUBSONIC_MAX_MEMORY="100"
use_beta_versions="0"

 

disks_mounted

#!/bin/bash
source /boot/config/plugins/subsonic/subsonic.cfg

if [ $service = "enable" ]; then
        php /usr/local/emhttp/plugins/subsonic/subsonic_update.php "cmd=autostart"
fi

 

After a reboot - enabled setting is always no....

 

Myk

 

 

Here.

 

root@Tower:~# cat /boot/config/plugins/subsonic/subsonic.cfg
#subsonic configuration
service="enable"
expected_version="4.6"
SUBSONIC_HOME="/mnt/cache/.subsonic"
SUBSONIC_HOST="0.0.0.0"
SUBSONIC_PORT="4040"
SUBSONIC_CONTEXT_PATH="/"
SUBSONIC_MAX_MEMORY="100"
use_beta_versions="1"
root@Tower:~#

 

root@Tower:~# cat /usr/local/emhttp/plugins/subsonic/event/disks_mounted
#!/bin/bash
source /boot/config/plugins/subsonic/subsonic.cfg

if [ $service = "enable" ]; then
        php /usr/local/emhttp/plugins/subsonic/subsonic_update.php "cmd=autostar
t"
fi
root@Tower:~#

 

by the way, i install subsonic into a different location(if that matters). to cache drive, to be exact.

thanks.

  • Author

Ok.  I think I know what might be causing this.  Hopefully, I'll have a fix for the reboot issue shortly.  If you guys don't mind, I might PM you guys a specific build to try out later today/tonight...

 

thx!

-alex

Seems like its coming along nicely! Does this have support for conversion of video files as of yet? I use subsonic when away from home in hotels and so on to watch dvds and things through mybsubsonic so its a rather big thing in my usage. Im currently using the other subsonic script released on these forums, however a plugin is a lot cleaner and nicer!

 

Good work on the project anyhow! I realize obviously the majority or subsonic usage is todo with audio files, so not having video support as of yet is notva major issue, however if you can try to fit it in (if its not already done) if its not too much hassle id apreciate it immemsely amd im sure many others world too.

 

Still, keep up the great work! Truely a. Great asset to the unraid community

Does this have support for conversion of video files as of yet?

yes, mkv files at least,, i watched one last night

Seems like its coming along nicely! Does this have support for conversion of video files as of yet? I use subsonic when away from home in hotels and so on to watch dvds and things through mybsubsonic so its a rather big thing in my usage. Im currently using the other subsonic script released on these forums, however a plugin is a lot cleaner and nicer!

 

Good work on the project anyhow! I realize obviously the majority or subsonic usage is todo with audio files, so not having video support as of yet is notva major issue, however if you can try to fit it in (if its not already done) if its not too much hassle id apreciate it immemsely amd im sure many others world too.

 

Still, keep up the great work! Truely a. Great asset to the unraid community

 

 

Video is working for me after installing the package that thraxis posted. The link is posted below. Just copy it to your box and run installpkg "package name". After this all of my videos seem to be working. The scrubbing is working as well which is great because it didn't work on my windows box I had subsonic running on before. Thanks for the link Thraxis!

 

ffmpeg link from Thraxis = http://alien.slackbook.org/slackbuilds/ffmpeg/pkg/13.37/ffmpeg-0.9-i486-1alien.tgz

Ah yes, after installing that it seems to be running flawlessly ! (Video & audio)

 

Bravo!  ;D

 

A minor thing, but i suppose i should mention it, quite a lot of mods exist for subsonic (adding features, adjusting site layout and so on) is there a way to have the plugin use a different supplied .war file instead of downloading the original from subsonic ? (Possibly an extra option inside the config to point to a .war file on the flash drive)

 

This is probably a very minor point, it just allows people to add support for things like HTML5 video and such, as well as upgrading the Sharing feature to have a higher share bitrate (Which is what i personally use it for) so the quality isn't awful when sharing something.

 

 

Not sure how many other people that have subsonic on their unraid boxes do this though? It could be a minor point, but the mod community on the subsonic boards is pretty thriving.

  • 2 weeks later...

Was there ever a fix released for the reboot issue?  I'm experiencing the same problem and was hoping there was a fix available...

Does anyone have a working link to download the ffmpeg-0.9-i486-1alien.tgz file? Thanks!

 

I used ffmpeg-0.10.2-i486-1alien.txz and it seems to work fine :)

 

Edit: Can you please add an HTTPS option in the settings page?

Yes +1 for the HTTPS setting.

 

Its extremely useful to have when streaming music and so on (For obvious reasons!)

  • Author

Did a quick check. Should be simple to add.  Next version should have this option

Hey just  a quick question, may be a stupid one so sorry!  ;D

 

Trying to update subsonic to the 1.7beta1 to test it out, so i'm just shutting down subsonic, then deleting the jetty folder and replacing it with the new one and replacing the .war file however when i startup subsonic from the plugin page, it gets all the info back from somewhere?

 

Where is the plugin storing the backup of all the settings etc? I've edited a few of the files myself and they're coming back edited, so it doesn't seem to be just re-downloading the subsonic files from there.

 

any suggestions?

yea a https option would be great, i tried messing with subsonic.sh on flash and on disk and even the .plg itself but it wasn't working for me  :'(

yea a https option would be great, i tried messing with subsonic.sh on flash and on disk and even the .plg itself but it wasn't working for me  :'(

 

I modified ajax's script to add the HTTPS option. Here are the changes I made.

 

Each code separated by two lines are in different parts of the script.

 

SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=4443


"SUBSONIC_PORT" => array(
	"hdr" => "Port for Subsonic Web Server",
	"note" => "default: 4040"
),
"SUBSONIC_HTTPS_PORT" => array(
	"hdr" => "HTTPS Port for Subsonic Web Server",
	"note" => "default: 4443"
),



<p>
	<span class="status_head">Status: </span><span class="green">Subsonic is installed<?PHP if ($pid_check == $pid_file){ echo " and running.</span></p><p><span><a href=\"//" . $var['NAME'] . ":" . $cfg["SUBSONIC_PORT"] . $cfg["SUBSONIC_HTTPS_PORT"] . $cfg["SUBSONIC_CONTEXT_PATH"] . "\" target=\"_blank\">Open Subsonic in a new window</a>"; } else { echo " but not running"; } ?>.</span>
</p>


// create empty array of all config vars
$settings = array(
"service" => "",
"expected_version" => "",
"SUBSONIC_HOME" => "",
"SUBSONIC_HOST" => "",
"SUBSONIC_PORT" => "",
"SUBSONIC_HTTPS_PORT" => "",
"SUBSONIC_CONTEXT_PATH" => "",
"SUBSONIC_MAX_MEMORY" => "",
"use_beta_versions" => ""


if ($settings["SUBSONIC_PORT"] == ""){
$settings["SUBSONIC_PORT"] = "4040";
}
if ($settings["SUBSONIC_HTTPS_PORT"] == ""){
$settings["SUBSONIC_HTTPS_PORT"] = "4443";

yea a https option would be great, i tried messing with subsonic.sh on flash and on disk and even the .plg itself but it wasn't working for me  :'(

 

I modified ajax's script to add the HTTPS option. Here are the changes I made.

 

Each code separated by two lines are in different parts of the script.

 

SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=4443


"SUBSONIC_PORT" => array(
	"hdr" => "Port for Subsonic Web Server",
	"note" => "default: 4040"
),
"SUBSONIC_HTTPS_PORT" => array(
	"hdr" => "HTTPS Port for Subsonic Web Server",
	"note" => "default: 4443"
),



<p>
	<span class="status_head">Status: </span><span class="green">Subsonic is installed<?PHP if ($pid_check == $pid_file){ echo " and running.</span></p><p><span><a href=\"//" . $var['NAME'] . ":" . $cfg["SUBSONIC_PORT"] . $cfg["SUBSONIC_HTTPS_PORT"] . $cfg["SUBSONIC_CONTEXT_PATH"] . "\" target=\"_blank\">Open Subsonic in a new window</a>"; } else { echo " but not running"; } ?>.</span>
</p>


// create empty array of all config vars
$settings = array(
"service" => "",
"expected_version" => "",
"SUBSONIC_HOME" => "",
"SUBSONIC_HOST" => "",
"SUBSONIC_PORT" => "",
"SUBSONIC_HTTPS_PORT" => "",
"SUBSONIC_CONTEXT_PATH" => "",
"SUBSONIC_MAX_MEMORY" => "",
"use_beta_versions" => ""


if ($settings["SUBSONIC_PORT"] == ""){
$settings["SUBSONIC_PORT"] = "4040";
}
if ($settings["SUBSONIC_HTTPS_PORT"] == ""){
$settings["SUBSONIC_HTTPS_PORT"] = "4443";

 

 

arg,, i did the first half but i guess i didn't scan through the plg enough, i will have to try this out,

I'm quite happy with myself for even being half right and on the right track at least, thanks again

  • 2 weeks later...

Okay. so I spent almost 8 hours total to figure this whole thing out.. and I need someone to help me..

 

First problem I had was that I could not play flac. It just would not play and it wouldn't leave any logs so I could not figure out what the problem is.. I tried updating, two step transcoding mentioned above, and reinstalling.

 

but I figure it out after 6 hours of researching/try/error.

 

The OP mentions 'This plugin creates a symlink for your transcode folder (where e.g. ffmpeg & lame would reside).  The symlink points to /usr/bin/'. yes. it creates /boot/config/plugins/subsonic/transcode but this is a big problem. Symlink does not support FAT/FAT32, and i am pretty sure unraid boot drives are all FAT/FAT32.

 

This post gave me an idea what to do: http://forum.subsonic.org/forum/viewtopic.php?t=1915

 

so, I basically moved flac/lame/ffmpeg from /usr/bin/ to /boot/config/plugins/subsonic/transcode then used two step encoding explained above. After that, I was able to play FLAC without any problem. YAY!

 

2nd problem i had was Unicode. I have a lot of korean songs and Subsonic was not able to play/display any of my korean music. I searched and search and found this: http://forum.subsonic.org/forum/viewtopic.php?p=19049#19049

 

I had to do this:

 

/etc/rc.d/rc.subsonic stop

export LANG="en_US.utf8"
export LANGUAGE="en_US.utf8"
export LC_CTYPE="en_US.utf8"

/etc/rc.d/rc.subsonic start

 

After that, Subsonic started playing/displaying music fine. YAY

 

but here's the real problem for me. I am not too familiar with plugin's so i don't know how to set this up so it would be included when i restart subsonic. When I restart subsonic, i basically lose everything above and have to go through these steps again. i tried adding these to Subsonic.sh file under /boot/config/plugins/subsonic/ but it keeps getting regenerated by the default setting..

 

how do i change the Subsonic.sh file?

Thanks for the great plugin! Any way to get the latest 4.7 beta up and running with this?

Updating Subsonic's database is done by updating its search index. The Search Index setting is located in Settings > Search.

 

Can't wait to try your plugin ajax. Still running Subsonic the old way.

Unfortunately, doing this or pressing save in directory doesn't do anything. Got new music but I can't make it appear in Subsonic. Must be a subsonic problem, not the plugin.

I haven't got a .lck in db folder of Subsonic that prevents library updates, so I'm baffled.

 

Envoyé depuis mon HTC Sensation XE with Beats Audio Z715e avec Tapatalk

I have the same problem as other users, after a reboot subsonic doesn't autostart.  I have go to the interface and restart it manually.

Thanks for the great plugin! Any way to get the latest 4.7 beta up and running with this?

 

Hey, a quick dirty fix to get any version running is to place the 4.7 beta standalone file inside your

/boot/packages/

  then just delete the 4.6-standalone.taz.gz and rename the 4.7beta2 (or whatever version you like!) to be 4.6

 

Then just stop subsonic via the web menu, and delete the jetty and .war file inside your subsonic directory, then re-enable subsonic (dont delete your db folder!) and it'll update it for you. :)

I'm still facing that problem of library refresh.

I don't know if I'm the only one here. I installed subsonic as told in the first post, everything runs smoothly.

My music share is publicly shared via AFP & Samba, so no user/password to enter. I don't think it a problem of ownership.

Music is added via iTunes. I feared iTunes "put" some ownership to the files added via the soft.Whatever, Adding the a new album folder by drag and drop to the music folder doesn't do anything.

I press the famous "search" button, i delete the subsonic.lck, I clear my browser, anything i can think of but no result (I even tried the 4.7beta2 subsonic).

 

The only music shown is the one that has been imported the first i loaded Subsonic.

 

:o

 

HALP  :-*

I'm still facing that problem of library refresh.

I don't know if I'm the only one here. I installed subsonic as told in the first post, everything runs smoothly.

My music share is publicly shared via AFP & Samba, so no user/password to enter. I don't think it a problem of ownership.

Music is added via iTunes. I feared iTunes "put" some ownership to the files added via the soft.Whatever, Adding the a new album folder by drag and drop to the music folder doesn't do anything.

I press the famous "search" button, i delete the subsonic.lck, I clear my browser, anything i can think of but no result (I even tried the 4.7beta2 subsonic).

 

The only music shown is the one that has been imported the first i loaded Subsonic.

 

:o

 

HALP  :-*

 

How are your media folders set up on Subsonic? I have them set like this:

Name: Music

Folder: /mnt/user/Music

How are your media folders set up on Subsonic? I have them set like this:

Name: Music

Folder: /mnt/user/Music

 

Same here (I think at least)

 

Name: Music

Folder: /mnt/disk2/MusicUser/Music

 

I removed spaces in the path and all but no luck

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.