Redmine: ArgumentError (A secret is required to generate an integrity hash for cookie session data)

Redmine2.4.2安装完成后,通过页面访问访问Internal error,

通过tail -f @redmine_dir/log/production_log,看到请求处理时发生错误如下:

ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb):

原因是Redmine没有发现用来保护会话安全的密钥符号,可能是忘了执行如下命令:

rake generate_secret_token


执行命令后,检查下文件

config/initializers/secret_token.rb

是否包含了config.secret_token = '...',


最后别忘了重启apache(如果你安装的服务是apache mod_passenger模块的话)

service httpd restart

你可能感兴趣的:(redmine,token,secret,ArgumentError)