Page 1 of 1

Serviio 1.0.1 on Synology DS-412+

PostPosted: Wed Nov 14, 2012 5:20 pm
by Boby_OS
Hello,

Serviio is my choice for DLNA server on my NAS(latest firmware). However, it will not hibernate, while the Serviio is running. Reading about this ( java issue "syncInterval"), with the command syno_hibernate_debug_tool I realize that every 10 sec program is trying to read from HDD ( exactly it goes: /volume1/public/serviio/plugins opened by pid 20154 -> /volume1/@appstore/java6/jre/bin/java ). I don't have any plugin (.groove) installed, have disabled all checking for library updates. And hibernation is "must have" for me! Any suggestions!?

Also, is java 7 still doesn't work on DS-412+ (x86 CPU)?

Regards!!!

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sat Nov 17, 2012 4:12 pm
by patters
Have you tried putting at least one plugin in there? It might stop polling after that.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sun Nov 18, 2012 8:17 am
by Boby_OS
Yes, I did... also tried to remove java plugin argument in serviio.sh...
Nothing changed...

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Wed Dec 26, 2012 6:56 pm
by Delgado
Hi patters,
i have exactly the same problem. I copy the correspondence from
http://pcloadletter.co.uk/2012/01/25/serviio-syno-package/comment-page-4/#comment-12444.
Delgado and Dirk are the same person :mrgreen:.

