Devices stop reporting without errors in server side.

maclofin4 months ago

Hello, I am having a problem with Traccar and my GPS and sometimes for some reason that does not appear in the logs, some devices stop reporting but I do not see them appear offline, for example two days ago a device stopped reporting, it appeared online and on (because that was the last thing it reported) but it did not emit any disconnection alert or anything like that, the thing is that for them to return to normal I have to restart the server, this was the last message to the server.

2024-08-10 13:01:29 INFO: Event ID: 865235057381283, Time: 2024-08-10 13:01:29, Type: Device Online, Notifications: 2
2024-08-10 13:01:29 INFO: [Tdeaea1c7: startek < 147.75.51.169] 26264c3134342c3836353233353035373338313238332c3030302c302c2c3234303831303 137303132362c412c31382e3433383537352c2d37302e3030383537352c31322c302e382c31362c382c31352c3139303436392c3337307c317c313342 ```
Now I have several Questions.
1- Is there a way to restart the device's connection to the server without having to restart the entire server?
2- Is there a way for non-serious server errors to not interrupt traffic flow from the device? That is, to continue reporting even if they have stuck notifications or any other problem?
3- Is there a way for an administrator to know when a device stopped reporting X amount of time?

I would like a hand with this since a problem occurred with the vehicle and the vehicle history is not saved (this happened because the device always kept sending the data and therefore the data was not stored in the internal GPS storage), so it is a somewhat complex case to diagnose.

Thanks in advance
anka4 months ago

hi,
point 3: config parameter 'report.trip.minimalNoDataDuration' might be an option

Anton Tananaev4 months ago

For point 3, we do have device inactivity notification. You can set deviceInactivityStart and deviceInactivityPeriod (optional) attributes.