Obsolete Releases > SME 8.x Contribs

Serviio DLNA server

<< < (3/6) > >>

nicolatiana:
Pay attention: the developer has released a new release of Java-Ajax Web-Ui (1.0.1-a) but i've found it not working (Unable to add folders; error saving preferences).
I'll try to contact the developer to post a bug on his site.
The Webui is simply configured by putting 2 jar files in the plugins folder of Servio and two sh script in the bin folder.
The autostart must be investigated.
 
Nicola

gajol:
hi,

i can´t get it to install serviio correct. Maybe you know help.

i use:
serviio 1.0.1 - http://download.serviio.org/releases/serviio-1.0.1-linux.tar.gz
servio web ui 1.0.1 - https://github.com/downloads/mpemberton5/Web-UI-for-Serviio/WebUI%20v1.0.1.zip
ajax web ui 0.6.2-f - http://kairoh.bitbucket.org/serviio-webui/dist/serviio-webui-unix-0.6.2-f.tar.gz
java-1.6.0-openjdk-1.6.0.0-1.28.1.10.10.el5_8.x86_64 already installed and latest version


on sme 8 with all current updates in 64 bit.

If i install the serviio like the howto, the server runs and i can see it from other devices. but the webui dont work. and i can´t make my preferences. i got a lot of php error in the messages:


--- Code: ---Dec 12 10:46:18 sme8 esmith::event[3512]: Processing event: local 
Dec 12 10:46:18 sme8 esmith::event[3512]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Dec 12 10:46:18 sme8 esmith::event[3512]: expanding /etc/sysconfig/kernel 
Dec 12 10:46:19 sme8 esmith::event[3512]: expanding /boot/grub/grub.conf 
Dec 12 10:46:19 sme8 esmith::event[3512]: generic_template_expand=action|Event|local|Action|generic_template_expand|Start|1355305578 848921|End|1355305579 907289|Elapsed|1.058368
Dec 12 10:46:19 sme8 esmith::event[3512]: Running event handler: /etc/e-smith/events/local/S50clear-pptp-interfaces
Dec 12 10:46:19 sme8 esmith::event[3512]: S50clear-pptp-interfaces=action|Event|local|Action|S50clear-pptp-interfaces|Start|1355305579 907670|End|1355305579 977130|Elapsed|0.06946
Dec 12 10:46:19 sme8 esmith::event[3512]: Running event handler: /etc/e-smith/events/actions/adjust-services
Dec 12 10:46:20 sme8 esmith::event[3512]: adjusting supervised yum (once) 
Dec 12 10:46:20 sme8 esmith::event[3512]: adjust-services=action|Event|local|Action|adjust-services|Start|1355305579 977499|End|1355305580 101767|Elapsed|0.124268
Dec 12 10:54:23 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 10:54:23 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/status.php on line 37
Dec 12 10:54:23 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/status.php on line 64
Dec 12 10:54:28 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 10:54:33 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 10:54:36 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/presentation.php on line 10
Dec 12 10:54:36 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/presentation.php on line 53
Dec 12 10:54:37 sme8 httpd: PHP Warning:  file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/e-smith/files/ibays/serviio/html/:/tmp) in /home/e-smith/files/ibays/serviio/html/tree/jquery_folder_tree/jquery.foldertree.php on line 18
Dec 12 10:54:38 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 10:54:38 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/metadata.php on line 27
Dec 12 10:54:38 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/metadata.php on line 37
Dec 12 10:54:38 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/library.php on line 28
Dec 12 10:54:38 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/library.php on line 75
Dec 12 10:54:38 sme8 httpd: PHP Warning:  file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/e-smith/files/ibays/serviio/html/:/tmp) in /home/e-smith/files/ibays/serviio/html/tree/jquery_folder_tree/jquery.foldertree.php on line 18
Dec 12 10:54:39 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/status.php on line 37
Dec 12 10:54:39 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/view/status.php on line 64
Dec 12 10:54:43 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 10:55:18 sme8 last message repeated 7 times
Dec 12 10:56:23 sme8 last message repeated 13 times
Dec 12 10:57:28 sme8 last message repeated 13 times
Dec 12 10:57:34 sme8 httpd: PHP Warning:  Invalid argument supplied for foreach() in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 73
Dec 12 10:58:26 sme8 httpd: PHP Warning:  file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/e-smith/files/ibays/serviio/html/:/tmp) in /home/e-smith/files/ibays/serviio/html/tree/jquery_folder_tree/jquery.foldertree.php on line 18
Dec 12 10:59:55 sme8 httpd: PHP Fatal error:  Unsupported operand types in /home/e-smith/files/ibays/serviio/html/lib/serviio.php on line 88
Dec 12 11:00:30 sme8 last message repeated 7 times
Dec 12 11:01:16 sme8 last message repeated 8 times

--- End code ---

