Hi, I just updated my Traccar server from an old version (not sure which one, but 3.xx I believe) and the service crashes with
/opt/traccar $ sudo systemctl status traccar
● traccar.service - traccar
Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/traccar.service.d
└─run-as-user.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-10-27 16:02:52 EDT; 1s ago
Process: 4840 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=1/FAILURE)
Main PID: 4840 (code=exited, status=1/FAILURE)
Oct 27 16:02:52 droplet systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Oct 27 16:02:52 droplet systemd[1]: traccar.service: Unit entered failed state.
Oct 27 16:02:52 droplet systemd[1]: traccar.service: Failed with result 'exit-code'.
This does not seem to print anything to the logs folder and running Traccar manually with
sudo /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
works fine, so I'm not sure how to debug this.
Thank you.
There are no logs in the /opt/traccar/logs folder when I start the service with systemctl. Should I be looking somewhere else?
It was a permissions issue, the journalctl logs revealed
Hi, I just updated my Traccar server from an old version (not sure which one, but 3.xx I believe) and the service crashes with
This does not seem to print anything to the logs folder and running Traccar manually with
works fine, so I'm not sure how to debug this.
Thank you.