Please help.. errors and errors
I've installed serviio 0.6.2 in ubuntu 11.10. I did this by:
I created a user named serviio. I downloaded and untarred the serviio 0.6.2 file. I chowned the files to serviio:serviio. I placed them in the serviio home folder (/usr/local/serviio). The serviio user is a system account, group and user id 999.
I downloaded and installed the latest java, java 1.7.0.40 or whatnot, and tested it (browser works, command line works, all report the version).
I wanted it to start on startup so (as this is ubuntu and we have upstart), I created the /etc/init/serviio.conf file like below:
- Code:
# serviio - DLNA Server
#
description "Serviio DLNA server"
env ROOT_DIR=/usr/local/serviio
env USER=serviio
env SERVIIO_HOME=/usr/local/serviio
env JAVA_HOME=/usr/lib/jvm/java-7-oracle
env JVM_OPTIONS="-Xmx384M -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME"
env LOGPATH=/usr/local/serviio/log
env LOGFILE="$LOGPATH/startup.log"
env SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/serviio.jar:$SERVIIO_HOME/lib/derby.jar:$SERVIIO_HOME/lib/jcs.jar:$SERVIIO_HOME/lib/concurrent.jar:$SERVIIO_HOME/lib/freemarker.jar:$SERVIIO_HOME/lib/httpcore.jar:$SERVIIO_HOME/lib/jaudiotagger.jar:$SERVIIO_HOME/lib/jul-to-slf4j.jar:$SERVIIO_HOME/lib/jcl-over-slf4j.jar:$SERVIIO_HOME/lib/log4j.jar:$SERVIIO_HOME/lib/sanselan.jar:$SERVIIO_HOME/lib/slf4j-api.jar:$SERVIIO_HOME/lib/slf4j-log4j12.jar:$SERVIIO_HOME/lib/org.restlet.jar:$SERVIIO_HOME/lib/org.restlet.ext.xstream.jar:$SERVIIO_HOME/lib/xstream.jar:$SERVIIO_HOME/lib/rome.jar:$SERVIIO_HOME/lib/rome-modules.jar:$SERVIIO_HOME/lib/jdom.jar:$SERVIIO_HOME/lib/groovy-all.jar:$SERVIIO_HOME/lib/winp.jar:$SERVIIO_HOME/lib/org.restlet.ext.gson.jar:$SERVIIO_HOME/lib/gson.jar:$SERVIIO_HOME/config"
kill timeout 10
start on filesystem
stop on runlevel [016]
pre-start script
mkdir -p $LOGPATH
chown $USER:users $LOGPATH
end script
pre-stop script
exec su -c "$JAVA_HOME/bin/java $JVM_OPTIONS -classpath $SERVIIO_CLASS_PATH org.serviio.MediaServer -stop > $LOGFILE 2>&1" $USER
end script
script
exec su -c "$JAVA_HOME/bin/java $JVM_OPTIONS -classpath $SERVIIO_CLASS_PATH org.serviio.MediaServer > $LOGFILE 2>&1" $USER
end script
However, oddly, the documentation does not ask you to "update-rc.d serviio defaults", which seems strange, but as it was lacking I decided the documentation must know what it's talking about, I'll do as it says. Since the service doesn't just 'start', I issued a 'sudo service serviio start' and got a process id back.
I downloaded the 1.01 web UI (because I at first didn't understand that serviio-console.sh wasn't actually a console program, it was a UI, just confusingly named console, and that serviio has no /usr/share/applications/serviio.desktop file, which probably I should make and package in a .deb for the majority of all linux users who use ubuntu).
I placed the php files in /usr/local/serviio/serviio-web, then symlinked (ln -s) /var/www/serviio to that folder. I installed apache2 and php and curl, and configured the apache2 default site to just go to /var/www/serviio instead of just /var/www. The web UI seemed to 'appear' at this point.
However it gave me errors on doing anything. So, I looked in the serviio files to see what's up. And reading the wikis and install and readme files for the 7th time, trying to make sense of the spartan instrucitons, I realized that the brief reference to serviio-console implied that this was the 'client' and not some kind of interactive cli to the server, so I ran the program (as the serviio user... sudo su serviio).
So, my problem is that nothing I do in either the web UI or the serviio-console does anything. If I click on save, if I edit a field, it has no effect. I also can't close the serviio-console, as it just hangs.
I enabled the debug logging mode, but although I have two other 'log' files that seem to populate with nothing useful, the 'startup' log file remains empty (although it was created). I have been pounding my keyboard mouse and entertainment center with my fists trying to figure out whats breaking with this thing as it seems to clearly work so well for everyone else. Any ideas on what my next troubleshooting step should be?