无法在redmine中打开项目

时间:2013-04-01 18:14:39

标签: ruby-on-rails redmine

当我打开项目时,我会看到500 Internal error

在日志文件中我可以看到下一个信息:

Started GET "/redmine/projects/xxx" for IP at Mon Apr 01 21:07:24 +0300 2013
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"xxx"}
  Current user: user_id (id=1)
  Rendered projects/show.html.erb within layouts/base (41.9ms)
Completed 500 Internal Server Error in 83ms

ActionView::Template::Error (undefined method `project_calendar_path' for #<#<Class:0xb4fb34ac>:0xb4f447c8>):
    52:     <p>
    53:       <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
    54:       <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
    55:         | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
    56:       <% end %>
    57:       <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
    58:         | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
  app/views/projects/show.html.erb:55:in `_app_views_projects_show_html_erb__145812006__629340778'
  app/controllers/projects_controller.rb:165:in `show'

Beofre上次升级没有出现这样的问题:(当我说升级时我的意思是什么?我在我的Ubuntu 12.04服务器上使用apt-get upgrade

这是上次升级的内容

http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main redmine-sqlite all 2.3.0+dfsg1-6~precise+1 [12.5 kB]        
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main redmine-mysql all 2.3.0+dfsg1-6~precise+1 [12.5 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-rails-3.2 all 3.2.13-1~precise+1 [3,378 B]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-railties-3.2 all 3.2.13-2~precise+1 [127 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-actionmailer-3.2 all 3.2.13-1~precise+1 [22.2 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-activeresource-3.2 all 3.2.13-1~precise+1 [38.3 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-actionpack-3.2 all 3.2.13-2~precise+1 [297 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-activerecord-3.2 all 3.2.13-2~precise+1 [300 kB]
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-activemodel-3.2 all 3.2.13-1~precise+1 [45.5 kB]              
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-activesupport-3.2 all 3.2.13-1~precise+1 [296 kB]             
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main ruby-rack-openid all 1.3.1-1~precise+2 [5,970 B]                   
http://ppa.launchpad.net/ondrej/redmine/ubuntu/ precise/main redmine all 2.3.0+dfsg1-6~precise+1 [4,250 kB]                     

我不知道红宝石,所以我根本不知道如何解决它:(

1 个答案:

答案 0 :(得分:0)

我找到了另一个解决方案,我应该做的一切是

rm -rf /var/cache/redmine/default/*

并重启redmine

P.S。感谢包维护者