FAQ  •  Register  •  Login

Serviio on Synology Stopped

<<

Krofek

Serviio newbie

Posts: 3

Joined: Thu Jun 22, 2017 7:35 pm

Post Thu Jun 22, 2017 8:10 pm

Serviio on Synology Stopped

I can not find solution for my problem. :(
I have last DSM version 6.1.2-15132 and Java 1.8.0_121-0043
I follow instuctions how to install Serviio: https://pcloadletter.co.uk/2012/01/25/s ... o-package/
After installation I see that Servioo is stopped.

I allreay try to reinstal Java and Serviio.
I install again Java: http://news.softpedia.com/news/install- ... 9672.shtml
Restart Synology, then new inatalation Serviio, but the same problem.

Manybe idea: I know, that for some other packages, that I change user on /scripts/start-stop-status file.

Logs for Serviio it is:
2017-06-22 21:25:17,000 Starting Serviio
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
2017-06-22 21:25:30,827 INFO [MediaServer] ------------------------------------------------------------------------
2017-06-22 21:25:30,887 INFO [MediaServer] Serviio DLNA media streaming server v 1.8 (rev. cc55b64588cc)
2017-06-22 21:25:30,888 INFO [MediaServer] Petr Nejedly 2009-2015
2017-06-22 21:25:30,888 INFO [MediaServer] http://www.serviio.org
2017-06-22 21:25:30,888 INFO [MediaServer]
2017-06-22 21:25:30,888 INFO [MediaServer] Java 1.8.0_121-Oracle Corporation arm
2017-06-22 21:25:30,888 INFO [MediaServer] OS Linux 3.2.40
2017-06-22 21:25:30,889 INFO [MediaServer] File encoding: UTF-8
2017-06-22 21:25:32,525 INFO [MediaServer] Headless mode enabled: true
2017-06-22 21:25:32,525 INFO [MediaServer] User: root
2017-06-22 21:25:32,532 INFO [MediaServer] User home dir: /root
2017-06-22 21:25:32,532 INFO [MediaServer] Temp dir: /tmp
2017-06-22 21:25:32,533 INFO [MediaServer] ------------------------------------------------------------------------
2017-06-22 21:25:32,848 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2017-06-22 21:25:33,393 INFO [DatabaseManager] Using DERBY database language
2017-06-22 21:25:55,739 WARN [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: Failed to create database 'db', see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source)
at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:71)
at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:64)
at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:80)
at org.serviio.MediaServer.main(MediaServer.java:125)
Caused by: ERROR XJ041: Failed to create database 'db', see the next exception for details.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 22 more
Caused by: ERROR XBM01: Startup failed due to an exception. See next exception for details.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.exceptionStartingModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.createPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.jdbc.EmbedConnection.createPersistentService(Unknown Source)
... 19 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at sun.nio.cs.UTF_8$Encoder.encode(UTF_8.java:716)
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:304)
at java.lang.StringCoding.encode(StringCoding.java:344)
at java.lang.String.getBytes(String.java:918)
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
at java.io.File.exists(File.java:819)
at org.apache.derby.impl.store.raw.data.RAFContainer.privGetFileName(Unknown Source)
at org.apache.derby.impl.store.raw.data.RAFContainer.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.store.raw.data.RAFContainer.createContainer(Unknown Source)
at org.apache.derby.impl.store.raw.data.RAFContainer4.createContainer(Unknown Source)
at org.apache.derby.impl.store.raw.data.FileContainer.createIdent(Unknown Source)
at org.apache.derby.impl.store.raw.data.FileContainer.createIdentity(Unknown Source)
at org.apache.derby.impl.services.cache.ConcurrentCache.create(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.addContainer(Unknown Source)
at org.apache.derby.impl.store.raw.xact.Xact.addContainer(Unknown Source)
at org.apache.derby.impl.store.access.btree.BTree.create(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2I.create(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IFactory.createConglomerate(Unknown Source)
at org.apache.derby.impl.store.access.RAMTransaction.createConglomerate(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.bootstrapOneIndex(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.bootStrapSystemIndexes(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.makeCatalog(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.createDictionaryTables(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.db.BasicDatabase.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
... 26 more
2017-06-22 21:25:58,016 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null
java.lang.NullPointerException
at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:50)
at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:80)
at org.serviio.MediaServer.main(MediaServer.java:125)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16495

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jun 22, 2017 9:22 pm

Re: Serviio on Synology Stopped

It's been discussed here before. Install the official Java
<<

Krofek

Serviio newbie

Posts: 3

Joined: Thu Jun 22, 2017 7:35 pm

Post Thu Jun 22, 2017 9:27 pm

Re: Serviio on Synology Stopped

Sorry I didn't see this. So where I can get this official Java?
<<

Krofek

Serviio newbie

Posts: 3

Joined: Thu Jun 22, 2017 7:35 pm

Post Sun Jun 25, 2017 5:19 pm

Re: Serviio on Synology Stopped

I find this manual how to install java: https://pcloadletter.co.uk/2011/08/23/j ... -synology/
And I allready do this... So what else I can do?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16495

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jun 27, 2017 7:48 pm

Re: Serviio on Synology Stopped

Try the Java from the Synology store
<<

patters

User avatar

DLNA master

Posts: 1239

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Mon Jul 24, 2017 7:09 am

Re: Serviio on Synology Stopped

There's something wrong with Java 8 on ARM Synology systems. The Synology Java package (which is the full JRE, not the Embedded JRE my own package installs), while not crashing immediately as in your example, will quit unexpectedly as Serviio is indexing media files. So you'll see the Serviio package reverting to Stopped status quite quickly. I have not found a way around this. My brother has an ARM Synology and I spent a while looking at this problem with no success unfortunately.

You'll probably have to make do with Serviio 1.6. See instructions here for installation instructions:
viewtopic.php?f=14&t=22892
PS4 | Bravia KDL-32V5500 | Xbox One S | Synology DS214play
Serviio 1.9 package for Synology NAS - with hardware transcoding support!

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.