Only after installing openjdk 17 default for Raspberry Pi OS it now runs Traccar Server 6.8.1 perfectly provided I load the system java and not your bundle java. I had to modify your systemctl to reflect the modification for my custom mod case to work.
So this means your bundle version of java 21 is not compatible.
apt install default-jdk
java -version
openjdk version "17.0.15" 2025-04-15
OpenJDK Runtime Environment (build 17.0.15+6-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.15+6-Debian-1deb12u1, mixed mode, sharing)
cd /opt/traccar
java -jar tracker-server.jar conf/traccar.xml
Running Changeset: changelog-6.8.0::changelog-6.8.0-timescale::author
UPDATE SUMMARY
Run: 1
Previously run: 26
Filtered out: 0
-------------------------------
Total change sets: 27
Liquibase: Update has been successful. Rows affected: 1
Root cause problem detected!
Modify execution path to use default system java version 17 as workabout for the moment until fix is updated at your side.
nano /etc/systemd/system/traccar.service
[Unit]
Description=traccar
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/traccar
ExecStart=java -jar tracker-server.jar conf/traccar.xml
SyslogIdentifier=traccar
SuccessExitStatus=143
WatchdogSec=600
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
I am happy now on Traccar Server version 6.8.1 finally due to incompatible bundle java 22 binary issue discovered and resolved with work about system default installed from official repository java 17 binary for Raspberry Pi OS bookworm.
By the way I just notice the default recommended Raspberry Pi OS (bookworm) Open JRE Java version 17 speed performance is much faster and optimized compare to your traccar server bundled Open JRE version 21 which is slow in performance and buggy at times with errors thrown out intermittently.
Since I uses Raspberry Pi 3B+ I noticed this great difference is performance significant changes in between two version of Java versions.
With this in mind it is best you removed the bundle Open JRE version 21 in your traccar server installation setup and ask users to manually install their own default system OS recommended Open JRE versions.
Okay. Noted. I guess it is isolated case to Raspberry Pi OS (bookworm) only issues. I believe you. As none other users complains about such errors. Thanks anyway. My apologies from distracting you from your main focus of the general system bugs reported by many others to be resolved. Thanks again. We may close this thread for now. Greatly appreciated your effort. Best regards.