Major issues after upgrading from 5.6 to 5.8

Victor Butlera year ago

I did an upgrade from traccar 5.6 to 5.8 and the server suddenly stopped sending "received" response.

Logs before the upgrade:

2023-08-12 00:00:00  INFO: [Ud8bb79a0: protocol < XXX.XXX.XXX.XXX] Incoming HEX
2023-08-12 00:00:00  INFO: [Ud8bb79a0: protocol > XXX.XXX.XXX.XXX] Server Response

Now I only have

2023-08-12 16:45:57  INFO: [U8300552d: protocol < XXX.XXX.XXX.XXX] Incoming HEX
2023-08-12 16:45:57  INFO: [U8300552d: protocol < YYY.YYY.YYY.YYY] Incoming HEX
2023-08-12 16:45:57  INFO: [U8300552d: protocol < ZZZ.ZZZ.ZZZ.ZZZ] Incoming HEX

Because of that the devices are sending non stop the same data over and over again.

Any idea why this is and how to fix it?

Anton Tananaeva year ago

Are you sure you're not omitting any information from the logs?

Victor Butlera year ago

No errors in the logs, all positions are accepted by the server and logged into the DB.
Because the devices don't receive the server response, they are sending the same data endlessly and as a result the database is growing with 1200% compared to before the upgrade.
Traccar server has been restarted multiple times after the upgrade...

I will provide the initial logs in few moments.

Anton Tananaeva year ago

Have you tried configuring "server.instantAcknowledgement" parameter?

Victor Butlera year ago

It seems to be working, I need to do more testing.

Is omitting this parameter for 5.8 causing the server to stop sending a response? As opposed to 5.6 where this parameter was not needed?

Anton Tananaeva year ago

It delays the response until the message is processed, but it seems like it doesn't work well in your case. Possibly because you use UDP protocol.

Victor Butlera year ago

Yes probably, because UDP doesn't acknowledge packets have been received. Well, thank you for coming up with this explanation so quickly!

Now, good luck to me trying to clear 6GB of identical data.

Victor Butlera year ago

Further checking the logs, it seems that traccar did send response on some occasions but there are a lot of incoming packets without a response. All devices have the same configuration.

Is this "random" behavior normal? I would expect that the server will either send or not send a response....

Anton Tananaeva year ago

It is expected. Probably when you had a gap between messages and all of them got processed, it sent the response.