Sometimes online devices are shown on red

Barca2 years ago

Hello,
Newest stable Traccar here (5.5) and I have an issue I didn't experience in last 5 years in using Traccar. Sometimes all devices are shown not on green but on red (i mean text "5 minutes ago" is red). And position of the device doesn't change, like it wouldn't be sending its position. But it is not true - all devices are then working properly and they send position to Traccar's server:port. Just a Traccar seems like be hanging up. After few minutes (the longest time was about 15 minutes) all devices are suddenly green and everything looks normal.
Any ideas highly appreciated :)

Anton Tananaev2 years ago

How do you know they are connected? What exactly have you checked to confirm it?

Barca2 years ago

Because:

  1. it is impossible that 5 devices are offline just in the same time (using different ISP, different IPs etc.)
  2. devices are shown as working properly (e.g. Traccar client on phones shows updating status)
  3. nothing blocks ports on Traccar server
  4. Traccar server process is present on list of processes
    I have no idea what causes this behaviour.
Anton Tananaev2 years ago

None of the points actually confirm it. You have to check logs to see what's happening. Offline status means that the device either disconnected or your server restarted.

Barca2 years ago

Hi,
thank you for fast responses. After further investigation I have the cause: tunnel SSH is periodically dead so this issue has nothing in common with Traccar itself. Sorry for bothering :)