Hi everyone,
I’ve just updated to version 6.9.1 and enabled broadcasting config with redis. I have traccar installed in 2 servers, where traffic is load balanced to the 2 servers. This is the redis configuration configured below.
Primary Server:
<!-- Boardcast Configurations -->
<entry key='broadcast.type'>redis</entry>
<entry key='broadcast.address'>redis://IP:Port/0</entry>
<entry key='broadcast.secondary'>false</entry>
Secondary Server:
<!-- Boardcast Configurations -->
<entry key='broadcast.type'>redis</entry>
<entry key='broadcast.address'>redis://IP:Port/0</entry>
<entry key='broadcast.secondary'>true</entry>
However, I am getting some error logs about broadcasting in the traccar server log. I have checked and there is no issues with the connectivity to redis server. I can also see from the redis server that my traccar servers are connected as
one subscriber connection (flags=P, cmd=subscribe)
one publisher connection (flags=N, cmd=publish)
These are the warning logs i am getting. Restarting the traccar server stops these warning logs for some time, but the logs again reappear after some time again.
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:53 < ConnectionManager:310 < PostProcessHandler:59 < ...)
2025-09-07 10:40:39 WARN: Broadcast failed - Attempting to read from a broken connection. - JedisConnectionException (... < RedisBroadcastService:72 < BaseBroadcastService:46 < ConnectionManager:293 < *:279 < BaseProtocolDecoder:182 < ...)
Can anyone check and help with troubleshooting this behavior. Thanks.
What is zero at the end of the database URL?
Hello Anton, Thanks for replying.
The 0 at the end is the logical database 0 for redis. This is a logical db for redis.
Traccar can connect to redis with both 0 set or removed from the database URL. Thanks.
Does this error start happening immediately or after some time?
The error starts after some time, sometimes after 20-30 minutes, sometimes after 5-6 hours. Restarting the traccar service stops the error, but again the error starts coming.
Seems like the issue might be with reconnecting.
From the Redis server I can see both Traccar servers remain connected, and when I subscribe to the traccar channel with redis-cli I see broadcast messages being delivered even while these warnings are logged.
Any guidance would be greatly appreciated.
Hi Anton, I have observed the system for few days, and found when these error logs come, the traccar redis subscribe only remains connected, but when everything is working traccar redis publish and subscribe both remains connected. I think the publisher is being disconnected after some time. Can you please guide me on how to handle this, I can see now no data is being published to redis now.
You might need to look into the source code.
Hi everyone,
I’ve just updated to version 6.9.1 and enabled broadcasting config with redis. I have traccar installed in 2 servers, where traffic is load balanced to the 2 servers. This is the redis configuration configured below.
Primary Server:
Secondary Server:
However, I am getting some error logs about broadcasting in the traccar server log. I have checked and there is no issues with the connectivity to redis server. I can also see from the redis server that my traccar servers are connected as
These are the warning logs i am getting. Restarting the traccar server stops these warning logs for some time, but the logs again reappear after some time again.
Can anyone check and help with troubleshooting this behavior. Thanks.