Page 15 of 18

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Jan 07, 2017 2:27 am
by patters
I have published a new version of the Serviio package - finally up to date!

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Jan 07, 2017 8:34 pm
by Illico
Hy Patters and thanks for that job !

I have an audio issue with the new 1.8 version (that was working with previous 1.6 version). There were no audio on my Sony Bravia TV (2010).
The avi/MP4/MP3 that previously transcoded well, seems broken now.
Any ideas ?

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Jan 07, 2017 8:56 pm
by zip
I'd think maybe the ffmpeg wrapper is not right in regards to the multi-track delivery in Serviio 1.7.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Jan 07, 2017 11:47 pm
by patters
The wrapper is only invoked on the two NAS models I support for hardware transcoding - DS214Play and DS415Play because I have to alter the ffmpeg commandline for that. On any other Synology model: no wrapper.
Which NAS do you have Illico?

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sun Jan 08, 2017 8:36 am
by Illico
patters wrote:...Which NAS do you have Illico?


a SynoDS116

illico@SynoDS116:~$ uname -a
Linux SynoDS116 3.10.77 #8451 SMP Wed Aug 17 05:12:58 CST 2016 armv7l GNU/Linux synology_armada38x_ds116
illico@SynoDS116:~$ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 3719.16
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1

processor : 1
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 3726.54
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1

Hardware : Marvell Armada 380/381/382/383/384/385/388 (Device Tree)
Revision : 0000
Serial : 0000000000000000


Later, last night, the sound reappeared !! Probably a library update was needed or something else, I simply restarted the serviio service.

Sorry for the disrupt and many thanks for all these builds.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Tue Jan 10, 2017 12:49 am
by nevets14
Hey Patters,

Is there anyway to force the Serviio Pro Evaluation to expire immediately?

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Tue Jan 10, 2017 3:14 pm
by patters
Not that I'm aware of. That's all taken care of internally to Serviio so not something I have any visibility of.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Thu Jan 19, 2017 4:39 pm
by kiskouli
Thank you Patters! all went fine from dsm 6 mandatory upgrade to 1.8 upgrade
No pb yet at this time :)

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Fri Jan 20, 2017 8:25 am
by Quinny
Coming from QNAP to Synology for my new NAS. Downloaded the Serviio 1.8 (many thanks Platters for the work on this) and says need Java. Did the Oracle Java/register stuff and it gives me
ejdk-8u121-linux-i586.tar.gz not 111 every time which will not work as says need 111.

