chriswnl / redmine_google_authenticator

Add dual-factor auth to Redmine using Google Authenticator app on phone or tablet
Other
1 stars 3 forks source link

Setup dual factor authentication give 500 Internal server Error #2

Open kiritdevda opened 5 years ago

kiritdevda commented 5 years ago

Hi ,

Redmine details

redmine_version : 3.4.6-4 OS : windows 7 x64

I have installled redmine using bitnami redmine

I have installed google_authenticator plugin in redmine but when i try to configure it for user it throws 500 internal server Error . Below is the production log

production.log

Processing by SettingsController#plugin as HTML Parameters: {"id"=>"google_authenticator"} Current user: admin (id=1) Rendered plugins/google_authenticator/app/views/settings/_google_authenticator.html.erb (0.0ms) Rendered settings/plugin.html.erb within layouts/admin (37.0ms) Rendered admin/_menu.html.erb (2.0ms) Rendered layouts/base.html.erb (8.0ms) Completed 200 OK in 218ms (Views: 123.3ms | ActiveRecord: 87.0ms) Started GET "/redmine/my/account" for 127.0.0.1 at 2019-01-02 13:15:08 +0530 Processing by MyController#account as HTML Current user: admin (id=1) Rendered users/_mail_notifications.html.erb (7.0ms) Rendered users/_preferences.html.erb (712.0ms) Rendered plugins/google_authenticator/app/views/hooks/_view_my_account_preferences.html.erb (15.0ms) Rendered my/_sidebar.html.erb (9.0ms) Rendered my/account.html.erb within layouts/base (977.1ms) Completed 200 OK in 1082ms (Views: 1013.7ms | ActiveRecord: 66.0ms) Started GET "/redmine/dualauth/setup" for 127.0.0.1 at 2019-01-02 13:15:10 +0530 Processing by TwoStepAuthsController#new as HTML Current user: admin (id=1) Completed 500 Internal Server Error in 145ms (ActiveRecord: 123.0ms)

NameError (uninitialized constant TwoStepAuth::ROTP): plugins/google_authenticator/app/models/two_step_auth.rb:82:in set_secret' plugins/google_authenticator/app/controllers/two_step_auths_controller.rb:13:innew' lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Email notification doesn't work on my system does this would anyway be possible cause of problem

Find below snaps for reference

Mysql Table two_step_auths

Table two_step_auths is empty is this expected behavior

mysql_two_step_auth

Redmine Error redmine_error