Page 1 of 1
Serviio service on Synology keeps stopping

Posted:
Mon Jun 15, 2020 8:07 am
by a7mag3ddon
Hello,
I have been running Serviio Pro on my synology box for over a year without a problem, 2 days ago i installed 1 new hard drive (which i have done several times over the last year) and now every 2 or 3 minutes Serviio just stops.
Things that may be important to know, Serviio is installed on Volume1 but the media is on an extension box to the main synology and has not had any hdd upgrades, i have not upgraded DSM either. (edit: now updated to try and fix)
This morning i installed the latest 2.x version and it seemed stable so i bought the license and added it and within 5 minutes the server stopped again.
Nothing has really changed on my NAS since first installing it and up to 2 days ago has been running perfectly.
are there any logs i can look at to see whats going on? its really frustrating and i use the media server alot.
Thanks
Re: Serviio service on Synology keeps stopping

Posted:
Mon Jun 15, 2020 2:52 pm
by atc98092
Yes, we need to see the Serviio log to see if it's shutting itself down. I'm not 100% certain where it's located on a NAS, but is should be in the same folder location as the install, under a Logs folder.
Re: Serviio service on Synology keeps stopping

Posted:
Fri Jun 19, 2020 7:43 am
by a7mag3ddon
Hello,
But where is that? i dont know where packages are installed as they are done from a central control panel.
Re: Serviio service on Synology keeps stopping

Posted:
Fri Jun 19, 2020 8:01 am
by a7mag3ddon
I have found the log file. im not sure why its complaining about space there is both LOTS of hdd space and System Memory.
What can i do ?
An unexpected error occurred. Ending the application. Message: Java heap space. Check serviio.log for more details.
2020-06-19 08:40:30,894 INFO [LibraryOneTimeScanner] Interrupting library scan
2020-06-19 08:40:30,894 INFO [LibraryDeltaScanner] Stopping the library delta scan
2020-06-19 08:40:30,895 WARN [LibraryDeltaScanner] Error during stopping the file monitor
java.lang.IllegalStateException: Monitor is not running
at org.apache.commons.io.monitor.FileAlterationMonitor.stop(FileAlterationMonitor.java:163)
at org.serviio.library.local.indexing.polling.FileAlterationMonitorAdapter.stop(FileAlterationMonitorAdapter.java:39)
at org.serviio.library.local.indexing.polling.FileDeltaPoller.stop(FileDeltaPoller.java:128)
at org.serviio.library.local.indexing.LibraryDeltaScanner.interruptScan(LibraryDeltaScanner.java:84)
at org.serviio.library.local.indexing.LocalLibraryManager.stopLibraryScanning(LocalLibraryManager.java:142)
at org.serviio.MediaServer$ShutdownHook.run(MediaServer.java:365)
2020-06-19 08:40:30,895 INFO [RepositoriesStatusCoordinator$RepositoriesStatusThread] Finished checking repositories status
2020-06-19 08:40:30,895 INFO [FeedUpdaterWorker] Finished looking for online resources information
2020-06-19 08:40:30,995 INFO [PluginCompilerThread] Finished looking for plugins
Exception in thread "Thread-60" java.lang.ExceptionInInitializerError
at org.serviio.MediaServer$ShutdownHook.run(MediaServer.java:369)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
at java.lang.Runtime.addShutdownHook(Runtime.java:211)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.initialize(CompositeCacheManager.java:253)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:185)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:161)
at org.apache.commons.jcs.JCS.getCacheManager(JCS.java:172)
at org.apache.commons.jcs.JCS.getInstance(JCS.java:190)
at org.serviio.cache.AbstractCacheDecorator.<init>(AbstractCacheDecorator.java:39)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.TokenCache.<init>(TokenCache.java:22)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.LoginServerResource.<clinit>(LoginServerResource.java:37)
... 1 more
Re: Serviio service on Synology keeps stopping

Posted:
Fri Jun 19, 2020 11:53 pm
by atc98092
OK, so that's a Java error. Doesn't matter how much HDD space or memory you have, Java has independent settings for how much memory it can access, but I have no clue how to change those settings on a NAS. Hopefully one of the NAS savvy users here can answer that question. It could also be that you're using a 32 bit version of Java, and it's running into the hard memory limit that 32 bits has. Again, I can't specifically help with that on a NAS device.