FAQ  •  Register  •  Login

Problem with Catalina

<<

vilo1968

Serviio newbie

Posts: 5

Joined: Fri Feb 07, 2020 2:45 pm

Post Fri Feb 07, 2020 3:03 pm

Problem with Catalina

Hi.

I recently installed Serviio on Catalina OS and I can't start the console. I get the following error: Cannot connect to the server, it doesn't seem to be running ... "

I have read in this forum for similar problems and I have implemented what was said there but I have not had a result.

I have cleanly uninstalled Serviio as indicated on the web and reinstalled and I still have the same problem.

I have checked whether the xerces.jar and fmjdbc.jar files exist and they do not exist so I deduce that this is not the problem.

Corrupt database I deduce that it is not since I have reinstalled cleanly and the problem continues.

I have cleanly deleted version 2.0 and installed 1.10.1 to see if this version worked, and the result has been the same.

I transcribe below the file serviio.log

Thank you in advance.


2020-02-07 11:09:33,087 INFO [MediaServer] ------------------------------------------------------------------------
2020-02-07 11:09:33,088 INFO [MediaServer] Serviio DLNA media streaming server v 1.10.1 (rev. 3e5b0ba57122)
2020-02-07 11:09:33,088 INFO [MediaServer] Petr Nejedly 2009-2018
2020-02-07 11:09:33,088 INFO [MediaServer] http://www.serviio.org
2020-02-07 11:09:33,088 INFO [MediaServer]
2020-02-07 11:09:33,088 INFO [MediaServer] Java 1.8.0_191-Oracle Corporation x86_64
2020-02-07 11:09:33,088 INFO [MediaServer] OS Mac OS X 10.15.3
2020-02-07 11:09:33,088 INFO [MediaServer] File encoding: UTF-8
2020-02-07 11:09:33,127 INFO [MediaServer] Headless mode enabled: true
2020-02-07 11:09:33,127 INFO [MediaServer] User: root
2020-02-07 11:09:33,127 INFO [MediaServer] User home dir: /var/root
2020-02-07 11:09:33,127 INFO [MediaServer] Temp dir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
2020-02-07 11:09:33,127 INFO [MediaServer] ------------------------------------------------------------------------
2020-02-07 11:09:33,137 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2020-02-07 11:09:33,154 INFO [DatabaseManager] Using DERBY database language
2020-02-07 11:09:33,398 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:82)
at org.serviio.MediaServer.main(MediaServer.java:127)
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 XBM0X: Supplied locale description 'es_419' is invalid, expecting ln[_CO[_variant]]
ln=lower-case two-letter ISO-639 language code, CO=upper-case two-letter ISO-3166 country codes, see java.util.Locale.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.staticGetLocaleFromString(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.setLocale(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.setLocale(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.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
2020-02-07 11:09:35,464 ERROR [MediaServer] An unexpected error occurred. 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:82)
at org.serviio.MediaServer.main(MediaServer.java:127)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Feb 08, 2020 12:16 pm

Re: Problem with Catalina

Looks like a known bug in the DB.

Try to add these 2 lines https://www.serviio.org/forum/viewtopic ... 083#p96980 to serviio.sh as described here: https://serviio.org/index.php?option=co ... e&id=21#q3
<<

vilo1968

Serviio newbie

Posts: 5

Joined: Fri Feb 07, 2020 2:45 pm

Post Mon Feb 10, 2020 1:41 pm

Re: Problem with Catalina

Thank you very much for your reply.

I have added the 2 lines to the seviio.sh file and the error continues.

I will appreciate your help.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Feb 13, 2020 11:26 am

Re: Problem with Catalina

can you post your serviio.sh file? also, did you restart the Mac?
<<

vilo1968

Serviio newbie

Posts: 5

Joined: Fri Feb 07, 2020 2:45 pm

Post Thu Feb 13, 2020 12:18 pm

Re: Problem with Catalina

Hi.

I attach my file.

Yes, I restarted the computer (many times).

Thank you


  Code:
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Serviio start Script                                                    ##
##                                                                          ##
### ====================================================================== ###

DIRNAME=`dirname "$0"`
PROGNAME=`basename "$0"`

# Setup SERVIIO_HOME
if [ "x$SERVIIO_HOME" = "x" ]; then
    # get the full path (without any relative bits)
    SERVIIO_HOME=`cd "$DIRNAME/.."; pwd`
fi
export SERVIIO_HOME

JAVA="$SERVIIO_HOME/jre/Contents/Home/bin/java"

# Setup the classpath
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config"

# Execute the JVM in the foreground
"$JAVA" -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="$SERVIIO_HOME/library" -Dserviio.home="$SERVIIO_HOME" -Dffmpeg.location="$SERVIIO_HOME/lib/ffmpeg" -Ddcraw.location="$SERVIIO_HOME/lib/dcraw" -Dserviio.libraryPollerFrequency=5 -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"

-Duser.language=es
-Duser.country=ES
<<

vilo1968

Serviio newbie

Posts: 5

Joined: Fri Feb 07, 2020 2:45 pm

Post Thu Feb 20, 2020 8:31 pm

Re: Problem with Catalina

I have a Serviio installation in Mojave and it works perfect. I have compared the files and they are the same ...

I don't understand why Catalina doesn't work ...

Thank you in advance
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 24, 2020 11:38 pm

Re: Problem with Catalina

you added then in the wrong place.

try

  Code:
"$JAVA" -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="$SERVIIO_HOME/library" -Dserviio.home="$SERVIIO_HOME" -Dffmpeg.location="$SERVIIO_HOME/lib/ffmpeg" -Ddcraw.location="$SERVIIO_HOME/lib/dcraw" -Dserviio.libraryPollerFrequency=5 -Duser.language=es -Duser.country=ES -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"
<<

vilo1968

Serviio newbie

Posts: 5

Joined: Fri Feb 07, 2020 2:45 pm

Post Sun Mar 01, 2020 3:25 pm

Re: Problem with Catalina

Thank you! Now it works perfectly!
<<

VooDooVox

Serviio newbie

Posts: 12

Joined: Sat Jan 23, 2016 5:03 pm

Location: Istanbul/TURKEY

Post Thu Feb 23, 2023 2:02 pm

Re: Problem with Catalina

I have the same problem.
it just started after recent security update of Catalina.
I applied this solution but didnt work for me. Do you have any other advice for me too?
<<

TGrosser

Serviio newbie

Posts: 1

Joined: Thu Mar 28, 2024 9:52 am

Post Thu Mar 28, 2024 10:40 am

Re: Problem with Catalina

For Catalina with installed JDK 11 the SERVIO local JRE does not seem to resolve the SLF4J dependency correctly.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 76 guests

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