Traccar service restarts by itself

Cristiana year ago

Good morning everyone, I am getting the following error when using traccar on my VPS:
https://ibb.co/2dJVWst

I started searching on the subject and found the following post:
https://www.traccar.org/forums/topic/http-401-unauthorized/

I called my attention that there it says that the error occurs if the Traccar service is restarted, so I checked on that side and I could verify that indeed the Traccar service restarts itself, which can be seen in the following image:
https://ibb.co/fMjX828

I thought it might be the server resources, but on checking the server data in DigitalOcean the resource usage is below 50% in bandwidth, memory and hard disk usage.

Anyone who had the same problem and knew how to solve it?

It would be appreciated.

Anton Tananaeva year ago

Have you checked logs?

Cristiana year ago

The logs only record the restarts of the Traccar service, but there is no record of the described error.
https://ibb.co/VqbGG89
https://ibb.co/BsW73fN

Anton Tananaeva year ago

Try disabling the health check. Maybe that's the issue.

Cristiana year ago

I just removed WatchdogSec from the traccar.service file (systemd service).

Is this the correct way to disable health check?

Anton Tananaeva year ago

That should work, I think. There's also configuration parameter in Traccar.

Cristiana year ago

I tried separately the following:

  • remove WatchdogSec in traccar.service
  • add in the Traccar configuration file <entry key='web.disableHealthCheck'>true</entry>

Without getting the expected results in either case.

Now I could observe the following:
https://ibb.co/80gLcyM

As I understand it is as if restart is configured.