traccar + Ubuntu 16.04

chiba-sobaka6 years ago

Install Run traccar.run (sudo ./traccar.run)
Start service: sudo systemctl start traccar.service

$ sudo systemctl status traccar.service
● 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: failed (Result: exit-code) since Tue 2019-05-21 18:55:59 +09; 4min 34s ago
  Process: 11601 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=exited, status=217/USER)
 Main PID: 11601 (code=exited, status=217/USER)

May 21 18:55:59 traccar systemd[1]: Started traccar.
May 21 18:55:59 traccar systemd[11601]: traccar.service: Failed at step USER spawning /opt/traccar/jre/bin/java: No such process
May 21 18:55:59 traccar systemd[1]: traccar.service: Main process exited, code=exited, status=217/USER
May 21 18:55:59 traccar systemd[1]: traccar.service: Unit entered failed state.
May 21 18:55:59 traccar systemd[1]: traccar.service: Failed with result 'exit-code'.
chiba-sobaka6 years ago

What to do?

jeeva6 years ago

Error says java run time not found. Keep java run time under /opt/traccar directory