Can't add forum in Discourse IOS/Android apps to not admin

I’m having a similar problem:

PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_api_keys_on_client_id" DETAIL: Key

Started after I restored a backup of my Discourse site on a new server.