Page 1 of 1

[Solved] Serviio 1.5 does not start (on Linux after upgrade)

PostPosted: Wed Jan 14, 2015 11:22 pm
by rcmc_ronny
Hi,

upgraded to serviio 1.5 (and switched to oracle jre 8 as needed from my icedtea6-bin before).

Serviio does start as always but seems to hang, i started my backup and this works with the java 8 version as it should.

Perhaps, someone could point me to track this further down,

Ronny

  Code:
2015-01-15 00:16:07,007 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 00:16:07,008 INFO  [MediaServer] Serviio DLNA media streaming server v 1.5 (rev. 19ceb8acec8c)
2015-01-15 00:16:07,009 INFO  [MediaServer] Petr Nejedly 2009-2015
2015-01-15 00:16:07,009 INFO  [MediaServer] http://www.serviio.org
2015-01-15 00:16:07,009 INFO  [MediaServer]
2015-01-15 00:16:07,009 INFO  [MediaServer] Java 1.8.0_25-Oracle Corporation i386
2015-01-15 00:16:07,009 INFO  [MediaServer] OS Linux 3.16.7-hybrid
2015-01-15 00:16:07,009 INFO  [MediaServer] File encoding: UTF-8
2015-01-15 00:16:07,010 INFO  [MediaServer] Headless mode enabled: true
2015-01-15 00:16:07,010 INFO  [MediaServer] User: minidlna
2015-01-15 00:16:07,010 INFO  [MediaServer] User home dir: /var/lib/minidlna
2015-01-15 00:16:07,010 INFO  [MediaServer] Temp dir: /tmp
2015-01-15 00:16:07,010 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 00:16:07,384 INFO  [WebServer] Socket buffer set to 65535 bytes
2015-01-15 00:16:07,386 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-01-15 00:16:07,586 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-01-15 00:16:07,586 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 12:28 am
by zip
can you post detailed log?

btw, you don't need any external java for Serviio anymore, it comes with a bundled JRE now

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 5:26 am
by Iveky
same error, here is my log, i am on fedora 21-64bit with java:
[root@serviio log]# java -version
openjdk version "1.8.0_25"
OpenJDK Runtime Environment (build 1.8.0_25-b18)
OpenJDK 64-Bit Server VM (build 25.25-b02, mixed mode)

here is log with info and with debug option:
  Code:
2015-01-12 23:13:01,656 ERROR [XBMCExtractor] File '/disk.2TB/Crtani/Frozen.nfo' couldn't be parsed:org.xml.sax.SAXParseException; systemId: file:///5c474ba4-88
07-42d5-ae7f-b6566f9936b7; lineNumber: 91; columnNumber: 3; The element type "title" must be terminated by the matching end-tag "</title>".
2015-01-13 00:16:29,736 WARN  [JdbcUtils] Cannot close DB Statement
2015-01-13 19:05:15,625 INFO  [UpdateChecker] Checking if a new version is available
2015-01-15 05:35:10,985 WARN  [IndexedDiskCache] Region [tokens] Disk cache not shutdown properly, shutting down now.
2015-01-15 06:07:37,733 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 06:07:37,734 INFO  [MediaServer] Serviio DLNA media streaming server v 1.5 (rev. 19ceb8acec8c)
2015-01-15 06:07:37,734 INFO  [MediaServer] Petr Nejedly 2009-2015
2015-01-15 06:07:37,734 INFO  [MediaServer] http://www.serviio.org
2015-01-15 06:07:37,734 INFO  [MediaServer]
2015-01-15 06:07:37,734 INFO  [MediaServer] Java 1.8.0_25-Oracle Corporation amd64
2015-01-15 06:07:37,734 INFO  [MediaServer] OS Linux 3.17.7-300.fc21.x86_64
2015-01-15 06:07:37,734 INFO  [MediaServer] File encoding: UTF-8
2015-01-15 06:07:37,746 INFO  [MediaServer] Headless mode enabled: true
2015-01-15 06:07:37,746 INFO  [MediaServer] User: root
2015-01-15 06:07:37,746 INFO  [MediaServer] User home dir: /root
2015-01-15 06:07:37,746 INFO  [MediaServer] Temp dir: /tmp
2015-01-15 06:07:37,746 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 06:07:37,940 INFO  [WebServer] Socket buffer set to 65535 bytes
2015-01-15 06:07:37,947 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-01-15 06:07:38,059 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-01-15 06:07:38,060 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2015-01-15 06:22:08,199 DEBUG [ApplicationInstanceManager] Notifying first instance to stop.
2015-01-15 06:22:08,200 DEBUG [ApplicationInstanceManager] Successfully notified first instance.
2015-01-15 06:22:21,795 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44331
2015-01-15 06:22:21,796 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 06:22:21,796 INFO  [MediaServer] Serviio DLNA media streaming server v 1.5 (rev. 19ceb8acec8c)
2015-01-15 06:22:21,796 INFO  [MediaServer] Petr Nejedly 2009-2015
2015-01-15 06:22:21,796 INFO  [MediaServer] http://www.serviio.org
2015-01-15 06:22:21,796 INFO  [MediaServer]
2015-01-15 06:22:21,797 INFO  [MediaServer] Java 1.8.0_25-Oracle Corporation amd64
2015-01-15 06:22:21,797 INFO  [MediaServer] OS Linux 3.17.7-300.fc21.x86_64
2015-01-15 06:22:21,797 INFO  [MediaServer] File encoding: UTF-8
2015-01-15 06:22:21,797 INFO  [MediaServer] Headless mode enabled: true
2015-01-15 06:22:21,797 INFO  [MediaServer] User: root
2015-01-15 06:22:21,797 INFO  [MediaServer] User home dir: /root
2015-01-15 06:22:21,797 INFO  [MediaServer] Temp dir: /tmp
2015-01-15 06:22:21,797 INFO  [MediaServer] ------------------------------------------------------------------------
2015-01-15 06:22:21,800 DEBUG [MediaServer] Runtime params: -Xmx512M, -Xms20M, -XX:+UseG1GC, -XX:GCTimeRatio=1, -XX:MinHeapFreeRatio=10, -XX:MaxHeapFreeRatio=20
, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade, -Dderby.system.home
=/opt/serviio/library, -Dserviio.home=/opt/serviio, -Dffmpeg.location=ffmpeg, -Ddcraw.location=dcraw
2015-01-15 06:22:21,897 INFO  [WebServer] Socket buffer set to 65535 bytes
2015-01-15 06:22:21,898 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-01-15 06:22:21,964 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-01-15 06:22:21,965 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 5:28 am
by Iveky
do I need install jre 1.8 instead this one (bundled with fedora 21)?

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 7:48 am
by rcmc_ronny
Hi Zip,

i though regarding the docs, that the java is only included for mac and windows, i am running linux (gentoo 32bit) so as mentioned i installed java 8 JRE

Thanks,
Ronny