I have a DS213+ with the latest Serviio and the latest DSM 4.1-2668. All media files are already indexed, but the NAS didnt go in the hibernation mode. The hibernation mode is entered after ten minutes if i stop Servio. Anyway had an explanation for this behavior? Pls help :-(
Reply

Joe144 says:
December 25, 2012 at 23:07

I have the same problem with my DS413.

Dirk says:
December 25, 2012 at 23:27

In the forum exists a thread which describes exactly this problem but the solution does not change the behavior on my platform. Here is the link if you’re interested. viewtopic.php?f=5&t=6878

patters says:
December 26, 2012 at 00:18

That fix is already incorporated into the package I’m afraid. Have you tried lowering the time interval for the library refresh in the Serviio Console? It’s 5 mins by default remember, so the disk will be polled every 5 mins unless you change that.

Dirk says:
December 26, 2012 at 11:01

Hi patters,
thx for your fast answer. Yes, the fix with the syncInterval is in the package already. The value is 86400 that is approx. 24h. The checkbox of the serviio console to update the library is unchecked. I use the Serviio Web UI interface to set the serviio configuration. All other checkboxes are also unchecked on tab pages Library, Metadata, Transcoding and Console settings. I start Serviio with the properties (-Djava.util.prefs.syncInterval=86400) directly from the command line. The behavior is the same. I have the feeling that the property -Djava.util.prefs.syncInterval has no effect, even though the value is 86400. Have you an idea? and sorry for my bad english. I hope you understand me.

patters says:
December 26, 2012 at 12:21

Have another look at that forum thread for info on how to enable debugging of hibernation issues. You should be able to see precisely what on the filesystem is being polled, which should give further clues as to how to fix.

Dirk says:
December 26, 2012 at 15:11

Ok, i have a debug log with runnig serviio recorded. Here is the relevant section from the /var/log/messages.

Dec 26 14:25:11 kernel: [18476.251251] drivers/scsi/sd.c[461]:syno_hibernation_timer_update(), sdb: cmd 0×0 spin up by pid=3405, comm=khelper
Dec 26 14:25:11 kernel: [18476.261662] drivers/scsi/sd.c[461]:syno_hibernation_timer_update(), sda: cmd 0×0 spin up by pid=24815, comm=events/1
Dec 26 14:25:39 kernel: [18491.667187] Freezing user space processes … (elapsed 0.00 seconds) done.
Dec 26 14:25:39 kernel: [18491.674703] Freezing remaining freezable tasks … (elapsed 0.00 seconds) done.
Dec 26 14:25:39 kernel: [18491.682095] Suspending console(s) (use no_console_suspend to debug)
Dec 26 14:25:39 kernel: [18491.689260] ata4: send port disabled event
Dec 26 14:25:39 kernel: [18491.689292] ata3: send port disabled event
Dec 26 14:25:39 kernel: [18491.890578] ata1: send port disabled event
Dec 26 14:25:39 kernel: [18491.890611] ata2: send port disabled event
Dec 26 14:25:39 kernel: [18491.906771] Disabling non-boot CPUs …
Dec 26 14:25:39 kernel: [18492.352572] Enabling non-boot CPUs …
Dec 26 14:25:39 kernel: [18492.352600] setting frequency for cpu 0 to 1066666 kHz, PLL ratio is 4/2
Dec 26 14:25:39 kernel: [18492.352608] PMJCR request 04043c00 at CPU 0
Dec 26 14:25:39 kernel: [18492.352615] PORPLLSR core freq 1066MHz at CPU 0
Dec 26 14:25:39 kernel: [18492.353072] Processor 1 found.
Dec 26 14:25:39 kernel: [18492.438589] 0: 533333kHz
Dec 26 14:25:39 kernel: [18492.438593] 1: 799999kHz
Dec 26 14:25:39 kernel: [18492.438597] 2: 1066666kHz
Dec 26 14:25:39 kernel: [18492.438600] 3: 1333332kHz
Dec 26 14:25:39 kernel: [18492.438604] 4: 1599999kHz
Dec 26 14:25:39 kernel: [18492.438608] 5: 1866665kHz
Dec 26 14:25:39 kernel: [18492.438611] 6: 2133332kHz
Dec 26 14:25:39 kernel: [18492.438656] setting frequency for cpu 1 to 1066666 kHz, PLL ratio is 4/2
Dec 26 14:25:39 kernel: [18492.438662] PMJCR request 04043c00 at CPU 1
Dec 26 14:25:39 kernel: [18492.438667] PORPLLSR core freq 1066MHz at CPU 1
Dec 26 14:25:39 kernel: [18492.438702] setting frequency for cpu 1 to 1066666 kHz, PLL ratio is 4/2
Dec 26 14:25:39 kernel: [18492.438707] PMJCR request 04043c00 at CPU 1
Dec 26 14:25:39 kernel: [18492.438712] PORPLLSR core freq 1066MHz at CPU 1
Dec 26 14:25:39 kernel: [18492.438717] CPU1 is up
Dec 26 14:25:39 kernel: [18492.950448] ata4: No Device OR PHYRDY change,Hstatus = 0xa0000000
Dec 26 14:25:39 kernel: [18492.950479] ata3: No Device OR PHYRDY change,Hstatus = 0xa0000000
Dec 26 14:25:39 kernel: [18502.445883] ata2: softreset failed (timeout)
Dec 26 14:25:39 kernel: [18502.445888] ata2: softreset failed, set srst fail flag
Dec 26 14:25:39 kernel: [18502.445910] ata1: softreset failed (timeout)
Dec 26 14:25:39 kernel: [18502.445914] ata1: softreset failed, set srst fail flag
Dec 26 14:25:39 kernel: [18504.645783] ata2: link reset sucessfully clear error flags
Dec 26 14:25:39 kernel: [18504.645838] ata1: link reset sucessfully clear error flags
Dec 26 14:25:39 kernel: [18504.876694] Restarting tasks … [/etc/localtime] opened by pid 3024 [u:(/sbin/klogd), comm:(klogd)]
Dec 26 14:25:39 kernel: [18504.885971] [/volume2/public/serviio/plugins] opened by pid 27148 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Dec 26 14:25:39 kernel: [18504.888302] done.
Dec 26 14:25:40 kernel: [18505.126603] usb usb2: No SuperSpeed endpoint companion for config 1 interface 0 altsetting 0 ep 129: using minimum values
Dec 26 14:25:40 scemd: SCEMD: disk 2 wake up from hibernation

Is the access to the serviio plugins the problem? I dont have installed plugins.


It was very nice if you can help or has an idea.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Thu Dec 27, 2012 6:30 pm
by Delgado
No idea? :|

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sun Dec 30, 2012 9:29 am
by marz
Hello,

I have the same issue since the Serviio installation on my Synology DS412.

It seems that each 10 seconds Serviio scans the content of the plugin directory.

Extract of the /var/log/messages file with enabling the hibernate debug tool:

Dec 30 10:23:59 kernel: [75528.570807] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:09 kernel: [75538.578696] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:19 kernel: [75548.586494] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:29 kernel: [75558.594365] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:39 kernel: [75568.602197] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:49 kernel: [75578.610048] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:24:59 kernel: [75588.617914] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]
Dec 30 10:25:09 kernel: [75598.626720] [/volume1/@appstore/Serviio/plugins] opened by pid 29134 [u:(/volume1/@appstore/java6/jre/bi), comm:(java)]


