Hi, first of all congrats for the good work.
I'm experiencing some issues tryining to use the webui installed on a Nas4Free Server into a jail.
When i install serviio together with the webui, everything works perfectly. Problem comes when i reboot the server, then i am unable to access the webui console through
http://serverip:8123/serviio/console it just says it can't find the web
this is the log i get:
- Code:
2013-02-09 12:29:49,140 INFO [RestletProxy] Starting WebUI
2013-02-09 12:29:49,154 INFO [RestletProxy] Starting Serviio WebUI on port 8123
2013-02-09 12:29:49,177 INFO [RestletProxy] Another WebUI instance is already started.
2013-02-09 12:29:49,209 INFO [MediaServer] ------------------------------------------------------------------------
2013-02-09 12:29:49,209 INFO [MediaServer] Serviio DLNA media streaming server v 1.1 (rev. 6ba0dd933a8e+)
2013-02-09 12:29:49,210 INFO [MediaServer] Petr Nejedly 2009-2012
2013-02-09 12:29:49,210 INFO [MediaServer] http://www.serviio.org
2013-02-09 12:29:49,210 INFO [MediaServer]
I think it's the second line interrupting the process of starting the webui.
This is the script i use to start it:
- Code:
#!/bin/sh
### ====================================================================== ###
## ##
## Serviio start Script ##
## ##
### ====================================================================== ###
SERVIIO_HOME=/usr/local/etc/serviio-1.1
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/plugins/*:$SERVIIO_HOME/config"
# Find the best max heap size for JAVA ( From kairoh's serviio-webui
# scripts - https://kairo.bitbucket.org/serviio-webui, who references
# Platter's (http://pcloadletter.co.uk/2012/01.15/serviio-syno-paackages
JAVA_MAX_HEAP=512M
RAM=$(dmesg | grep 'real memory'| uniq | awk '{print $4/1048576}')
if [ $RAM -le 128 ]; then
JAVA_MAX_HEAP=80M
elif [ $RAM -le 256 ]; then
JAVA_MAX_HEAP=192M
fi
# Setup Serviio specific properties - might not need to specify ffmpeg
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg1"
JVM_OPTS="-Xmx${JAVA_MAX_HEAP} -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20"
# A kludge to get the -D... flags to Java, rather than to Serviio itself:
for o in "$@"
do
case $o in
-D*)
JAVA_OPTS="$JAVA_OPTS $o"
;;
esac
done
# Execute the JVM in the foreground
exec java $JVM_OPTS $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.restui.ServiioWrapper "$@"
- Code:
#!/bin/sh
# $FreeBSD: ports/net/serviio/files/serviio.in,v 1.2 2012/01/14 08:56:27 dougb Exp $
#
# PROVIDE: serviio
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable serviio:
#
# serviio_enable="YES"
. /etc/rc.subr
name=serviio
rcvar=serviio_enable
command=/usr/local/sbin/serviiod
load_rc_config $name
serviio_user=${serviio_user-"dlna"}
command_args=" &"
stop_cmd="$command -stop"
run_rc_command $1
I have to mention that serviio is working perfectly because i can still stream the videos i could select when the webui was working before rebooting the computer.
What could be causing this?
Thanks a lot