Redmine,全新安装:无法为AnonymousUser混乱分配受保护的属性:登录

时间:2018-06-27 14:10:11

标签: ruby-on-rails apache2 passenger redmine

自从我开始安装RedMine以来,我一直遇到问题,但是我已经阅读了所有内容。 现在-重新安装并访问网站后,我得到乘客错误屏幕。 每个刷新错误ID都会随机化,因此我在apache中搜索了/var/log/apache2/error.log,在乘客中挖掘了/usr/share/redmine/log/production.log

因此它的输出是

Error.log

[ E 2018-06-27 16:00:11.8755 18052/Tt age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /usr/share/redmine: The application process exited prematurely.
Error ID: 75cee840
Error details saved to: /tmp/passenger-error-5eiekf.html
[ E 2018-06-27 16:00:11.8780 18052/Ta age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 75cee840. Please see earlier logs for details about the error.

Production.log

Migrating to RemovePositionDefaults (20160416072926)
Migrating to AddRolesSettings (20160529063352)
Started GET "/" for 127.0.0.1 at 2018-06-27 14:01:37 +0200
Processing by WelcomeController#index as */*
WARNING: Can't mass-assign protected attributes for AnonymousUser: login
app/models/user.rb:750:in `anonymous'
app/models/user.rb:742:in `current'
app/controllers/application_controller.rb:93:in `user_setup'
Current user: anonymous
Rendered welcome/index.html.erb within layouts/base (43.1ms)
Completed 200 OK in 451ms (Views: 276.7ms | ActiveRecord: 41.3ms)

我也尝试过在日志中访问该html,但是我不知道如何使用,如果我少用它,我会弄乱html文件。

只有我知道匿名用户出错,但是默认情况下不是这样吗?

此外,如果我需要为您提供更多信息,我也会这样做

更新 我通过将ruby降级到2.3.3并“重做”安装redmine的ruby阶段的所有配置来解决它。

0 个答案:

没有答案