Redmine配置问题1 --NameError in AccountController#login undefined local variable or method`salt' for
来源:互联网 发布:java swing 入门教程 编辑:程序博客网 时间:2024/05/04 05:43
Redmine安装配置过程中出现的问题1
一、主要log信息如下:
NameError in AccountController#login undefined local variable or method`salt' for #<User:0xb551ef2c>
二、在centos6.4下redmine,版本信息如下:
Redmine-2.3.4
Ruby-2.0.0
Rails-2.3.2
I have installed mongrel. When I tryingto login, it is displaying me the following error:-
undefinedlocal variable or method `salt' for #<User:0xb5624b4c>
RAILS_ROOT: /var/www/redmine
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:260:in`method_missing'
/var/www/redmine/app/models/user.rb:244:in `check_password?'
/var/www/redmine/app/models/user.rb:144:in `try_to_login'
/var/www/redmine/app/controllers/account_controller.rb:143:in`password_authentication'
/var/www/redmine/app/controllers/account_controller.rb:138:in`authenticate_user'
/var/www/redmine/app/controllers/account_controller.rb:30:in `login'
Request
Parameters:
{"password"=>"admin",
"authenticity_token"=>"9EqEHbvAC7ly+aIwbdmV5dJ7Ns+uJUUPmBox3aMhBg4=",
"login"=>"Login \302\273",
"username"=>"admin"}
Show session dump
Response
Headers:
{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}
三、解决办法:
(1)先执行sudoRAILS_ENV=production rake db:migrate
(2)再sudoRAILS_ENV=production rake redmine:load_default_data
- Redmine配置问题1 --NameError in AccountController#login undefined local variable or method`salt' for
- undefined local variable or method `version_requirements' for #
- rake aborted! undefined local variable or method `version_requirements' for #<Rails::GemDependency:0
- [!] Invalid `Podfile` file: undefined local variable or method `use_frameworks' for #<Pod::Podfile:0
- 解决【Undefined variable: HTTP_RAW_POST_DATA in.....】的问题
- ruby中undefined method ‘XXX' for 问题
- static variable in method
- undefined function or variable 'matlabrc'
- Undefined function or variable 'caffe_'
- 关于MATLAB函数不可用问题。??? Undefined function or method 'minfo' for input arguments of type 'double'.
- ecshop Undefined variable: data in 的问题处理方法
- Gobal variable & Local Variable in orchestration
- Partial mock local private method or public method in the class and suppress static initial block
- undefined method `scaffold’or `paginate’
- 问题“The method getDispatcherType() is undefined for the type HttpServletRequest”
- returning address of local variable or temporary
- PHP提示Notice: Undefined variable/Warning: Missing argument 1 for
- matlab Undefined function or variable "x" 错误
- rails Router后续
- Kinect for windows的重力感应和角度马达
- POJ 1850 &&POJ 1496 Code 杨辉三角+组合数
- 使用通知中心NSNotificationCenter遇到的问题
- oracle用户资源管理
- Redmine配置问题1 --NameError in AccountController#login undefined local variable or method`salt' for
- C#基础知识系列一(goto、i++、三元运算符、ref和out、String和string、重载运算符)
- 【并查集】-HDU1213-赤裸并查最水
- struts回顾笔记
- C#基础知识系列二(值类型和引用类型、可空类型、堆和栈、装箱和拆箱)
- 标准ASCII表
- OBJECT_ID和DATA_OBJECT_ID
- DB2 用户配置_01
- 又是一年小年时---官三民四道土和尚五