Problem with logging in after migrating to the new version
Added by Anonymous almost 2 years ago
After migrating to the new version, I have a problem with logging in to the admin
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
C:\Bitnami\redmine-5.0.3-0\apps\redmine\htdocs\log\production.log
W, [2023-02-23T16:26:56.135245 #3772] WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
W, [2023-02-23T16:26:56.143109 #3740] WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
W, [2023-02-23T16:26:56.516199 #3772] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
W, [2023-02-23T16:26:56.532469 #3740] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
W, [2023-02-23T16:26:56.808938 #3740] WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
W, [2023-02-23T16:26:56.860481 #3772] WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
I, [2023-02-23T16:28:25.731826 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Started GET "/redmine/" for ::1 at 2023-02-23 16:28:25 0100
I, [2023-02-23T16:28:25.739250 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Processing by WelcomeController#index as HTML
I, [2023-02-23T16:28:25.840248 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Current user: anonymous
I, [2023-02-23T16:28:25.842368 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Redirected to http://localhost/redmine/login?back_url=http%3A%2F%2Flocalhost%2Fredmine%2F
I, [2023-02-23T16:28:25.842508 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Filter chain halted as :check_if_login_required rendered or redirected
I, [2023-02-23T16:28:25.842701 #3772] INFO -- : [ed84f9b0-cdf6-415a-a551-378089c41d44] Completed 302 Found in 103ms (ActiveRecord: 31.6ms | Allocations: 39742)
I, [2023-02-23T16:28:25.893542 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Started GET "/redmine/login?back_url=http%3A%2F%2Flocalhost%2Fredmine%2F" for ::1 at 2023-02-23 16:28:25 +0100
I, [2023-02-23T16:28:25.901644 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Processing by AccountController#login as HTML
I, [2023-02-23T16:28:25.901780 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Parameters: {"back_url"=>"http://localhost/redmine/"}
I, [2023-02-23T16:28:25.965383 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Current user: anonymous
I, [2023-02-23T16:28:25.991433 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Rendered account/login.html.erb within layouts/base (Duration: 5.2ms | Allocations: 1429)
I, [2023-02-23T16:28:26.037891 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Rendered layout layouts/base.html.erb (Duration: 51.7ms | Allocations: 9761)
I, [2023-02-23T16:28:26.038258 #3740] INFO -- : [761687c7-7337-41d9-a8bd-6655c8584c8b] Completed 200 OK in 136ms (Views: 43.0ms | ActiveRecord: 24.6ms | Allocations: 50571)
I, [2023-02-23T16:28:32.644099 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Started POST "/redmine/login" for ::1 at 2023-02-23 16:28:32 +0100
I, [2023-02-23T16:28:32.644851 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Processing by AccountController#login as HTML
I, [2023-02-23T16:28:32.644988 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Parameters: {"utf8"=>"✓", "authenticity_token"=>"MbyuZAj4Wvs1aQrfWOHaVE4ITO/h/bD7DE1hQ0/2kulLPHLstTI69D0KiwKAhPO8/bFQh6xeoX6G3W1naDx0g==", "back_url"=>"/redmine/", "username"=>"admin", "password"=>"[FILTERED]", "login"=>"Zaloguj się"}
I, [2023-02-23T16:28:32.648038 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Current user: anonymous
I, [2023-02-23T16:28:32.655899 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Successful authentication for 'admin' from ::1 at 2023-02-23 15:28:32 UTC
I, [2023-02-23T16:28:32.712253 #3772] INFO -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8] Completed 500 Internal Server Error in 67ms (ActiveRecord: 26.4ms | Allocations: 22256)
F, [2023-02-23T16:28:32.712995 #3772] FATAL -- : [60b48735-8cad-45c8-9b75-f194ab1c1bb8]
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] NoMethodError (undefined method `twofa_required?' for #<Group:0x00000260db8e8620>
Did you mean? twofa_scheme?):
[60b48735-8cad-45c8-9b75-f194ab1c1bb8]
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/models/user.rb:391:in `must_activate_twofa?'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/application_controller.rb:95:in `start_user_session'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/application_controller.rb:186:in `logged_user='
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/account_controller.rb:333:in `successful_authentication'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/account_controller.rb:326:in `handle_active_user'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/account_controller.rb:317:in `password_authentication'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/account_controller.rb:296:in `authenticate_user'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] app/controllers/account_controller.rb:33:in `login'
[60b48735-8cad-45c8-9b75-f194ab1c1bb8] lib/redmine/sudo_mode.rb:61:in `sudo_mode'