Traccar 4.8 not running under windows anymore

BerndFfma year ago

Hi !

After an windows update last week traccar is not running anymore.

Log :

2023-08-07 21:23:09  INFO: Waiting for changelog lock....
2023-08-07 21:23:19  INFO: Waiting for changelog lock....
2023-08-07 21:23:29 ERROR: Main method error - class java.time.LocalDateTime cannot be cast to class java.util.Date (java.time.LocalDateTime and java.util.Date are in module java.base of loader 'bootstrap') - ClassCastException (... < DataManager:291 < *:86 < Context:290 < Main:120 < ...)
2023-08-07 21:23:29  WARN: JNA: Callback org.traccar.WindowsService$ServiceMain@1e13529a threw the following exception - class java.time.LocalDateTime cannot be cast to class java.util.Date (java.time.LocalDateTime and java.util.Date are in module java.base of loader 'bootstrap') - ClassCastException (... < DataManager:291 < *:86 < Context:290 < Main:120 < ...)
2023-08-07 21:28:55  INFO: HikariPool-1 - Starting...
2023-08-07 21:28:57  INFO: HikariPool-1 - Start completed.
2023-08-07 21:28:57  INFO: Clearing database change log checksums
2023-08-07 21:28:58  INFO: Waiting for changelog lock....

Traccar : Version 4.8
Windows : Windows 10 Pro.

Greetings Bernd

BerndFfma year ago

Sorry, it is version 4.15

I tried :

Program Files\Traccar>taskkill /pid 4128
FEHLER: Der Prozess mit PID 4128 konnte nicht beendet werden.
Ursache: Die Beendigung dieses Prozesses muss erzwungen werden
(mit der Option /F).

c:\Program Files\Traccar>taskkill /pid 4128 /f
ERFOLGREICH: Der Prozess mit PID 4128 wurde beendet.

c:\Program Files\Traccar>net start traccar
traccar wird gestartet.
traccar wurde erfolgreich gestartet.

But no web interface, no api.
Database MariaDB is running.

Greetings Bernd

BerndFfma year ago

I found a workaround for MariaDB :

UPDATE databasechangeloglock SET LOCKED=0, LOCKGRANTED=null, LOCKEDBY=null where ID=1;

And restart the PC, now it is working !!!

Greetings Bernd

BerndFfma year ago