Page 1 of 1

upgrade to 1.9.2 on debian does not work

PostPosted: Wed Oct 17, 2018 1:50 pm
by enzephalon
Hello
I've a running serviio server 1.8 on Debian linux. Running fine and stable.
Tried today to upgrade to 1.9.2.
Stopped service. Changed the symlink to new serviio-1.9.2/ path, copied "library" from old to new path and started service.
Service shortly stops, here the part from log-file:

serviiio.log
  Code:
2018-10-17 15:26:22,976 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: No suitable driver found for jdbc:derby:db;create=true


derby.log
  Code:
Wed Oct 17 15:22:23 CEST 2018 Thread[PlaylistMaintainerThread,2,main] Shutting down due to severe error.Cannot log transaction changes, maybe trying to write to a read only database.
----------------------------------------------------------------
Wed Oct 17 15:22:23 CEST 2018: Shutting down Derby engine
----------------------------------------------------------------
Wed Oct 17 15:22:23 CEST 2018:
Shutting down instance a816c00e-0166-8230-62f5-ffffcdc429f7 on database directory /usr/local/serviio-1.9.2/library/db with class loader sun.misc.Launcher$AppClassLoader@2ff4acd0
Wed Oct 17 15:22:23 CEST 2018 Thread[Thread-91,5,main] Cleanup action starting
java.sql.SQLException: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@2ff4acd0, see the next exception for details.


All file-attributes are ok - same as for 1.8-installation!

Switched back to 1.8 -> runs stable.
switched another time to 1.9.2 -> crashes.

JAVA:
  Code:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)


Can you help?

Best regards
Johannes

Re: upgrade to 1.9.2 on debian does not work

PostPosted: Wed Oct 17, 2018 8:04 pm
by zip
a full serviio.log pls

Re: upgrade to 1.9.2 on debian does not work

PostPosted: Thu Oct 18, 2018 7:12 am
by enzephalon
Hello

I will try...

Must attach file...

Best regards
Johannes

Re: upgrade to 1.9.2 on debian does not work

PostPosted: Thu Oct 18, 2018 9:47 am
by enzephalon
Found the fail!

The directory I copied to /usr/local/ had a sticky bit, permissions are drwx r-s r-x . So all directories in this directory had this permission. And this was the fault!
After doing a bunch of tries to remove this bit I ended up with:

  Code:
chmod 0700 serviio-1.9.2/
chmod -s serviio-1.9.2/
chmod 0755 serviio-1.9.2/


After this the server started correctly and did his job well.

Thankx
Johannes