2013-04-01 93 views
1

不開的項目當我打開項目,我看到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]      

我不知道紅寶石,所以我不知道如何解決它在所有:(

+0

我真的會遠離安裝任何有關PPA的導軌。分配一些時間並安裝RVM,將來會爲您節省很多麻煩。 –

+0

@AndrewWei對不起,我不明白它是什麼RVM,我該如何開始使用它?你能否提供更多信息?謝謝 – user1016265

+0

@AndrewWei,最重要的是我怎麼能擺脫目前的情況? – user1016265

回答

0

我已經找到另一種解決方案,一切我該怎麼辦是

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

和重啓redmine

PS感謝包裝維護商

+0

嗨我有同樣的問題,但它沒有幫助...我沒有這個文件夾。 –

+0

@Fincha如果你使用包,然後嘗試寫入包維護者... – user1016265