Devices not Activated after Migration from v3 to v4

I don’t know if this will help.
Since ChirpStack 4.7, we need to run the below commands to migrate session keys from Redis to Postgres.
Then the devices will be back to life with device sessions.

Device-session migration

This release moves the device-session storage from Redis to PostgreSQL. After upgrading, you must execute the following command (adapted to your environment):

chirpstack -c /etc/chirpstack migrate-device-sessions-to-postgres