Traccar does not start anymore with mysql on Debian 10 Buster after upgrading openjdk-11

Christoph Krey4 years ago

The upgrade causing the Problem

Upgrade: openjdk-11-jre-headless:amd64 (11.0.9.1+1-1~deb10u2, 11.0.11+9-1~deb10u1), openjdk-11-jre:amd64 (11.0.9.1+1-1~deb10u2, 11.0.11+9-1~deb10u1)

The traccar server log

2021-04-26 08:44:26  INFO: HikariPool-1 - Starting...
2021-04-26 08:44:27  WARN: Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2021-04-26 08:44:32 ERROR: HikariPool-1 - Exception during pool initialization. - No appropriate protocol (protocol is disabled or cipher suites are inappropriate) - SSLHandshakeException (... < DataManager:139 < *:89 < Context:292 < Main:110 < ...)

I could undo the openjdk upgrade, but have to find the cause of the problem for future upgrades

apt upgrade openjdk-11-jre-headless=11.0.9.1+1-1~deb10u2 openjdk-11-jre=11.0.9.1+1-1~deb10u2
Anton Tananaev4 years ago

Looks like the issue is with MySQL connection.

Anton Tananaev4 years ago

Why are you not using embedded Java?

Christoph Krey4 years ago

Yes, it is an issue with the SQL connection. Worked fine for the last years until I upgraded from openjdk 11.0.9 to 11.0.11

Christoph Krey4 years ago

We are not using embedded Java because we started with traccar 3.16 without embedded and do manual installations since then.

I see the embedded Java version 11.0.8:

/opt/traccar/jre/bin$ ./java --version
openjdk 11.0.8 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)