Going mad in tiny tiny circles :(

EDIT - Hmm I do have bad luck with this stuff. Its super new.

8u121 Update Release Notes
January 17, 2017


Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sun Jan 22, 2017 9:46 am
by Quinny
Java has been fixed so now able to download 121 and get working with 1.8. Yay :D

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Fri Jan 27, 2017 2:02 pm
by darthnic
Hey

I just updated Serviio and java to latest versions, but now Serviio won't start at all. I also tried removing everything and reinstalling and I tried to use the synology java pack.

I'm on a DS214+ (MARVELL Armada XP MV78230 1.33gHz)

Here's the serviio log:

  Code:
2017-01-27 14:24:32,000 Starting Serviio
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
2017-01-27 14:24:34,352 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-27 14:24:34,355 INFO  [MediaServer] Serviio DLNA media streaming server v 1.8 (rev. cc55b64588cc)
2017-01-27 14:24:34,356 INFO  [MediaServer] Petr Nejedly 2009-2015
2017-01-27 14:24:34,356 INFO  [MediaServer] http://www.serviio.org
2017-01-27 14:24:34,356 INFO  [MediaServer]
2017-01-27 14:24:34,356 INFO  [MediaServer] Java 1.8.0_121-Oracle Corporation arm
2017-01-27 14:24:34,356 INFO  [MediaServer] OS Linux 3.2.40
2017-01-27 14:24:34,357 INFO  [MediaServer] File encoding: UTF-8
2017-01-27 14:24:34,655 INFO  [MediaServer] Headless mode enabled: true
2017-01-27 14:24:34,656 INFO  [MediaServer] User: root
2017-01-27 14:24:34,656 INFO  [MediaServer] User home dir: /root
2017-01-27 14:24:34,656 INFO  [MediaServer] Temp dir: /tmp
2017-01-27 14:24:34,656 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-27 14:24:34,721 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2017-01-27 14:24:34,786 INFO  [DatabaseManager] Using DERBY database language
2017-01-27 14:24:40,083 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2017-01-27 14:24:44,721 INFO  [DBSchemaUpdateExecutor] Dropping search index
2017-01-27 14:24:44,733 INFO  [SearchManager] Starting up search engine
2017-01-27 14:24:45,559 INFO  [DBSchemaUpdateExecutor] Cleaning temporary cache
2017-01-27 14:24:45,658 INFO  [WebServer] Socket buffer set to 65535 bytes
2017-01-27 14:24:45,660 INFO  [Device] Created UPnP Device with UUID: 06ad804e-6285-371f-8f66-eef7f1ef4b64, bound address: 192.168.0.160
2017-01-27 14:24:46,004 INFO  [DBSchemaUpdateExecutor] Cleaning persistent cache
2017-01-27 14:24:46,060 WARN  [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2017-01-27 14:24:46,484 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/console) exposed on port 23423
2017-01-27 14:24:46,495 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/rest) exposed on port 23423
2017-01-27 14:24:46,497 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/console) exposed on port 23523
2017-01-27 14:24:46,498 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/rest) exposed on port 23523
2017-01-27 14:24:46,850 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: Can not initialize cryptographic mechanism
java.lang.ExceptionInInitializerError
   at javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:65)
   at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2587)
   at javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2611)
   at sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(CipherSuite.java:535)
   at sun.security.ssl.CipherSuite$BulkCipher.<init>(CipherSuite.java:507)
   at sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:614)
   at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:293)
   at sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:41)
   at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:424)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at java.security.Provider$Service.getImplClass(Provider.java:1634)
   at java.security.Provider$Service.newInstance(Provider.java:1592)
   at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
   at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
   at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
   at org.restlet.engine.ssl.DefaultSslContextFactory.createSslContext(DefaultSslContextFactory.java:369)
   at org.restlet.ext.simple.HttpsServerHelper.start(HttpsServerHelper.java:98)
   at org.restlet.Server.start(Server.java:588)
   at org.restlet.Component.startServers(Component.java:637)
   at org.restlet.Component.start(Component.java:562)
   at org.serviio.restlet.RestletServer.startComponent(RestletServer.java:172)
   at org.serviio.restlet.RestletServer.runServer(RestletServer.java:80)
   at org.serviio.MediaServer.main(MediaServer.java:128)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
   at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:88)
   ... 24 more
Caused by: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
   at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:314)
   at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:268)
   at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)
   at java.util.jar.JarVerifier.update(JarVerifier.java:228)
   at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
   at java.util.jar.JarFile.getInputStream(JarFile.java:450)
   at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:300)
   at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:262)
   at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
   at javax.crypto.JceSecurity$1.run(JceSecurity.java:80)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:77)
   ... 24 more
