Facebook login does't work after migrating to docker


(Богдан Бондар) #1

I successfuly migrated discourse from 0.9.7.8 to latest docker version.
But the old users that have facebook account in the old forum version can’t login via facebook now.
New users can register and login via facebook normaly

Here is an error from log:

ActiveRecord::RecordNotUnique (PG::Error: ERROR:  duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id"
DETAIL:  Key (user_id)=(2350) already exists.
: INSERT INTO "facebook_user_infos" ("created_at", "email", "facebook_user_id", "first_name", "gender", "last_name", "link", "name", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id")

(Kane York) #2

Did you change your Facebook authorization keys…?

Try going back to the old Facebook keys. They should have been moved with the restore.


(Bogdan Bondar) #3

Yep. You’re right! The problem was here. But what to do if I want to change facebook keys?