Activation Data Deleted


ChirpStack Removing Device Activation Data After 25-30 Days (if device inactive)

We have a problem where ChirpStack automatically deletes device activation data if a device hasn’t been active for 25-30 days, but the device itself remains listed.

How can we prevent ChirpStack from deleting the activation data after this period? Do we need to adjust any other settings?

What version is your Chirpstack. I believe this was changed in 4.7 to no longer cleanup activations.

3.17.9 - version of Chirpstack

I believe there is a setting in your chirpstack.toml called something like device_session_ttl, that adjusts how long inactive activations are kept before deletion. Although I believe updating the setting will not adjust the TTL of devices that are already activated.

You can change device_session_ttl=“744h0m0s” to increase the device activation time. Also, it will reflect for all activated devices once they send uplinks.

There is an API as well that you can use if you want to reactivate devices that have already been deactivated, using session parameters stored in the database.

Please see the two posts below, which might help you.

1 Like