2017-01-27 14:24:46,860 WARN  [IndexedDiskCache] Region [subtitles] Disk cache not shutdown properly, shutting down now.
2017-01-27 14:24:46,864 WARN  [IndexedDiskCache] Region [tokens] Disk cache not shutdown properly, shutting down now.
2017-01-27 14:24:46,862 WARN  [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.
2017-01-27 14:24:46,869 WARN  [IndexedDiskCache] Region [subtitles_metadata] Disk cache not shutdown properly, shutting down now.
2017-01-27 14:24:46,872 WARN  [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sun Jan 29, 2017 1:42 pm
by patters
Can you try to use the Java 8 Embedded package from my repo instead of the Synology package?

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sun Jan 29, 2017 7:23 pm
by darthnic
patters wrote:Can you try to use the Java 8 Embedded package from my repo instead of the Synology package?


I went back to embedded java 8 immediatly when the synology one didn't work, I only tried it because it worked for me previously when I had problems.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Mon Jan 30, 2017 10:16 am
by patters
Since the error mentions cipher mechanisms being the problem, can you confirm whether you installed Java 8 Embedded with our without the unlimited strength cryptography option. AFAIK it isn't normally necessary, but perhaps it may fix the issue you're seeing.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Mon Jan 30, 2017 10:23 am
by darthnic
patters wrote:Since the error mentions cipher mechanisms being the problem, can you confirm whether you installed Java 8 Embedded with our without the unlimited strength cryptography option. AFAIK it isn't normally necessary, but perhaps it may fix the issue you're seeing.


Without :)

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Mon Jan 30, 2017 11:49 am
by darthnic
darthnic wrote:
patters wrote:Since the error mentions cipher mechanisms being the problem, can you confirm whether you installed Java 8 Embedded with our without the unlimited strength cryptography option. AFAIK it isn't normally necessary, but perhaps it may fix the issue you're seeing.


Without :)


Just for the hell of it I tried installing your java 8 package with unlimited strength and then try to run Serviio again.

The log now reports this

  Code:
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
2017-01-30 12:43:01,283 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-30 12:43:01,287 INFO  [MediaServer] Serviio DLNA media streaming server v 1.8 (rev. cc55b64588cc)
2017-01-30 12:43:01,287 INFO  [MediaServer] Petr Nejedly 2009-2015
2017-01-30 12:43:01,287 INFO  [MediaServer] http://www.serviio.org
2017-01-30 12:43:01,287 INFO  [MediaServer]
2017-01-30 12:43:01,288 INFO  [MediaServer] Java 1.8.0_121-Oracle Corporation arm
2017-01-30 12:43:01,288 INFO  [MediaServer] OS Linux 3.2.40
2017-01-30 12:43:01,288 INFO  [MediaServer] File encoding: UTF-8
2017-01-30 12:43:01,756 INFO  [MediaServer] Headless mode enabled: true
2017-01-30 12:43:01,757 INFO  [MediaServer] User: root
2017-01-30 12:43:01,757 INFO  [MediaServer] User home dir: /root
2017-01-30 12:43:01,757 INFO  [MediaServer] Temp dir: /tmp
2017-01-30 12:43:01,757 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-30 12:43:01,902 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2017-01-30 12:43:02,033 INFO  [DatabaseManager] Using DERBY database language
2017-01-30 12:43:04,472 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@1f96302, 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.bootDatabase(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 XJ040: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@1f96302, 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: 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.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.RAFContainer4.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.FileContainer.setIdent(Unknown Source)
   at org.apache.derby.impl.store.raw.data.FileContainer.setIdentity(Unknown Source)
   at org.apache.derby.impl.services.cache.ConcurrentCache.find(Unknown Source)
   at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openDroppedContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.xact.Xact.openDroppedContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.findContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.needsRedo(Unknown Source)
   at org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source)
   at org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source)
   at org.apache.derby.impl.store.raw.RawStore.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.store.access.RAMAccessManager$5.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.store.access.RAMAccessManager.bootServiceModule(Unknown Source)
   at org.apache.derby.impl.store.access.RAMAccessManager.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.bootStore(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)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection$4.run(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.jdbc.EmbedConnection.startPersistentService(Unknown Source)
   ... 19 more
2017-01-30 12:43:06,495 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)

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Tue Jan 31, 2017 7:30 pm
by darthnic
darthnic wrote:
darthnic wrote:
patters wrote:Since the error mentions cipher mechanisms being the problem, can you confirm whether you installed Java 8 Embedded with our without the unlimited strength cryptography option. AFAIK it isn't normally necessary, but perhaps it may fix the issue you're seeing.


Without :)


Just for the hell of it I tried installing your java 8 package with unlimited strength and then try to run Serviio again.

