Traccar service status is stuck activating

protanomaly2 years ago

Hi,

I'm using a clean Raspberry Pi 4 (running Pi OS) for a fresh install of 5.5 but I cannot get the Traccar service to start, it just seems to start, exit, restart, exit...

I had been running 4.9 for a long time without issues, and can't think what I've done differently this time around...

There are no Traccar logs to look at as it doesn't get that far.

sudo systemctl status traccar.service returns:

Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2023-01-27 00:19:14 GMT; 5s ago
    Process: 3277 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=203/EXEC)
   Main PID: 3277 (code=exited, status=203/EXEC)

Any ideas what I could have done?

Thanks

Anton Tananaev2 years ago

Have you checked logs?

protanomaly2 years ago

Syslog says:

Jan 27 22:53:11 pi4 systemd[1]: Started traccar.
Jan 27 22:53:11 pi4 systemd[37087]: traccar.service: Failed to execute /opt/traccar/jre/bin/java: No such file or directory
Jan 27 22:53:11 pi4 systemd[37087]: traccar.service: Failed at step EXEC spawning /opt/traccar/jre/bin/java: No such file or directory
Jan 27 22:53:11 pi4 systemd[1]: traccar.service: Main process exited, code=exited, status=203/EXEC
Jan 27 22:53:11 pi4 systemd[1]: traccar.service: Failed with result 'exit-code'.
Jan 27 22:53:21 pi4 systemd[1]: traccar.service: Scheduled restart job, restart counter is at 1.
Jan 27 22:53:21 pi4 systemd[1]: Stopped traccar.

I have burned the OS and started from scratch. Is working fine now. Cheers.

chrise2 years ago

Hi protoanomaly

seems like you have made yours work, could you detail your install, I am losing the will to live, I have tied five times now and get no result following the instructables method

thanks in advance for any help you can provide