[HowTo] Serviio 1.3.1 for Zyxel NSA325

Marvell Kirkwood based
Post Reply
barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Tue Jan 12, 2016 1:47 pm

Possible workaround for latest java:

Code: Select all

java -Xshare:dump
and start serviio.
http://docs.oracle.com/javase/8/docs/te ... ip2content

normsland
Posts: 69
Joined: Sun Mar 31, 2013 10:07 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by normsland » Tue Jan 12, 2016 8:48 pm

barmalej2 wrote:It might be related with java update or missing dependencies. First of all analyze logs inside serviio directory.
I have temporary fix idea related with java new version, but I am waiting for serviio developer opinion for now.
Hi barmalej2

No problems here. I am running the latest Oracle Java SE Embedded Version 8 Update 65 ejdk-8u65-linux-arm-sflt.tar.gz. Please can you try the java build process using jrecreate as per outlined here: viewtopic.php?f=249&t=16763 and let me know you results. I am guessing that your jre might not be complete.

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Wed Jan 13, 2016 7:23 am

Hi norm,

It is good to know, that is working for you. I have no doubts, that you used recommended by oracle and prefered way to install java for your system. Still it doesn't means that my jre incomplete or something like that. More likely is vice versa. By installing as per oracle instructions, you have more targeted and likely less in size jre. As you might suspected, I have extracted jre from oracle distributed tarball release ejdk-8u65-linux-arm-sflt.tar.gz. This way I have full jre, with all possible VM's. I just missed to regenerate shared archive after extraction, which is a part of standart installation procedure.
When the JRE is installed using the installer, the installer loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file, called a "shared archive". If the JRE installer is not being used, this can be done manually, as explained below. java -Xshare:dump (for record)
Taken from:
http://docs.oracle.com/javase/8/docs/te ... ip2content
The benefit of my method is that I can install java on my NAS in less than 30 seconds, instead of dowloading it to host PC, build java there and then copy to NAS. Plus I always have full jre.
It doesn't matter after all how do I install java. It runs and I can run serviio. What matters is that serviio uses two command line arguments, which contrary to each other.
From the same oracle link above:
Class data sharing is supported only with the Java HotSpot Client VM, and only with the serial garbage collector
So, it seems wrong way to use both -XX:+UseG1GC and -Xshare:on at the same time.
That is why I leaved question regarding garbage collection open. By the way, G1GC used by serviio start script in not available in ejdk-8u65-linux-arm-sflt.tar.gz release.
Check yourself norm:

Code: Select all

java -XX:+UseG1GC -version
I just wanted to attract serviio developer attention, that G1GC garbage collector is not available for softfloat armv5 and -Xshare:on is useless when -XX:+UseG1GC is used. -Xshare:auto is more generic way, because -Xshare:on can prevent serviio from starting in some cases.
P.S. This might be not related with killeriq serviio startup issue. As I said already, the second reason can be missing dependencies:ffmpeg and so on.

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Wed Jan 13, 2016 7:08 pm

not working :( still the same

Code: Select all

root@NSA325-v2:/ffp/opt/serviio/bin# sh /ffp/start/serviiod.sh start
Starting Serviio
OK
root@NSA325-v2:/ffp/opt/serviio/bin# sh /ffp/start/serviiod.sh status
Serviio shell is stopped
Serviio Java is stopped
root@NSA325-v2:/ffp/opt/serviio/bin# java -XX:+UseG1GC -version
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
java version "1.8.0_65"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_65-b17, headless)
Java HotSpot(TM) Embedded Client VM (build 25.65-b01, mixed mode)

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Wed Jan 13, 2016 8:07 pm

Usage of -XX:+UseG1GC garbage collector doesn't affects serviio startup. It is a warning after all, not error. Don't mix everything in to one boiler guys. I believe, I have explained quite widely and hopefully understandable.
Check, what says serviio log:

Code: Select all

cat /ffp/opt/serviio/log/serviio.log
If the output is long, then better paste it somewhere outside (pastebin.com for example) and only link here.

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Wed Jan 13, 2016 10:20 pm

no log file

Code: Select all

root@NSA325-v2:~# cat /ffp/opt/serviio/log/serviio.log
cat: /ffp/opt/serviio/log/serviio.log: No such file or directory
root@NSA325-v2:~# cd /ffp/opt/
Bubble/                      serviio/
ejdk-8u65-linux-arm-sflt.gz  serviio-1.5.2/
ejdk1.8.0_65/                serviio-1.5.2-linux.tar.gz
java/
root@NSA325-v2:~# cd /ffp/opt/serviio/
LICENCE.txt        RELEASE_NOTES.txt  legal/             log/
NOTICE.txt         bin/               lib/               plugins/
README.txt         config/            library/           serviio/
root@NSA325-v2:~# cd /ffp/opt/serviio/log/
root@NSA325-v2:/ffp/opt/serviio/log# ls
root@NSA325-v2:/ffp/opt/serviio/log#

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Thu Jan 14, 2016 5:49 am

