Serviio 1.5 with Ubuntu Server 14.04
Hey there
I've been trying to set up Serviio to work with my Ubuntu server. I was really enjoying another DLNA service but ran into problems when I realised that it was unable to do transcoding on the fly, so a friend of mine recommended Serviio.
I've been through a lot of effort to get this working. I had to install java 8 from the ppa packages because Serviio doesn't want to work with java 7.
That fixed my first set of errors but now I'm running into this. I can't find an answer anywhere on google.
I used sudo sh -v /srv/serviio-1.5/bin/serviio-console.sh and this was the output
Without the -v I just get
Any help on this matter would be greatly appreciated.
I've been trying to set up Serviio to work with my Ubuntu server. I was really enjoying another DLNA service but ran into problems when I realised that it was unable to do transcoding on the fly, so a friend of mine recommended Serviio.
I've been through a lot of effort to get this working. I had to install java 8 from the ppa packages because Serviio doesn't want to work with java 7.
That fixed my first set of errors but now I'm running into this. I can't find an answer anywhere on google.
I used sudo sh -v /srv/serviio-1.5/bin/serviio-console.sh and this was the output
- Code:
#!/bin/sh
### ====================================================================== ###
## ##
## Serviio Console ript ##
## ##
### ====================================================================== ###
DIRNAME=`dirname $0`
PROGNAME=`basename $0`
# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
linux=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;
Darwin*)
darwin=true
;;
Linux)
linux=true
;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$SERVIIO_CONSOLE_HOME" ] &&
SERVIIO_CONSOLE_HOME=`cygpath --unix "$SERVIIO_CONSOLE_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# Setup SERVIIO_CONSOLE_HOME
if [ "x$SERVIIO_CONSOLE_HOME" = "x" ]; then
# get the full path (without any relative bits)
SERVIIO_CONSOLE_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_CONSOLE_HOME
# Setup the JVM
if [ "x$JAVA" = "x" ]; then
if [ "x$JAVA_HOME" != "x" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"
fi
fi
# Setup the classpath
SERVIIO_CONSOLE_CLASS_PATH="$SERVIIO_CONSOLE_HOME/lib/*:$SERVIIO_CONSOLE_HOME/co nfig"
# Setup Serviio specific properties
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
SERVIIO_CONSOLE_HOME=`cygpath --path --windows "$SERVIIO_CONSOLE_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SERVIIO_CONSOLE_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CONSOLE_CLASS _PATH"`
fi
# Execute the JVM in the foreground
exec "$JAVA" -Xms5M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=5 -XX:Ma xHeapFreeRatio=10 $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.servii o.console.ServiioConsole "$@"
Exception in thread "Thread-1" java.lang.NullPointerException
at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:328)
Without the -v I just get
Any help on this matter would be greatly appreciated.