Not able to authenticate users

Keywords: Redmine - Virtual Machines - How to - Credentials

Description:
I upgraded from redmine 3.3 to 5.0 and tried to authenticate the user. I am getting an redmine 500 internal error. From the production log this is what is being shown

I, [2022-05-15T08:28:23.259273 #6364] INFO – : [c62b2954-77e1-4e93-a107-06af9c8911f2] Started POST “/redmine/login” for ::1 at 2022-05-15 08:28:23 -0400
I, [2022-05-15T08:28:23.394753 #6364] INFO – : [c62b2954-77e1-4e93-a107-06af9c8911f2] Processing by AccountController#login as HTML
I, [2022-05-15T08:28:23.401956 #6364] INFO – : [c62b2954-77e1-4e93-a107-06af9c8911f2] Parameters: {“utf8”=>“✓”, “authenticity_token”=>“fDnlE/8ExgnSkpy8dbeT+01+4f9fKo4WmIyXucVqbZp+59cmFxXq9VOMAuRe5z6XLtZwYnm7huCuHtX24YrhVw==”, “username”=>“amarnanduri”, “password”=>"[FILTERED]", “login”=>“Login”}
I, [2022-05-15T08:28:23.680707 #6364] INFO – : [c62b2954-77e1-4e93-a107-06af9c8911f2] Current user: anonymous
I, [2022-05-15T08:28:23.955663 #6364] INFO – : [c62b2954-77e1-4e93-a107-06af9c8911f2] Completed 500 Internal Server Error in 553ms (ActiveRecord: 35.7ms | Allocations: 5405)
F, [2022-05-15T08:28:23.963484 #6364] FATAL – : [c62b2954-77e1-4e93-a107-06af9c8911f2]
[c62b2954-77e1-4e93-a107-06af9c8911f2] NameError (undefined local variable or method twofa_scheme' for #<User:0x00000216dbd21538> Did you mean? twofa_active?): [c62b2954-77e1-4e93-a107-06af9c8911f2] [c62b2954-77e1-4e93-a107-06af9c8911f2] app/models/user.rb:383:in twofa_active?’
[c62b2954-77e1-4e93-a107-06af9c8911f2] app/controllers/account_controller.rb:309:in password_authentication' [c62b2954-77e1-4e93-a107-06af9c8911f2] app/controllers/account_controller.rb:296:in authenticate_user’
[c62b2954-77e1-4e93-a107-06af9c8911f2] app/controllers/account_controller.rb:33:in login' [c62b2954-77e1-4e93-a107-06af9c8911f2] lib/redmine/sudo_mode.rb:61:in sudo_mode’

Hi @nanduri,

I’m afraid the issue exceeds the scope of this forum. I recommend asking in the official Redmine forum:

https://www.redmine.org/projects/redmine/boards

Regards,
Michiel

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