if i start the the "serviio-wrapper.sh" the webui works i can save my preferences. media files are added and i´ve got an status server running. BUT i can´t see the server on my devices.

if i start regular the script stops, i didn´t come back to the console, but the webui works.

with
--- Code: ---bash -vf serviio-wrapper.sh
--- End code ---
i got an error an the script stops:


--- Code: --- bash -vf /opt/serviio/bin/serviio-wrapper.sh
#!/bin/sh
### ======================================================================
##
##  Serviio WebUI start Script.
##
### ======================================================================
DIRNAME=`dirname $0`
dirname $0
PROGNAME=`basename $0`
basename $0

# OS specific support (must be 'true' or 'false').
cygwin=false; darwin=false; linux=false;
case "`uname`" in
    CYGWIN*) cygwin=false ;;
    Darwin*) darwin=false ;;
    Linux)   linux=true ;;
esac
uname

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
    [ -n "$SERVIIO_HOME" ] &&
        SERVIIO_HOME=`cygpath --unix "$SERVIIO_HOME"`
    [ -n "$JAVA_HOME" ] &&
        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi

# Setup SERVIIO_HOME
if [ "x$SERVIIO_HOME" = "x" ]; then
    # get the full path (without any relative bits)
    SERVIIO_HOME=`cd $DIRNAME/..; pwd`
fi
cd $DIRNAME/..; pwd
export SERVIIO_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_CLASSPATH="$SERVIIO_HOME/config"
LIB=${SERVIIO_HOME}/plugins
for jar in `ls -1 ${LIB}/*.jar`; do SERVIIO_CLASSPATH="${SERVIIO_CLASSPATH}:${ja                                                                                                                                                             r}"; done
ls -1 ${LIB}/*.jar
ls: /opt/serviio/plugins/*.jar: Datei oder Verzeichnis nicht gefunden
LIB=${SERVIIO_HOME}/lib
for jar in `ls -1 ${LIB}/*.jar`; do SERVIIO_CLASSPATH="${SERVIIO_CLASSPATH}:${ja                                                                                                                                                             r}"; done
ls -1 ${LIB}/*.jar
ls: /opt/serviio/lib/*.jar: Datei oder Verzeichnis nicht gefunden

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
    SERVIIO_HOME=`cygpath --path --windows "$SERVIIO_HOME"`
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
    SERVIIO_CLASSPATH=`cygpath --path --windows "$SERVIIO_CLASSPATH"`
fi

# Find best max heap size (from Patters' http://pcloadletter.co.uk/2012/01/25/se                                                                                                                                                             rviio-syno-package/)
JAVA_MAX_HEAP=384M
RAM=$(grep "MemTotal" /proc/meminfo | awk '{print $2/1024}')
grep "MemTotal" /proc/meminfo | awk '{print $2/1024}'
if [ $RAM -le 128 ]; then
    JAVA_MAX_HEAP=80M
elif [ $RAM -le 256 ]; then
    JAVA_MAX_HEAP=192M
fi
/opt/serviio/bin/serviio-wrapper.sh: line 59: [: 2009,33: integer expression exp                                                                                                                                                             ected
/opt/serviio/bin/serviio-wrapper.sh: line 61: [: 2009,33: integer expression exp                                                                                                                                                             ected

# Execute the JVM in the foreground
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encod                                                                                                                                                             ing=UTF-8 -Dserviio.home=$SERVIIO_HOME -Dderby.system.home=$SERVIIO_HOME/library                                                                                                                                                             "
JVM_OPTS="-Xms20M -Xmx${JAVA_MAX_HEAP} -XX:+UseParNewGC -XX:MinHeapFreeRatio=10                                                                                                                                                              -XX:MaxHeapFreeRatio=20"
"$JAVA" $JVM_OPTS $JAVA_OPTS -classpath "$SERVIIO_CLASSPATH" org.serviio.restui.                                                                                                                                                             ServiioWrapper "$@"
Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/restui/Se                                                                                                                                                             rviioWrapper
Caused by: java.lang.ClassNotFoundException: org.serviio.restui.ServiioWrapper
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.serviio.restui.ServiioWrapper. Program will e                                                                                                                                                             xit.

--- End code ---

wich things have to be changed from the howto by using the ajax webUI?
ps: i don´t have an android phone, then i need the webinterface.

thank you very much.

go_jesse:
the howto worked great for me. Thanks!!!

As a followup, I upgraded to 1.1 servio and it works fine with original webui (but complains about mismatch)

I am investigating webui update.

WayneJVM:
I have tried upgrading to 1.1 and found that my DLNA players would no longer work and neither would the Flowplayer. Was there anything different about the install?

Drifting:
I feel all rather confused by this installation.

I have followed the howto, but have the porblems discussed in the forum with parser and missmatch in the webui. So what versions do I need to get this working? The link at the bottom of the forum tread just goes to the webui version.

Regards P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version