我是6个月的Redmine的一个快乐的用户。 我的计划是设置它,从不更新任何东西,以便不处理依赖和东西。
我正在使用Ubuntu服务器10.04(Apache / Passenger)禁用所有types的更新。
今天早上我开始在浏览器中出现内部错误。
日志文件说的是这样的:
Processing WelcomeController#index (for 192.168.1.23 at 2012-03-05 10:44:12) [GET] Parameters: {"action"=>"index", "controller"=>"welcome"} NoMethodError (undefined method `[]' for nil:NilClass): /app/models/setting.rb:100:in `value=' /vendor/rails/activerecord/lib/active_record/base.rb:2589:in `send' /vendor/rails/activerecord/lib/active_record/base.rb:2589:in `attributes=' /vendor/rails/activerecord/lib/active_record/base.rb:2585:in `each' /vendor/rails/activerecord/lib/active_record/base.rb:2585:in `attributes=' /vendor/rails/activerecord/lib/active_record/base.rb:2285:in `initialize' ...
我是Ruby / Rails的新手,这是我目前想了解的最后一件事情。 我怎么知道什么是错的,所以我可以尝试修复它?
哈希映射安全修复在Ubuntu的ruby包导致哈希映射具有不同的密钥顺序,随机。 但是在redmine 0.9.3中,这是ubuntu的redmine包版本,settings.rb有value = atribute访问器,它依赖于正确的属性哈希顺序(:name first,:value second)。
这里是错误和可能的修复的描述:
https://bugs.launchpad.net/ubuntu/+source/redmine/+bug/949011 http://www.redmine.org/projects/redmine/repository/revisions/8909/diff/trunk/app/models/setting .RB
看来我并不是唯一的一个。
幸运的是 – 重新启动(或重新加载)Apache只(而不是重新启动机器)确实有帮助。 有些必须重启Apache两次。 Apache错误日志也没有帮助。
http://www.redmine.org/boards/2/topics/29317 http://www.redmine.org/boards/1/topics/29209