Project

General

Profile

Actions

Defect #15545

closed

Redmine 500 error when upgrading from 2.3.3 to 2.4.0-1

Added by Christopher Jackson almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I am currently running a production Redmine server with 2.3.3 and wish to test 2.4.0-1. I do not have any plugins loaded.
However when I backup the SQL database and import it on the 2.4.0-1 install, I am prompted with the Redmine login screen to which I enter my username and password then am prompted with the following.

*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.*

I am doing the backup as per the instructions [ mysqldump -u root -p bitnami_redmine > redmine251113.sql
Import to 2.4.0-1 [ mysql -u root -p bitnami_redmine < redmine251113.sql

If I check the log file for red mine I see the following.

*Started GET "/redmine/login" for 192.168.0.23 at 2013-11-26 03:59:18 -0800
Processing by AccountController#login as HTML
Current user: anonymous
Rendered account/login.html.erb within layouts/base (1.0ms)
Completed 200 OK in 5.8ms (Views: 3.7ms | ActiveRecord: 0.6ms)
Started GET "/redmine/" for 192.168.0.23 at 2013-11-26 03:59:19 -0800
Processing by WelcomeController#index as HTML
Current user: anonymous
Redirected to http://192.168.0.107:8080/redmine/login?back_url=http%3A%2F%2F192.168.0.107%3A8080%2Fredmine%2F
Filter chain halted as :check_if_login_required rendered or redirected
Completed 302 Found in 2.9ms (ActiveRecord: 0.8ms)
Started GET "/redmine/login?back_url=http%3A%2F%2F192.168.0.107%3A8080%2Fredmine%2F" for 192.168.0.23 at 2013-11-26 03:59:19 -0800
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"http://192.168.0.107:8080/redmine/"}
Current user: anonymous
Rendered account/login.html.erb within layouts/base (1.0ms)
Completed 200 OK in 5.7ms (Views: 3.5ms | ActiveRecord: 0.7ms)
Started GET "/redmine/" for 192.168.0.23 at 2013-11-26 03:59:19 -0800
Processing by WelcomeController#index as HTML
Current user: anonymous
Redirected to http://192.168.0.107:8080/redmine/login?back_url=http%3A%2F%2F192.168.0.107%3A8080%2Fredmine%2F
Filter chain halted as :check_if_login_required rendered or redirected
Completed 302 Found in 5.3ms (ActiveRecord: 1.4ms)
Started GET "/redmine/login?back_url=http%3A%2F%2F192.168.0.107%3A8080%2Fredmine%2F" for 192.168.0.23 at 2013-11-26 03:59:19 -0800
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"http://192.168.0.107:8080/redmine/"}
Current user: anonymous
Rendered account/login.html.erb within layouts/base (1.3ms)
Completed 200 OK in 6.6ms (Views: 4.2ms | ActiveRecord: 0.6ms)
Started POST "/redmine/login" for 192.168.0.23 at 2013-11-26 03:59:24 -0800
Processing by AccountController#login as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"z61KfD3UQmti3KJITgrc6hwcnqirD9dftHqOOwPb/HI=", "back_url"=>"http://192.168.0.107:8080/redmine/", "username"=>"chris", "password"=>"[FILTERED]", "login"=>"Login »"}
Current user: anonymous
Successful authentication for 'chris' from 192.168.0.23 at 2013-11-26 11:59:25 UTC
Completed 500 Internal Server Error in 171.1ms

NoMethodError (undefined method `must_change_passwd?' for #<User:0x00000005e06ed8>):
app/models/user.rb:284:in `must_change_password?'
app/controllers/application_controller.rb:84:in `start_user_session'
app/controllers/application_controller.rb:161:in `logged_user='
app/controllers/account_controller.rb:245:in `successful_authentication'
app/controllers/account_controller.rb:192:in `password_authentication'
app/controllers/account_controller.rb:178:in `authenticate_user'
app/controllers/account_controller.rb:32:in `login'*

I have checked that I am using the correct username and password.

Actions

Also available in: Atom PDF