![マイアカウントページでの Redmine 500 内部サーバーエラー](https://rvso.com/image/658763/%E3%83%9E%E3%82%A4%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%A7%E3%81%AE%20Redmine%20500%20%E5%86%85%E9%83%A8%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%82%A8%E3%83%A9%E3%83%BC.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
私の制作ログの末尾
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
その後、アプリケーション サーバーを再起動する必要がある場合があります。