The device queue (downlink messages) is filling up with messages. We discovered this when the server stopped responding after several days. The downlink messages are sent using REST API /api/devices/<dev_eui>/queue
. The table device_queue
in database chirpstack_ns
contains a bunch of messages. Deleting these message, restarting the application server and the netowrk server brings the system back up again.
This happens on queues for offline devices. As we are in a test situation, there are a lot of devices that are turned off, but our software is still sending downlink messages to these devices. I am not sure if this is a configuration issue, bug in our system or a bug in the Chirpstack Network Server logic.
Versions
chirpstack-application-server/stable,now 3.17.6 amd64 [installed]
chirpstack-gateway-bridge/stable,now 3.13.3 amd64 [installed]
chirpstack-network-server/stable,now 3.16.1 amd64 [installed]
Characteristics:
- Devices are offline
- Class C devices (obviously)
- OTAA
- Message NOT confirmed
Questions
- Have we done a configuration error?
- Should our software stop sending downlink messages when devices are detected as offline?
- Is there a configuration setting to limit the maximum number of downlink messages in the queue?