Defect #8962

Unknown variable or method salt when logging in

Added by Ivan Kanis almost 8 years ago. Updated about 6 years ago.

Status:ClosedStart date:2011-08-01
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Invalid Affected version:


I am upgrading from version 1.0.3 to 1.2.1 on Debian 6.0. When I try to login I get the following error:

NameError (undefined local variable or method `salt' for #<User:0x7f029e2110b8>):
app/models/user.rb:220:in `check_password?'
app/models/user.rb:136:in `try_to_login'
app/controllers/account_controller.rb:147:in `password_authentication'
app/controllers/account_controller.rb:142:in `authenticate_user'
app/controllers/account_controller.rb:30:in `login'

Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1.1
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /home/ivan/tmp/redmine-1.2.1
Environment production
Database adapter mysql
Database schema version 20110511000000


#1 Updated by Jean-Philippe Lang almost 8 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

You did not properly migrate your database.

#2 Updated by Ivan Kanis almost 8 years ago

  • Status changed from Closed to Reopened

Hi Jean-Philippe

I ran the command:

rake db:migrate RAILS_ENV=production

I am thinking maybe I should migrate to 1.1 then 1.2?

#3 Updated by Jean-Baptiste Barth almost 8 years ago

No need to upgrade on 1.1 before ; make sure you run the production environment on your webserver, your script/about informations look fine.

#4 Updated by Ivan Kanis almost 8 years ago


I do run the production environment. I use the following command to test:

ruby script/server -e production

#5 Updated by Anonymous about 6 years ago

So... did you resolve the problem eventually? Does the problematic installation still exist, for further debugging? If not, it probably makes little sense to keep this open, as it is not clear how to discover what went wrong. It is not even clear that this is a general issue in Redmine, or a one time problem, and even less clear whether any of this would still be relevant for Redmine 2.3 and newer...

#6 Updated by Ivan Kanis about 6 years ago

You can close this.

#7 Updated by Toshi MARUYAMA about 6 years ago

  • Status changed from Reopened to Closed

Ivan Kanis wrote:

You can close this.

Thank you for your feedback.

Also available in: Atom PDF