Paste the following output as well:

Code: Select all

which java

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Thu Jan 14, 2016 1:54 pm

root@NSA325-v2:~# which java
/ffp/opt/java/jre/bin/java

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Thu Jan 14, 2016 8:02 pm

Remove all serviio data first:

Code: Select all

rm -rf /ffp/opt/serviio*
Install serviio with required dependencies (total 16 packages):

Code: Select all

slacker -UAa br2:ffmpeg2/ br2:serviio/
Start serviio:

Code: Select all

sh /ffp/start/serviio.sh start
If still not starts check logs again:

Code: Select all

cat /ffp/opt/serviio/log/serviio.log

Code: Select all

cat /ffp/opt/serviio/log/serviio_errors.log

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Fri Jan 15, 2016 11:32 am

i dont have to edit those "serviio.sh" files?

Code: Select all

root@NSA325-v2:~# sh /ffp/start/serviio.sh start
Starting serviio.../ffp/bin/sh: /ffp/opt/serviio/log/serviio_errors.log: No such file or directory
[ Fail!!! ] ERROR WARNING: serviio can not start!!!
root@NSA325-v2:~# cat /ffp/opt/serviio/log/serviio.log
cat: /ffp/opt/serviio/log/serviio.log: No such file or directory
root@NSA325-v2:~# cat /ffp/opt/serviio/log/serviio_errors.log
cat: /ffp/opt/serviio/log/serviio_errors.log: No such file or directory
root@NSA325-v2:~# cd /ffp/opt/serviio/
root@NSA325-v2:/ffp/opt/serviio# ls
LICENCE.txt  NOTICE.txt  README.txt  RELEASE_NOTES.txt  bin  config  legal  lib  library  plugins

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Fri Jan 15, 2016 12:43 pm

No, don't edit. It is my mistake in serviio startup script. I have forgotten, that log directory is created by serviio itself on first run. But I am reddirecting startup errors to serviio_errors.log a bit early. Will correct this with new serviio ffp package soon. Meanwhile you can solve it manually:

Code: Select all

mkdir /ffp/opt/serviio/log
and try to start service again:

Code: Select all

sh /ffp/start/serviio.sh start
If anything goes wrong with startup, check the logs as previuosly.

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Fri Jan 15, 2016 5:54 pm

Just uploaded new revision of serviio ffp package with some changes in start script. Upgrade it:

Code: Select all

slacker -UaA br2:serviio/serviio
Hopefully previous startup error should not appear this time.

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Sat Jan 16, 2016 6:10 pm

after ive created the log folder i was able to start it, but the web page wasnt working (dont remember the error - but it was already from serviio)

So i tried to reinstall, no success, so i removed serviio folder and tried again...but md5 doesnt match

Code: Select all

fetch: found /ffp/funpkg/cache/br2/serviio/serviio-1.5.2-arm-3.txz
/ffp/funpkg/cache/br2/serviio/serviio-1.5.2-arm-3.txz: FAILED
md5sum: WARNING: 1 of 1 computed checksum did NOT match
fetch: (cd '/ffp/funpkg/cache/br2/serviio'; wget -Nnv 'http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages//serviio/serviio-1.5.2-arm-3.txz')
^C
root@NSA325-v2:~#

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Sat Jan 16, 2016 10:18 pm

killeriq wrote:after ive created the log folder i was able to start it, but the web page wasnt working (dont remember the error - but it was already from serviio)
What web page? By default, Serviio server running on NAS is controlled by Serviio console running on PC.
Regarding upgrading serviio package. Paste full output. I have no problems installing it.

killeriq
Posts: 34
Joined: Mon Sep 08, 2014 9:18 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by killeriq » Sat Jan 16, 2016 11:39 pm

i did tried again to reinstall it and it was working now :)

Good Thanks!

this is what i get IP:23423

Code: Select all

Not Found

The server has not found anything matching the request URI

You can get technical details here.
Please continue your visit at our home page.
I thought i can use it via web as minidlna,twonky,plex :D

Well i try so search for some app

EDIT: installed Serviio Win console - it says: Cannot connect to Serviio server, not running, Exiting
So probably its for the server on win installation
---
Found on their web: Linux - run Serviio server with bin/serviio.sh (with the -stop attribute to stop a running instance). To start the console run bin/serviio-console.sh. A

Code: Select all

root@NSA325-v2:~# sh /ffp/opt/serviio/bin/serviio-console.sh
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
Exception in thread "Thread-1" java.lang.NullPointerException
        at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:328)
Somehow i face all the issues :D

Post Reply