Since this might be the problem, I’ll start with this. I recently launched a new EC2 instance and restored a backup of my Discourse site to the instance and deleted the old one. After that, logging in from the Discourse app for my account doesn’t work.
I tried removing the site from the app and adding it back. I get to the authorize link after signing in and then I get a blank screen after clicking authorize. When I checked the logs, I see:
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_api_keys_on_client_id" DETAIL: Key
I’m not sure what the cause is, but I’m thinking it has something to do with this device already being authorized on the previous site and a server restore?