I tried to change the location of the plugin directory to /volume1/@appstore/Serviio/plugins, add or remove the .groovy files, add or remove the online ressources, change the rights or owner of the .groovy files but no change.

It prevents the Synology hard disks to hibernate.
For the moment, I created 2 entries in the crontab file: one to stop the serviio package at midnight and the second one to restart it at the beginning of the morning to allow the HDD hibernation during the night.

Is it a known bug or issue ?
Do you have a workarround ?

Thanks for your help and congratulations for this wonderful application.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Thu Jan 03, 2013 9:51 am
by Delgado
Is it possible to disable the access to the plugin folder of the serviio server?
Anybody can help me?

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Thu Jan 03, 2013 3:14 pm
by r-win
For now, there isn't. I think you should create a ticket for this. Maybe zip can change this behavior in a future release.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Thu Jan 03, 2013 5:02 pm
by Delgado
Thanks for your answer :).
Do you know how to create a ticket?

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Thu Jan 03, 2013 8:12 pm
by Delgado
Ok, i have found and ticket created, thx

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Fri Jan 04, 2013 1:20 am
by patters
This could be some weird Java issue on Intel Synos. It definitely does not exhibit this behaviour on ARM.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Fri Jan 04, 2013 5:43 am
by Delgado
Hi patters,

I have a Synology DS213+ with a freescale PowerPC P1022 CPU. I think, that isn't an Intel based platform.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Fri Jan 04, 2013 11:04 pm
by patters
Ok, maybe it's a strange PPC issue then :)
On ARM it's not doing this. Hmm. Perhaps ask the question on the Oracle Java forum as a long shot (could a Java program behave differently for file access on PPC Vs ARM Java runtimes?).

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sat Jan 05, 2013 10:38 am
by Delgado
Hi patters,

thanks. I created a thread at Oracle - Java SE embedded forum.

See the link:
https://forums.oracle.com/forums/thread.jspa?threadID=2482762&tstart=0

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sat Jan 05, 2013 3:17 pm
by patters
I just remembered - I had a similar issue with ARM Synos refusing to sleep while running CrashPlan and on ARM I discovered that it's polling a config file continuously every few seconds, just as you have seen with Serviio on PPC. I raised it with CrashPlan support and they confirmed that it definitely should not be doing that. In that case, it doesn't do it on Intel, but does on ARM. I gave up on it in the end because no one could help.

Re: Serviio 1.0.1 on Synology DS-412+

PostPosted: Sun Jan 06, 2013 10:58 am
by Delgado
Hi patters,

I tried again to analyze why the disk station doesn't go into hibernation if the serviio server is active.
Probably the problem is the regular file access of Java to the serviio /volume2/public/serviio/plugins folder.
I renamed the folder to xxplugins and start the serviio server again. System debug log is active.
After 20 minutes I get that debug log.

Here is a part of the debug log.
Jan 6 11:39:30 kernel: [55937.462800] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5456 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:39:40 kernel: [55947.472460] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5459 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:39:50 kernel: [55957.482220] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5462 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:40:00 kernel: [55967.502752] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5465 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:40:10 kernel: [55977.519749] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5468 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:40:20 kernel: [55987.522049] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5471 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:40:30 kernel: [55997.531794] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5474 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]
Jan 6 11:40:40 kernel: [56007.541376] [/volume1/@appstore/Serviio/config/META-INF/services/javax.xml.transform.TransformerFactory] opened by pid 5477 [u:(/volume1/@appstore/java7/jre/bi), comm:(java)]


Java tries to access an additional library in the configuration folder of serviio. The XmlTransformerFactory library doesn't exist.
Have you an explanation for this behaviour? Use the serviio server this library? And perhaps the library is only missing?
Maybe is the installation of java incomplete?