Problems migrating from 5 -> 6.12 RPi3 ARM

Pepe 21 days ago

Hi,
After upgrading from 5 -> 6.12 in RPI3B+ traccar keeps itself in a loop of failing service starts.

Had traccar 5 server running on RPI3B+, Raspian Bookworm, with Caddy to support HTTPS, RPI Config optimized for power saving incl. underclock and volt. H2 Database, 2 devices. Basically no issues with 5, except notification issue: email config/Notification had no test button --> wanted to try upgrade.
Followed instructions here: https://www.traccar.org/upgrading-traccar/

unfortunately backing up both database and config xml file to a folder that got deleted during uninstall, config and DB are lost - not so much of an issues - all test related so far - but annot compare old XML config files anymore.

When Installing 6.12 all went along smoothly, no errors.
Problem now: traccar service doesn't start correctly, no log is written to traccar/logs.

Thought undervoltage/clock would be a problem so at least lifted voltage back up.
Too, some forum entries pointed to JRE/JDK and XML format issues with installation.
So uninstalled - updated to JDK 17 - reinstalled 6.12.
Also made sure traccar.xml is default.

Problem remained.

service status (code=exited, status=1/FAILURE)
@raspberrypi:/opt/traccar/jre $ sudo systemctl status traccar
* traccar.service - traccar
    Loaded: loaded (/etc/systemd/system/traccar.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2026-03-02 16:11:53 CET; 7s ago
    Process: 3419 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited,status=1/FAILURE)
   Main PID: 3419 (code=exited, status=1/FAILURE)
        CPU: 2.608s

Can't make sense of the restarts here - is Java the issue:

sudo journalctl -u traccar.service
M�r 02 15:34:33 raspberrypi systemd[1]: Started traccar.service - traccar.
M�r 02 15:34:51 raspberrypi traccar[466]: Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
M�r 02 15:34:51 raspberrypi traccar[466]:         at org.traccar.Main.<clinit>(Main.java:42)
M�r 02 15:34:51 raspberrypi traccar[466]: Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
M�r 02 15:34:51 raspberrypi traccar[466]:         at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
M�r 02 15:34:51 raspberrypi traccar[466]:         at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
M�r 02 15:34:51 raspberrypi traccar[466]:         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
M�r 02 15:34:51 raspberrypi traccar[466]:         ... 1 more
M�r 02 15:34:51 raspberrypi systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
M�r 02 15:34:51 raspberrypi systemd[1]: traccar.service: Failed with result 'exit-code'.
M�r 02 15:34:51 raspberrypi systemd[1]: traccar.service: Consumed 4.012s CPU time.
M�r 02 15:35:18 raspberrypi systemd[1]: traccar.service: Scheduled restart job, restart counter is at 1.
M�r 02 15:35:18 raspberrypi systemd[1]: Stopped traccar.service - traccar.
M�r 02 15:35:18 raspberrypi systemd[1]: traccar.service: Consumed 4.012s CPU time.

My traccar.xml contains nothing but standard installation entries:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password' />

</properties>

Any Help welcome

Anton Tananaev 21 days ago

Is your system 32 or 64 bits?

Pepe 21 days ago

Soorry for the delay: that's AARCH64 (uname -m)

Did I download the wrong Architecture?

Anton Tananaev 21 days ago

Sounds correct. Have you tried searching the forum for other similar issues?

Pepe 21 days ago

Yes I did.
Some had to do with architecture. Some with XML formatting probably. Some with Java. Seldom the same service messages or if so with description or logs. But no logs here.

Afaik I had some Java issues on this machine .
Probably this has to do with the power saving settings. I research and get back here...

Pepe 20 days ago

Checked Voltage settings again today, Back to all standard settings (freq and voltage) did not solve the issue...
almost forgot: used ufw firewall, which I disabled.
But that should not have to do with the traccar service restarting ...

Anton Tananaev 20 days ago

One thing to try - use a standard Java that comes with the system.

Pepe 14 days ago

Hey.
Thanks... currently trying to reinstall standard JDK (open jdk 17). Before that I tried to grade to version 6.8.1 but system still keeps restarting traccar. Powersettings back to normal freq and volt settings.

Running this jdk now:
@raspberrypi:~ $ java -version
openjdk version "17.0.18" 2026-01-20
OpenJDK Runtime Environment (build 17.0.18+8-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.18+8-Debian-1deb12u1, mixed mode, sharing)

no success unfortunately. A pity that ist went this bad, traccar war really running ok before with no issues... Guess this will be a clean install...

Pepe 14 days ago

...really strange. I wiped the SD Card and startet fresh with RPI Trixie lite 64 and traccar 6.12.2.
Still the traccar installation is restarting itself.

minimal traccar.xml is correct? see below

<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password' />

</properties>
Anton Tananaev 14 days ago

It's not a valid XML. Where's the header?

Pepe 14 days ago

Sorry, i post it as plain text:

This is sudo nano /opt/traccar/conf/traccar.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password' />

</properties>
Pepe 13 days ago

in case somebody is interested:
I went along this: https://www.traccar.org/forums/topic/traccar-server-680-service-failed-to-start/page/5/
in the end with no success for 6.12.2. and also 6.8 I reverted back to arm64 5.12, which seems to run stable.

On the RPI3B+ I installed Trixie lite (headless). Would it make sense to also go back to bookworm and try Java updates and 6.12.2? Or try a non-headless RPI OS?
Unfortunately with mentioned OS and various Java trials I couldn't make traccar run.
So be it the older traccar version...

if anybody is interested:

RPI3B-traccar:~ $ java -version
openjdk version "21.0.10" 2026-01-20 LTS
OpenJDK Runtime Environment Zulu21.48+17-CA (build 21.0.10+7-LTS)
OpenJDK 64-Bit Server VM Zulu21.48+17-CA (build 21.0.10+7-LTS, mixed mode, sharing)
..@RPI3B-traccar:~ $