NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dk0r
Sep 27, 2011Guide
Subsonic 4.5.04 --Crashing
For me, instability in the Subsonic plugin has been occurring since version 1.9. The current and previous plugins crash regularly over time or upon restarting my pioneer-pro. If, after the plugin has crashed, it is manually disabled and re-enabled, it will either crash again soon after or refuse to restart and require removal/reinstallation of the plugin..
When this stability issue first appeared in v1.9, it was addressed with a patch by forum member Thoto, found here.
In that thread, Super-poussin, the plugins developer, stated that he would incorporate the patch into the next release, which would have been v2.0.00, but upon updating to radiator 4.2.17 and all the way through 4.2.19, the plugin continues crashing in subsonic v2.0.00 and all subsequent versions, including the current v4.5.04.
Furthermore, Thoto's patch no longer appears to have an affect on the stability of subsonic in either v4.5.03 or 4.5.04 w/ ffmpeg v1.2 or 1.3.
@super-poussin, is there anything I/we can do to help get a stable build of this plugin?
Over the past six-months, I've been unable to make use of the plugin due to the lack of stability. I've already donated but I understand that your time/resources may still be limited. Please let me what it would take to get a stable version of this plugin; name your price and I will pay it!
When this stability issue first appeared in v1.9, it was addressed with a patch by forum member Thoto, found here.
In that thread, Super-poussin, the plugins developer, stated that he would incorporate the patch into the next release, which would have been v2.0.00, but upon updating to radiator 4.2.17 and all the way through 4.2.19, the plugin continues crashing in subsonic v2.0.00 and all subsequent versions, including the current v4.5.04.
Furthermore, Thoto's patch no longer appears to have an affect on the stability of subsonic in either v4.5.03 or 4.5.04 w/ ffmpeg v1.2 or 1.3.
@super-poussin, is there anything I/we can do to help get a stable build of this plugin?
Over the past six-months, I've been unable to make use of the plugin due to the lack of stability. I've already donated but I understand that your time/resources may still be limited. Please let me what it would take to get a stable version of this plugin; name your price and I will pay it!
21 Replies
Replies have been turned off for this discussion
- slapshot01jAspirantafter updating to the newest version of subsonic (via frontview) on my readynas x86 (w/ the updated 4.12.19,) I stopped having crash issues. Just sharing my own experience, after having crashes in 4.5.03.
- VarletAspirantFor me 4.5.03 was stable after the 4.2.19.patch, yet it was my mistake to upgrade to 4.5.04 and now i get a daily crash again - and i cant find the 4.5.03 binary for download anywhere. what a pain this addon is causing.
- dk0rGuideI did a complete factory default wipe of my x86 pro pioneer to 4.2.19 final and Subsonic 4.5.04 continues to crash.
Whenever the NAS is restarted, subsonic crashes.
Upon the NAS completely booting up, subsonic is found checked in the frontview addons page but the green light is grey, indicating that the plugin has 'stopped'.
When I try to access subsonic directly I am greeted with the following, too familiar, error:
When I try to re-enable subsonic (uncheck, save, re-check, save) via the frontview addons page, I receive the following error:
If I reboot the NAS and again try to re-enable subsonic using the same manner as above, I continue to receive the same 'failed to start' error.
My only option is to remove and reinstall subsonic.
@super-poussin, I will donate $100 for a stability fix. - dk0rGuideBelow is a link to the Subsonic log of a failed attempt to transcode FLAC > mp3 using Subsonic 4.5.04 with ffmpeg 1.3 on a factory default install of Radiator 4.2.19 final (X-Raid2, dual redundant).
http://pastebin.com/BfSuWK8t - dk0rGuideI was able to get FLAC > mp3 transcoding to work by simply removing ffmpeg 1.3, reinstalling ffmpeg 1.2 (found here) and refraining from the 1.3 update presented on the frontview addons page; v1.2 seems to work and v1.3 appears broken.
However, Subsonic 4.5.04 continues to crash when the pro-pioneer is restarted. Upon booting up, the subsonic plugin is found 'stopped' and unresponsive.
After a restart, I'm forced to toggle the plugin on and off until it decides to actually work. - dk0rGuideIt appears the status of subsonic is not being properly reported to the add-ons page in frontview.
After Subsonic ran for ~8-hours, the add-ons page shows the 'enable check-box' checked but the indicator light is grey and reports the plugin as 'Stopped'.
Despite this indication, Subsonic is fully functional and in order to get the status light to show green, Subsonic must be disabled and then re-enabled.
Subsonic 4.5.04 continues to crash when the NAS is rebooted. Subsonic will not restart once the NAS is finished booting. - dk0rGuideWith the exception of Subsonic crashing upon reboot of the NAS, subsonic crashed for the first time in 24-hours.
When I tried to access subsonic directly on port4040 I received the following:
I tried to manually restart (uncheck, save, re-check, save) the subsonic plugin in the frontview addons page but I repeatedly received the following error:
I both restarted and shut down the NAS multiple times but subsonic continued to be inaccessible showing both of the errors above.
I was forced to remove 4.5.04 then reinstall 2.0.00 and update back to 4.5.04.
:cry: - I can confirm that 4.5.04 addon green light does not stay on, but the subsonic service itself has been running fine on my pro.
On my ultra 4 with mixed mp3/flac library, it was crashed the first few days but then started staying up for whatever reason.
Some questions, what size library do you have?
if you ssh in and check the subsonic.sh file (ie nano /c/webroot/subsonic/subsonic.sh), what is the max memory set at? mine is set for 700, my library is over 200k mp3.
Various people, including myself, have had problems with subsonic crashing since S-P came out with the addon. Mine has been stable for seems like nearly a year, tho others have still had problems off and on.
Aside from running out of memory, I'm not sure if its more of a subsonic issue or readynas/addon issue.
I don't think it matters, but I'm using the below ffmpeg and lame, from before a separate addon was created.sauron:~# ffmpeg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on May 5 2010 09:37:32 with gcc 4.4.1
configuration: --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-libfaad --disable-decoder=aac
libavutil 50. 8. 0 / 50. 8. 0
libavcodec 52.52. 0 / 52.52. 0
libavformat 52.50. 0 / 52.50. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
sauron:~# lame
LAME 32bits version 3.97 (http://www.mp3dev.org/)
usage: lame [options] <infile> [outfile]
<infile> and/or <outfile> can be "-", which means stdin/stdout.
Try:
"lame --help" for general usage information
or:
"lame --preset help" for information on suggested predefined settings
or:
"lame --longhelp"
or "lame -?" for a complete options list
sauron:~# - dk0rGuide..I was beginning to grow lonely
TeknoJnky wrote: I can confirm that 4.5.04 addon green light does not stay on, but the subsonic service itself has been running fine on my pro.
Does 4.5.04 startup without error if you reboot your NAS? Which version of Radiator are you running?TeknoJnky wrote: what size library do you have?...my library is over 200k mp3.
I've only about 7k flac/mp3 files viewable by subsonic.TeknoJnky wrote: if you ssh in and check the subsonic.sh file (ie nano /c/webroot/subsonic/subsonic.sh), what is the max memory set at? mine is set for 700...
700 here too. It seems that 700 may be default. I'll assume the units of measure are Mega Bytes and try seeing if varying the values has an affect on stability.
Contents of subsonic.sh as follows:#!/bin/sh
###################################################################################
# Shell script for starting Subsonic. See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################
SUBSONIC_HOME=/c/webroot/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=700
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/c/media/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/c/media/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/c/media/playlists
quiet=0
export LC_CTYPE=en_US.UTF-8
usage() {
echo "Usage: subsonic.sh [options]"
echo " --help This small usage guide."
echo " --home=DIR The directory where Subsonic will create files."
echo " Make sure it is writable. Default: /var/subsonic"
echo " --host=HOST The host name or IP address on which to bind Subsonic."
echo " Only relevant if you have multiple network interfaces and want"
echo " to make Subsonic available on only one of them. The default value"
echo " will bind Subsonic to all available network interfaces. Default: 0.0.0.0"
echo " --port=PORT The port on which Subsonic will listen for"
echo " incoming HTTP traffic. Default: 4040"
echo " --https-port=PORT The port on which Subsonic will listen for"
echo " incoming HTTPS traffic. Default: 0 (disabled)"
echo " --context-path=PATH The context path, i.e., the last part of the Subsonic"
echo " URL. Typically '/' or '/subsonic'. Default '/'"
echo " --max-memory=MB The memory limit (max Java heap size) in megabytes."
echo " Default: 100"
echo " --pidfile=PIDFILE Write PID to this file. Default not created."
echo " --quiet Don't print anything to standard out. Default false."
echo " --default-music-folder=DIR Configure Subsonic to use this folder for music. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music'"
echo " --default-podcast-folder=DIR Configure Subsonic to use this folder for Podcasts. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music/Podcast'"
echo " --default-playlist-folder=DIR Configure Subsonic to use this folder for playlists. This option "
echo " only has effect the first time Subsonic is started. Default '/var/playlists'"
exit 1
}
# Parse arguments.
while [ $# -ge 1 ]; do
case $1 in
--help)
usage
;;
--home=?*)
SUBSONIC_HOME=${1#--home=}
;;
--host=?*)
SUBSONIC_HOST=${1#--host=}
;;
--port=?*)
SUBSONIC_PORT=${1#--port=}
;;
--https-port=?*)
SUBSONIC_HTTPS_PORT=${1#--https-port=}
;;
--context-path=?*)
SUBSONIC_CONTEXT_PATH=${1#--context-path=}
;;
--max-memory=?*)
SUBSONIC_MAX_MEMORY=${1#--max-memory=}
;;
--pidfile=?*)
SUBSONIC_PIDFILE=${1#--pidfile=}
;;
--quiet)
quiet=1
;;
--default-music-folder=?*)
SUBSONIC_DEFAULT_MUSIC_FOLDER=${1#--default-music-folder=}
;;
--default-podcast-folder=?*)
SUBSONIC_DEFAULT_PODCAST_FOLDER=${1#--default-podcast-folder=}
;;
--default-playlist-folder=?*)
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=${1#--default-playlist-folder=}
;;
*)
usage
;;
esac
shift
done
# Use JAVA_HOME if set, otherwise assume java is in the path.
JAVA=java
if [ -e "${JAVA_HOME}" ]
then
JAVA=${JAVA_HOME}/bin/java
fi
# Create Subsonic home directory.
mkdir -p ${SUBSONIC_HOME}
LOG=${SUBSONIC_HOME}/subsonic_sh.log
rm -f ${LOG}
cd $(dirname $0)
if [ -L $0 ] && ([ -e /bin/readlink ] || [ -e /usr/bin/readlink ]); then
cd $(dirname $(readlink $0))
fi
/c/webroot/subsonic/jre1.6.0_20/bin/java -Xmx${SUBSONIC_MAX_MEMORY}m \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Djava.awt.headless=true \
-verbose:gc \
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
# Write pid to pidfile if it is defined.
if [ $SUBSONIC_PIDFILE ]; then
echo $! > ${SUBSONIC_PIDFILE}
fi
if [ $quiet = 0 ]; then
echo Started Subsonic [PID $!, ${LOG}]
fi - yes its megs, do you have search index auto scan on?
you might try disabling it or set it for a different time
have my pro set for every day @ 7 am
my ultra is set for every @ 6 am
if disabling the search scan fixes the crash, maybe there is some other script or addon that is conflicting, or maybe you have some files that are causing it to crash
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!