Traccar Server stops(code=killed) every 5 days

Oleksandr 6 years ago

Hello Server is stopping every 5 days at time 6:25, me need starting manually, what's happened I don't know, please help


 traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Tue 2019-10-29 06:25:08 UTC; 41min ago
  Process: 30496 ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml (code=killed, signal=KILL)
 Main PID: 30496 (code=killed, signal=KILL)

Oct 29 06:25:08 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Main process exited, code=killed, status=9/KILL
Oct 29 06:25:08 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Unit entered failed state.
Oct 29 06:25:08 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: traccar.service: Failed with result 'signal'.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Michał Piasecki 6 years ago

It's probably some sort of system routine. Look around in cron jobs, or something. You should google this, for all I know it could be related to OS automatically killing all long-term processes.

Slawek 6 years ago

use google search

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Oleksandr 6 years ago

I can try clean folder /var/crash/ and reboot and it doesn’t help

Slawek 6 years ago

How you know if problem is every 5 days at time 6:25 ?

Oleksandr 6 years ago

it was the same 5 days ago and so on

Slawek 6 years ago

Do you have logging traccar on ? If yes how big is log file ? Try to disable logging and reset tracar.

Peter Flower 6 years ago

Did you check the limits?

Oleksandr 6 years ago

Yes, I am always in the website, How can I see size log file and reset traccar?Thanks

Oleksandr 6 years ago

Where are I check limits?

Michał Piasecki 6 years ago

It really seems like it's your OS killing your process - considering it happens after exactly the same time it just seems like a routine task to kill all processes that are running for longer than 5 days. Could be some strange server configuration, or Traccar using too much resources.

I know it sounds stupid but if you won't be able to find a solution you could always make a cron job that restarts Traccar every 5 days at 6:26. Unless 1 minute downtime is not acceptable.

Oleksandr 6 years ago

Maybe I can see something in config file xml server or traccar?

Oleksandr 6 years ago

This did not happen before, everything worked 3-5 months normally and no one changed anything, and 2 months ago it started

Slawek 6 years ago

1.restart traccar
sudo systemctl restart traccar.service

2.check logs, look for errors check size
/opt/traccar/logs

Oleksandr 6 years ago

Logs is norm

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ll /opt/traccar/logs
total 157392
drwxr-xr-x  2 root root     4096 Oct 31 06:25 ./
drwxr-xr-x 10 root root     4096 Aug 11 16:21 ../
-rw-r--r--  1 root root 13460492 Oct 31 12:17 tracker-server.log
-rw-r--r--  1 root root 24293166 Oct 25 23:59 tracker-server.log.20191025
-rw-r--r--  1 root root 24232379 Oct 26 23:59 tracker-server.log.20191026
-rw-r--r--  1 root root 24368477 Oct 27 23:59 tracker-server.log.20191027
-rw-r--r--  1 root root 24320941 Oct 28 23:59 tracker-server.log.20191028
-rw-r--r--  1 root root 24724503 Oct 29 23:59 tracker-server.log.20191029
-rw-r--r--  1 root root 25728014 Oct 30 23:59 tracker-server.log.20191030