Traccar server 6.8.0 service failed to start

Juliet Tee9 days ago

@Anton Okay finally it is resolved the slf4j error which is causing Traccar Server 6.8.x failed to start !

The trick is to install maven repository to get slf4j binary support.

Then install back Java 21 from Zulu21 repository.

And it works now finally!

But your bundled Java 21 does not want to run, still with the same error!
i.e. "/opt/traccar/jre/bin/java"

JAVA_VERSION="21.0.7"
MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se jdk.charsets jdk.crypto.ec jdk.unsupported"

sudo apt install maven
sudo apt install zulu21-jdk-headless

Here is the proof and evidence ...

login as: root
root@192.168.88.250's password:
Linux traccar 6.12.37-v8+ #1894 SMP PREEMPT Fri Jul 11 16:47:45 BST 2025 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have no mail.
Last login: Thu Jul 17 07:21:54 2025 from 192.168.88.21

root@traccar:~# systemctl status traccar
● traccar.service - traccar
     Loaded: loaded (/etc/systemd/system/traccar.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-07-17 07:24:04 +08; 15min ago
   Main PID: 582 (java)
      Tasks: 50 (limit: 760)
        CPU: 2min 1.964s
     CGroup: /system.slice/traccar.service
             └─582 java -jar tracker-server.jar conf/traccar.xml

Jul 17 07:24:04 traccar systemd[1]: Started traccar.service - traccar.
Jul 17 07:25:02 traccar traccar[582]: Database is up to date, no changesets to execute
Jul 17 07:25:02 traccar traccar[582]: UPDATE SUMMARY
Jul 17 07:25:02 traccar traccar[582]: Run:                          0
Jul 17 07:25:02 traccar traccar[582]: Previously run:              27
Jul 17 07:25:02 traccar traccar[582]: Filtered out:                 0
Jul 17 07:25:02 traccar traccar[582]: -------------------------------
Jul 17 07:25:02 traccar traccar[582]: Total change sets:           27

root@traccar:~# java -version
openjdk version "21.0.8" 2025-07-15 LTS
OpenJDK Runtime Environment Zulu21.44+17-CA (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Zulu21.44+17-CA (build 21.0.8+9-LTS, mixed mode, sharing)

root@traccar:~# 
Anton Tananaev9 days ago

The trick is to install maven repository to get slf4j binary support

This part makes absolutely no sense. It doesn't actually do anything because Traccar does not use external libraries.

Juliet Tee9 days ago

By google search of the error key words shows that slf4j libiries used in Traccar Server 6.8.x contains in Maven Repository. I follow their advice and error goes away... by installing maven ... else there is no solution from your side ... since we want to use Java 21 version.

Juliet Tee9 days ago

By the way I am using ths Raspberry Pi OS Lite which explains why it does not have the full version OS. Many users will not encounter this issue since they are using full OS version. Such error I am the only one facing ... due to Lite version in used.

Raspberry Pi OS Lite
Release date: May 13th 2025
System: 64-bit
Kernel version: 6.12
Debian version: 12 (bookworm)
Size: 423MB

Juliet Tee9 days ago

@Anton, I apologize on my ignorance. I guess you are right! After pondering what you have said, I decide to purge maven from my OS and it still works great Traccar Server version6.8.1.

sudo apt purge maven

I noticed Zulu21 have updated their java version to "21.0.8" 2025-07-15 LTS which is few days back and it is the latest release compare to your older java 21 version JAVA_VERSION="21.0.7".

Thanks for the correction and my mistaken believe.

login as: root
root@192.168.88.250's password:
Linux traccar 6.12.38-v8+ #1895 SMP PREEMPT Wed Jul 16 17:14:12 BST 2025 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have no mail.
Last login: Fri Jul 18 00:05:52 2025 from 192.168.88.21
root@traccar:~# systemctl status traccar
● traccar.service - traccar
     Loaded: loaded (/etc/systemd/system/traccar.service; enabled; preset: enab>
     Active: active (running) since Fri 2025-07-18 00:11:53 +08; 9min ago
   Main PID: 589 (java)
      Tasks: 46 (limit: 760)
        CPU: 1min 55.383s
     CGroup: /system.slice/traccar.service
             └─589 java -jar tracker-server.jar conf/traccar.xml

Jul 18 00:11:53 traccar systemd[1]: Started traccar.service - traccar.
Jul 18 00:13:01 traccar traccar[589]: Database is up to date, no changesets to >
Jul 18 00:13:01 traccar traccar[589]: UPDATE SUMMARY
Jul 18 00:13:01 traccar traccar[589]: Run:                          0
Jul 18 00:13:01 traccar traccar[589]: Previously run:              27
Jul 18 00:13:01 traccar traccar[589]: Filtered out:                 0
Jul 18 00:13:01 traccar traccar[589]: -------------------------------
Jul 18 00:13:01 traccar traccar[589]: Total change sets:           27

root@traccar:~# java -version
openjdk version "21.0.8" 2025-07-15 LTS
OpenJDK Runtime Environment Zulu21.44+17-CA (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Zulu21.44+17-CA (build 21.0.8+9-LTS, mixed mode, sharin                                                                             g)
root@traccar:~#
Walter Spada9 days ago

I can confirm the issue comes from the java provided with Traccar 6.8.1

Past month I installed 6.7.2 coming from 6.6 and it worked fine. Then I missed the next versions until today I found out there's been a lot of new ones.

Installed it as always but no log file was touched or generated. No sign of traccar even trying to start.
I restored the default traccar.conf file just in case, but still nothing.

Then I remembered a past issue with java, when I had to run traccar using my local java install, and came here just to be sure is not only me or something I broke somehow.

After finding this thread and reading it, I went back and changed the current jre folder for the one that was in 6.7.2 (always keep the old folder install just in case)

Then traccar started again.

Still some issues on login screen, I guess something missmatching. (nope, my mistake, it works fine)

Anton Tananaev8 days ago

What OS and architecture are you using?

kaket078 days ago

Операционная система и архитектура, это к кому вопрос?

Synology DS920+, Synology DSM (DSM 7.2.2-72806 Update 3).

Juliet Tee8 days ago

Actually there is no issue from earlier version since till last working version 6.7.3 of the bundled Java 21.0.7 included with Traccar Server.

The problem started when Traccar Server version 6.8.0 till now 6.8.1 is released.

I manage to get Traccar Server 6.8.1 working by upgrading to Java 21.0.8 zulu repository and manually forcing it to run at latest version from OS path environment via services system start up file.

Juliet Tee8 days ago

I followed this guide to install Java 21.0.8 and it worked on Traccar Server 6.8.1 latest version.

https://pimylifeup.com/raspberry-pi-java/

Juliet Tee8 days ago

I must say installing our own latest Java version solves the problem as documented here ... thanks @Anton for your guide tips.

https://www.traccar.org/manual-installation/

Juliet Tee8 days ago

I will try upgrading to Java 24 shortly to test if it works with Traccar Server 6.8.1 onwards.
https://www.oracle.com/java/technologies/downloads/

Juliet Tee5 days ago

I have just tested by upgrading to Oracle Java 24 but still failed to run Traccar Server 6.8.1 version surprisingly.

Juliet Tee4 days ago

This thread is closed since the issue is identified and addressed. Thanks @Anton.

kaket074 days ago

а как же с Docker образами и контейнером быть?