my detailed log:
2015-01-15 08:45:23,978 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44331
2015-01-15 08:45:23,990 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 08:45:23,990 INFO [MediaServer] Serviio DLNA media streaming server v 1.5 (rev. 19ceb8acec8c)
2015-01-15 08:45:23,990 INFO [MediaServer] Petr Nejedly 2009-2015
2015-01-15 08:45:23,990 INFO [MediaServer] http://www.serviio.org
2015-01-15 08:45:23,990 INFO [MediaServer]
2015-01-15 08:45:23,990 INFO [MediaServer] Java 1.8.0_25-Oracle Corporation i386
2015-01-15 08:45:23,995 INFO [MediaServer] OS Linux 3.16.7-hybrid
2015-01-15 08:45:23,995 INFO [MediaServer] File encoding: UTF-8
2015-01-15 08:45:24,019 INFO [MediaServer] Headless mode enabled: true
2015-01-15 08:45:24,019 INFO [MediaServer] User: minidlna
2015-01-15 08:45:24,019 INFO [MediaServer] User home dir: /var/lib/minidlna
2015-01-15 08:45:24,019 INFO [MediaServer] Temp dir: /tmp
2015-01-15 08:45:24,019 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 08:45:24,107 DEBUG [MediaServer] Runtime params: -Xmx512M, -Xms20M, -XX:+UseG1GC, -XX:GCTimeRatio=1, -XX:MinHeapFreeRatio=10, -XX:MaxHeapFreeRatio=20, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade, -Dderby.system.home=/opt/serviio/library, -Dserviio.home=/opt/serviio, -Dffmpeg.location=ffmpeg, -Ddcraw.location=dcraw
2015-01-15 08:45:24,980 INFO [WebServer] Socket buffer set to 65535 bytes
2015-01-15 08:45:24,995 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-01-15 08:45:25,483 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-01-15 08:45:25,488 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 9:39 am
by zip
Can you try java 1.8.0_20 ? (that's the version that is bundled with the Windows edition)

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 12:54 pm
by rcmc_ronny
Hi Zip,

hmmm, seems the same:

2015-01-15 13:52:39,061 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44331
2015-01-15 13:52:39,072 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 13:52:39,073 INFO [MediaServer] Serviio DLNA media streaming server v 1.5 (rev. 19ceb8acec8c)
2015-01-15 13:52:39,073 INFO [MediaServer] Petr Nejedly 2009-2015
2015-01-15 13:52:39,073 INFO [MediaServer] http://www.serviio.org
2015-01-15 13:52:39,073 INFO [MediaServer]
2015-01-15 13:52:39,073 INFO [MediaServer] Java 1.8.0_20-Oracle Corporation i386
2015-01-15 13:52:39,074 INFO [MediaServer] OS Linux 3.16.7-hybrid
2015-01-15 13:52:39,074 INFO [MediaServer] File encoding: UTF-8
2015-01-15 13:52:39,075 INFO [MediaServer] Headless mode enabled: true
2015-01-15 13:52:39,075 INFO [MediaServer] User: minidlna
2015-01-15 13:52:39,075 INFO [MediaServer] User home dir: /var/lib/minidlna
2015-01-15 13:52:39,075 INFO [MediaServer] Temp dir: /tmp
2015-01-15 13:52:39,075 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 13:52:39,087 DEBUG [MediaServer] Runtime params: -Xmx512M, -Xms20M, -XX:+UseG1GC, -XX:GCTimeRatio=1, -XX:MinHeapFreeRatio=10, -XX:MaxHeapFreeRatio=20, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade, -Dderby.system.home=/opt/serviio/library, -Dserviio.home=/opt/serviio, -Dffmpeg.location=ffmpeg, -Ddcraw.location=dcraw
2015-01-15 13:52:39,414 INFO [WebServer] Socket buffer set to 65535 bytes
2015-01-15 13:52:39,416 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-01-15 13:52:39,568 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-01-15 13:52:39,568 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424


May it caused by the old libary or plugins or such things ?

Ronny

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 4:04 pm
by zip
Weird. I just installed Fedora 21 Desktop to VirtualBox. It comes with Java 1.8.0_25 and Serviio runs as expected.

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 6:16 pm
by Iveky
will check it later. thanks for info that it works.... is it same java version, like my server reported?
i just noticed (in logs posted yesterday, that my java is 'amd'!?) i am sure my processor is intel :)

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 6:47 pm
by rcmc_ronny
Hmmm,

i tried with removed plugins, no success, then i cleared (removed) all libary files, no success either.

I downloaded the package again and did a clean install, serviio starts ... ok copied the plugins in places, starts also.
No put the libary back and works also ... weired.

Now I am back @oracle jre 1.8.0_25 and works also as it should ..hmmm

I tried the upgrade again with my backup of serviio 1.4 and the same thing happens .. hmm somewhere the must be an issue.

