FAQ  •  Register  •  Login

[SOLVED] JRE killed by exception, Serviio dies

<<

Blixx

Serviio newbie

Posts: 12

Joined: Fri Jul 15, 2011 4:28 pm

Post Tue Aug 19, 2014 1:19 pm

[SOLVED] JRE killed by exception, Serviio dies

Hi community,

I'm currently investigating a situation where serviio throws an unhandeled exception which in the process kills JRE. A NAS reboot or
  Code:
./serviio.sh stop
./serviio.sh start

is required to get it running again.

Trying to
  Code:
 ./serviio.sh start
without a previous -stop leads to this:
  Code:
"Serviio is running or hasn't been shutdown properly. Please stop it before attempting to start a new instance."

I managed to gather relevant logfiles. DEBUG loglevel was not set but I changed it and the next crash will be caught with DEBUG loglevel. At least you see the exception:
https://dl.dropboxusercontent.com/u/7772206/serviio.log
https://dl.dropboxusercontent.com/u/7772206/derby.log

Some facts:
  Code:
[/] # java -showversion
java version "1.7.0_02"
Java(TM) SE Runtime Environment for Embedded (build 1.7.0_02-b13, headless)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode)


Serviio 1.4.1.2 installed from QPKG "Serviio 1.4.1.2 Revision 1" here:
viewtopic.php?f=14&t=5324

I got it running for several hours:
  Code:
Mon Aug 18 22:08:21 CEST 2014: Booting Derby version The Apache Software Foundation

but still at some point it just crashes with the given exception:
  Code:
Tue Aug 19 11:13:47 CEST 2014 Thread[LibraryUpdatesCheckerThread,1,ServioThreads] (XID = 296840), (SESSIONID = 5), (DATABASE = db), (DRDAID = null), Failed Statement is: SELECT DISTINCT(person.id) as id, name, sort_name, initial FROM person, person_role WHERE person_role.person_id = person.id AND person_role.id IN (?)
java.lang.ClassCastException: <unknown> cannot be cast to org.apache.derby.iapi.sql.depend.Dependency


And I have no idea what I'm doing.


PS:
Oh and some more facts:
  Code:
2014-08-19 15:14:51,459 INFO  [MediaServer] ------------------------------------------------------------------------
2014-08-19 15:14:51,460 INFO  [MediaServer] Serviio DLNA media streaming server v 1.4.1.2 (rev. 3753eff81a2f+)
2014-08-19 15:14:51,461 INFO  [MediaServer] Petr Nejedly 2009-2014
2014-08-19 15:14:51,461 INFO  [MediaServer] http://www.serviio.org
2014-08-19 15:14:51,461 INFO  [MediaServer]
2014-08-19 15:14:51,461 INFO  [MediaServer] Java 1.7.0_02-Oracle Corporation
2014-08-19 15:14:51,462 INFO  [MediaServer] OS Linux arm 3.4.6
2014-08-19 15:14:51,462 INFO  [MediaServer] File encoding: UTF-8
2014-08-19 15:14:51,465 INFO  [MediaServer] Headless mode enabled: true
2014-08-19 15:14:51,465 INFO  [MediaServer] User: admin
2014-08-19 15:14:51,465 INFO  [MediaServer] User home dir: /share/homes/admin
2014-08-19 15:14:51,465 INFO  [MediaServer] Temp dir: /root/.serviio/tmp
2014-08-19 15:14:51,466 INFO  [MediaServer] ------------------------------------------------------------------------



Please let me know if there is anything more I can do to clarify this situation. Serviio has become the hub of my home-entertainment network and SAT TV is currently broken :-)

Thanks
Last edited by Blixx on Thu Aug 21, 2014 8:41 am, edited 1 time in total.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Aug 19, 2014 4:15 pm

Re: JRE killed by exception, Serviio dies

That's a very old version of Java 7 - update 02. The current version is update 60.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

Blixx

Serviio newbie

Posts: 12

Joined: Fri Jul 15, 2011 4:28 pm

Post Wed Aug 20, 2014 7:02 am

Re: JRE killed by exception, Serviio dies

Hey.

Thanks, you're right. I just updated to the latest release:
  Code:
2014-08-20 08:59:45,469 INFO  [MediaServer] ------------------------------------------------------------------------
2014-08-20 08:59:45,470 INFO  [MediaServer] Serviio DLNA media streaming server v 1.4.1.2 (rev. 3753eff81a2f+)
2014-08-20 08:59:45,470 INFO  [MediaServer] Petr Nejedly 2009-2014
2014-08-20 08:59:45,471 INFO  [MediaServer] http://www.serviio.org
2014-08-20 08:59:45,471 INFO  [MediaServer]
2014-08-20 08:59:45,471 INFO  [MediaServer] Java 1.7.0_60-Oracle Corporation
2014-08-20 08:59:45,471 INFO  [MediaServer] OS Linux arm 3.4.6
2014-08-20 08:59:45,472 INFO  [MediaServer] File encoding: UTF-8
2014-08-20 08:59:45,474 INFO  [MediaServer] Headless mode enabled: true
2014-08-20 08:59:45,474 INFO  [MediaServer] User: admin
2014-08-20 08:59:45,475 INFO  [MediaServer] User home dir: /share/homes/admin
2014-08-20 08:59:45,475 INFO  [MediaServer] Temp dir: /root/.serviio/tmp
2014-08-20 08:59:45,475 INFO  [MediaServer] ------------------------------------------------------------------------


I'll keep an eye on it. Logs are still on DEBUG.

Regards
<<

Blixx

Serviio newbie

Posts: 12

Joined: Fri Jul 15, 2011 4:28 pm

Post Wed Aug 20, 2014 9:51 am

Re: JRE killed by exception, Serviio dies

Good, java mem usage reduced by 30%. No crash yet.
<<

Blixx

Serviio newbie

Posts: 12

Joined: Fri Jul 15, 2011 4:28 pm

Post Thu Aug 21, 2014 8:39 am

Re: JRE killed by exception, Serviio dies

Alright, still running.

-> Updating JRE from 1.7.0_02 to 1.7.0_60 fixed it.

Thanks.

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 12 guests

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