![我的帳戶頁面上出現Redmine 500內部伺服器錯誤](https://rvso.com/image/658763/%E6%88%91%E7%9A%84%E5%B8%B3%E6%88%B6%E9%A0%81%E9%9D%A2%E4%B8%8A%E5%87%BA%E7%8F%BERedmine%20500%E5%85%A7%E9%83%A8%E4%BC%BA%E6%9C%8D%E5%99%A8%E9%8C%AF%E8%AA%A4.png)
我用了這redmine安裝方法
我安裝了redmine /opt/redmine
,並檢查了我的登入信息/opt/redmine/current/log/production.log
我最近從 2.5.2.stable.13345 升級到 2.5.3.stable.14266
My install info. Environment: Redmine version 2.5.3.stable.14266 Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux] Rails version 3.2.19 Environment production Database adapter Mysql2 SCM: Subversion 1.8.8 Git 1.9.1 Filesystem
Redmine plugins: redmine_agile 1.3.2 redmine_graphs 0.1.0 sidebar_hide 0.0.7
我的生產尾巴.log
Completed 500 Internal Server Error in 42.6ms
ActionView::Template::Error (cannot load such file -- tzinfo/definitions/Europe/London):
1: <%= labelled_fields_for :pref, @user.pref do |pref_fields| >
2: <p><= pref_fields.check_box :hide_mail ></p>
3: <p><= pref_fields.time_zone_select :time_zone, nil, :include_blank => true ></p>
4: <p><= pref_fields.select :comments_sorting,[[l(:label_chronological_order), 'asc'],[l(:label_reverse_chronological_order), 'desc']] ></p>
5: <p><= pref_fields.check_box :warn_on_leaving_unsaved ></p>
6: < end %>
lib/redmine/views/labelled_form_builder.rb:42:in `time_zone_select'
app/views/users/_preferences.html.erb:3:in `block in app_views_users_preferences_html_erb__1218068006107140812_70264432515560'
app/helpers/application_helper.rb:1050:in `labelled_fields_for'
app/views/users/_preferences.html.erb:1:in `_app_views_users__preferences_html_erb__1218068006107140812_70264432515560'
app/views/my/account.html.erb:43:in `block in app_views_my_account_html_erb_373455605642633520_70264429441020'
app/helpers/application_helper.rb:1043:in `labelled_form_for'
app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__373455605642633520_70264429441020'
除了「我的帳戶」頁面之外,一切似乎都正常。
我在其他地方也發現過這個問題,但沒有解決方案
和這裡
它正在尋找的文件不存在,但我不知道解決方案。任何幫助表示讚賞。
編輯1
按照下面的說明進行操作後,我遇到了新問題。
Web application could not be started
Cannot execute "/home/$USER/.rvm/gems/ruby-2.0.0-p481/gems/passenger-4.0.45/buildout/agents/SpawnPreparer": Permission denied (errno=13)
Application root
/opt/redmine/current
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/home/$USER/.rvm/gems/ruby-2.0.0-p481/wrappers/ruby
User and groups
Unknown
Environment variables
Unknown
Ulimits
Unknown
我已經四處尋找解決方案,並且檢查了所涉及的每個文件/目錄的權限和所有者。所有內容都歸同一用戶所有,我已將所有內容移至 777,但沒有任何效果。
答案1
您是否嘗試過檢查 gem 是否實際安裝?
gem list
如果未安裝,則可能是問題所在。
如果您與 Gemfile 位於同一目錄中,那麼您應該可以使用:
bundle update
如果這不起作用,那麼您可以手動安裝它。
可以找到安裝訊息這裡
gem install tzinfo
gem install tzinfo-data
然後您可能需要重新啟動應用程式伺服器。