Exisiting member unable to login via Facebook


(Ultra Noob) #1

Hi,

Reportedly, this is an error message.

Oops

The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.

Detailed information about the error was logged, and an automatic notification generated. We’ll take a look at it.

No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site’s feedback category.


What I am aware?

  • I recently changed FB App I’d.
  • For me, sign up and login via FB Is working.
  • I also used to some SSH command as suggested.

What I want to know?

  • What above message indicate?

Thanks in advanced!
Sincerely,
Gulshan


(James Kiesel) #2

Try visiting <your-site>/logs to see what the error is, and report back with that info, which will hopefully provide some more info for those that could help you.


(Robert McIntosh) #3

If you changed your ID you may need to remove existing information

You can read the full topic here:


(Ultra Noob) #4

I have already run this command just after changing. Do I need to rebuild now?

cd /var/discourse
./launcher enter app
rails c
FacebookUserInfo.delete_all

(Ultra Noob) #5

Yes, there is an error message

ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 5:55 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 5:55 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:44 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:44 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:44 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:44 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:46 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:46 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:49 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:49 pm
(facebook) Authentication failure! invalid_credentials: OAuth2::Error, {"message"=&gt;"This authorization code has been used.", "type"=&gt;"OAuthException", "code"=&gt;100, "fbtrace_id"=&gt;"Elt2/DBijKq"}: {"err 8:49 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:49 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:49 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:50 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:50 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 8:51 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 8:51 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(250) already exists. : INSERT 9:23 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(250) 9:23 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(250) already exists. : INSERT 9:23 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(250) 9:23 pm
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) already exists. : INSERT I 10:14 pm
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_facebook_user_infos_on_user_id" DETAIL: Key (user_id)=(27) 10:14 pm

Please tell me, what should I do to resolve?

Thanks


(Robert McIntosh) #6

If you can still log in then did it work? Were you required to re-authenticate?


(Ultra Noob) #7

This problem is happening for old member who uses FB for sign in to forum since day 1.

As a first time user, I am able to signup/login with new FB acc in the incognito.


(Ultra Noob) #8

Learned, it ask for re-auth after above message comes.


(Ultra Noob) #9

I would like to give one more detail that, before it was working fine.
Somehow my FB app got deleted from my account, so I created again and followed official tutorial for the integration.


(Jay Pfaffman) #10

Did you do that delete all command above? If so, I’m not sure what to think. You might try it again.


(Ultra Noob) #11

Thanks, I have tried it again.
image


(system) closed #12

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.