Ronny

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 6:58 pm
by will
rcmc_ronny wrote:Hmmm,

i tried with removed plugins, no success, then i cleared (removed) all libary files, no success either.

I downloaded the package again and did a clean install, serviio starts ... ok copied the plugins in places, starts also.
No put the libary back and works also ... weired.

Now I am back @oracle jre 1.8.0_25 and works also as it should ..hmmm

I tried the upgrade again with my backup of serviio 1.4 and the same thing happens .. hmm somewhere the must be an issue.

Ronny


This could be a problem with old (and conflicting) jar files in the lib dir.

Either take a copy of your 1.4 install and then delete everything in lib/, then copy 1.5 install over the top and try to start.
or
Unpack 1.5, and copy your 1.4 library folder over the top and try to start.

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 7:07 pm
by rcmc_ronny
Will,

you are the man, thats the reason. THANKS !

I removed all files in lib, then copied the new files in the dir, changed owner/group and started serviio and voila

...
2015-01-15 19:59:48,683 INFO [DBSchemaUpdateExecutor] Checking if DB schema nee
ds to be updated
2015-01-15 19:59:48,702 INFO [DatabaseManager] Using DERBY database language
2015-01-15 19:59:50,943 INFO [DBSchemaUpdateExecutor] Updating DB schema
2015-01-15 19:59:52,291 INFO [DBSchemaUpdateExecutor] Dropping search index
2015-01-15 19:59:52,293 INFO [SearchManager] Starting up search engine
2015-01-15 19:59:52,883 INFO [DBSchemaUpdateExecutor] Cleaning temporary cache
2015-01-15 19:59:52,962 INFO [Device] Created UPnP Device with UUID: 6e6a612b-124a-3a07-9903-377efa08f093, bound address: 10.0.0.1
2015-01-15 19:59:54,443 INFO [DBSchemaUpdateExecutor] Cleaning persistent cache
2015-01-15 19:59:54,501 WARN [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2015-01-15 19:59:54,678 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 19:59:54,679 INFO [MediaServer] License: PRO (NORMAL, id: XXXXXXXXXXXXXXXXXXXXXXXx)
2015-01-15 19:59:54,679 INFO [MediaServer] ------------------------------------------------------------------------
2015-01-15 19:59:55,392 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2015-01-15 19:59:55,607 INFO [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
...


I think this should be mentioned in the faq (http://serviio.org/component/content/article?id=21#q8)

Better would be afaik, to write it like

Linux
* Stop Serviio server and console
* Take a backup to another location for the case something goes wrong and to be save
* Clear all files in lib/ directory
* Overwrite all files in the current Serviio location with the new ones but keep folder library intact (and perhaps the plugin dir, if you installed some)
* check/chaneg the owner/group to the right ones if needed


Ronny

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 7:31 pm
by Iveky
yes, needed to put same owner properties for /lib files like /bin files, then works everything. has nothing with java version
thanks boys :)

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 8:07 pm
by Iveky
now I discovered that few plugins need changes:

2015-01-15 21:03:33,725 WARN [PluginCompilerThread] Plugin UitzendingGemist.groovy failed to compile: startup failed:
/opt/serviio/plugins/UitzendingGemist.groovy: 20: unable to resolve class OmroepNL
@ line 20, column 1.
class UitzendingGemist extends OmroepNL {
^

1 error

2015-01-15 21:03:37,215 WARN [PluginCompilerThread] Plugin SeasonVar.groovy failed to compile: startup failed:
/opt/serviio/plugins/SeasonVar.groovy: 3: unable to resolve class org.restlet.engine.util.CookieSettingSeries
@ line 3, column 1.
import org.restlet.engine.util.CookieSettingSeries
^

1 error

Re: Serviio 1.5 does not fully start

PostPosted: Thu Jan 15, 2015 10:11 pm
by zip
Thanks guys, FAQ updated.

re Plugins - yes, it looks like the creators are using classses from a library that has now been updated in Serviio, so the plugins will have to be updated too.