The log now reports this

  Code:
Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
2017-01-30 12:43:01,283 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-30 12:43:01,287 INFO  [MediaServer] Serviio DLNA media streaming server v 1.8 (rev. cc55b64588cc)
2017-01-30 12:43:01,287 INFO  [MediaServer] Petr Nejedly 2009-2015
2017-01-30 12:43:01,287 INFO  [MediaServer] http://www.serviio.org
2017-01-30 12:43:01,287 INFO  [MediaServer]
2017-01-30 12:43:01,288 INFO  [MediaServer] Java 1.8.0_121-Oracle Corporation arm
2017-01-30 12:43:01,288 INFO  [MediaServer] OS Linux 3.2.40
2017-01-30 12:43:01,288 INFO  [MediaServer] File encoding: UTF-8
2017-01-30 12:43:01,756 INFO  [MediaServer] Headless mode enabled: true
2017-01-30 12:43:01,757 INFO  [MediaServer] User: root
2017-01-30 12:43:01,757 INFO  [MediaServer] User home dir: /root
2017-01-30 12:43:01,757 INFO  [MediaServer] Temp dir: /tmp
2017-01-30 12:43:01,757 INFO  [MediaServer] ------------------------------------------------------------------------
2017-01-30 12:43:01,902 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2017-01-30 12:43:02,033 INFO  [DatabaseManager] Using DERBY database language
2017-01-30 12:43:04,472 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@1f96302, 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.bootDatabase(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 XJ040: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@1f96302, 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: 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.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.RAFContainer4.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.FileContainer.setIdent(Unknown Source)
   at org.apache.derby.impl.store.raw.data.FileContainer.setIdentity(Unknown Source)
   at org.apache.derby.impl.services.cache.ConcurrentCache.find(Unknown Source)
   at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openDroppedContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.xact.Xact.openDroppedContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.findContainer(Unknown Source)
   at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.needsRedo(Unknown Source)
   at org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source)
   at org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source)
   at org.apache.derby.impl.store.raw.RawStore.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.store.access.RAMAccessManager$5.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.store.access.RAMAccessManager.bootServiceModule(Unknown Source)
   at org.apache.derby.impl.store.access.RAMAccessManager.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.bootStore(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)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection$4.run(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.jdbc.EmbedConnection.startPersistentService(Unknown Source)
   ... 19 more
2017-01-30 12:43:06,495 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)



And so just for the hell of it I downgraded to 1.6.0 and used the Syno java package and then it works. I'm baffled and annoyed :/

EDIT: and I then upgraded to serviio 1.8 and it works, kinda. Strange java stuff in the console and it can't play half of the videos.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Wed Mar 01, 2017 8:05 pm
by Biker
Hello,
has anyone tried Serviio with Synology DSM 6.1? Does it work?

Thanks,
Biker

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Mar 04, 2017 4:15 am
by ctrippel
Just upgraded to Serviio 1.8, on Synology DS412+, DSM 6.1-15047-Update 1, Synology Java package 8.0.101-0011.
Serviio is still running updates on metadata, but videos appear to function correctly (almost exclusively m4v files).

Serviio web management interface, Status page is non-functional:
<IP>:23423/console/#/app/status

Looks like it's not rendering correctly. ALL device 'grid' element, input labels, and button text are showing as 'code':
{{'tab_status_connected_devices' | translate}}
{{'tab_status_connected_devices_overview' | translate}}
{{'tab_status_status_running' | translate}}
etc.

Transcoding page, looks like a checkbox label is wrong:
<IP>:23423/console/#/app/delivery/transcoding
Video settings 2nd checkbox label = 'tab_transcoding_include_all_audio_streams

Subtitles page, also looks like labels are wrong:
<IP>:23423/console/#/app/delivery/subtitles
All checkbox / textbox labels look like variable names: e.g. tab_subtitles_guess_character_encoding

Presentation page, one label looks wrong, all others Ok:
<IP>:23423/console/#/app/presentation
tab_presentation_include_rating_in_video_titles

Going to wait until after metadata rebuild before experimenting with Java packages to see if that resolves the web interface issue.

Re: PACKAGE: Serviio 1.8 - Synology NAS, with HW transcoding

PostPosted: Sat Mar 04, 2017 9:32 am
by Biker
Thank you for your reply, I'll be waiting for another update!