General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Aug 18, 2017 10:34 am

All times are UTC




Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next
Author Message
PostPosted: Tue Jan 12, 2016 1:47 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
Possible workaround for latest java:
Code:
java -Xshare:dump
and start serviio.
http://docs.oracle.com/javase/8/docs/technotes/guides/vm/class-data-sharing.html#skip2content


Top
 Profile  
 
PostPosted: Tue Jan 12, 2016 8:48 pm 
Offline

Joined: Sun Mar 31, 2013 10:07 am
Posts: 66
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: http://forum.nas-central.org/viewtopic.php?f=249&t=16763 and let me know you results. I am guessing that your jre might not be complete.


Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 7:23 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
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.
Quote:
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/technotes/guides/vm/class-data-sharing.html#skip2content
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:
Quote:
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:
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.


Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 7:08 pm 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
not working :( still the same

Code:
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)


Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 8:07 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
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:
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.


Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 10:20 pm 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
no log file

Code:
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#


Top
 Profile  
 
PostPosted: Thu Jan 14, 2016 5:49 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
Paste the following output as well:
Code:
which java


Top
 Profile  
 
PostPosted: Thu Jan 14, 2016 1:54 pm 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
Quote:
root@NSA325-v2:~# which java
/ffp/opt/java/jre/bin/java


Top
 Profile  
 
PostPosted: Thu Jan 14, 2016 8:02 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
Remove all serviio data first:
Code:
rm -rf /ffp/opt/serviio*

Install serviio with required dependencies (total 16 packages):
Code:
slacker -UAa br2:ffmpeg2/ br2:serviio/

Start serviio:
Code:
sh /ffp/start/serviio.sh start

If still not starts check logs again:
Code:
cat /ffp/opt/serviio/log/serviio.log
Code:
cat /ffp/opt/serviio/log/serviio_errors.log


Top
 Profile  
 
PostPosted: Fri Jan 15, 2016 11:32 am 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
i dont have to edit those "serviio.sh" files?

Code:
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


Top
 Profile  
 
PostPosted: Fri Jan 15, 2016 12:43 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
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:
mkdir /ffp/opt/serviio/log

and try to start service again:
Code:
sh /ffp/start/serviio.sh start

If anything goes wrong with startup, check the logs as previuosly.


Top
 Profile  
 
PostPosted: Fri Jan 15, 2016 5:54 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
Just uploaded new revision of serviio ffp package with some changes in start script. Upgrade it:
Code:
slacker -UaA br2:serviio/serviio
Hopefully previous startup error should not appear this time.


Top
 Profile  
 
PostPosted: Sat Jan 16, 2016 6:10 pm 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
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:
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:~#


Top
 Profile  
 
PostPosted: Sat Jan 16, 2016 10:18 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2290
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.


Top
 Profile  
 
PostPosted: Sat Jan 16, 2016 11:39 pm 
Offline

Joined: Mon Sep 08, 2014 9:18 pm
Posts: 34
i did tried again to reinstall it and it was working now :)

Good Thanks!

this is what i get IP:23423

Code:
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:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], fyo, Google [Bot] and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group