質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

Q&A

解決済

1回答

13799閲覧

「個人設定」や「設定」で Internal error (Redmine 500 error)

退会済みユーザー

退会済みユーザー

総合スコア0

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

0グッド

0クリップ

投稿2017/12/04 14:02

###質問内容
ラズパイを用いてredmineを構築しました。
しかし、ログインして「個人設定」や「設定」に移動しようとすると次の表示が出ます。

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error.

何が問題なのか、どうすればよいのか教えてください。

###apache2/error.logの内容

[ 2017-12-04 22:17:03.2480 703/76025430 age/Cor/CoreMain.cpp:819 ]: Checking whether to disconnect long-running connections for process 6026, application /var/www/redmine App 1447 stderr: Started GET "/my/account" for 192.168.11.6 at 2017-12-04 22:23:26 +0900 App 1447 stderr: Processing by MyController#account as HTML App 1447 stderr: Current user: admin (id=1) App 1447 stderr: Rendered my/account.html.erb within layouts/base (53.1ms) App 1447 stderr: Completed 500 Internal Server Error in 122ms (ActiveRecord: 41.3ms) App 1447 stderr: App 1447 stderr: ActionView::Template::Error (Permission denied @ dir_s_mkdir - /var/www/redmine/tmp/cache/E6D): App 1447 stderr: 22: <p><%= f.text_field :lastname, :required => true %></p> App 1447 stderr: 23: <p><%= f.text_field :mail, :required => true %></p> App 1447 stderr: 24: <% unless @user.force_default_language? %> App 1447 stderr: 25: <p><%= f.select :language, lang_options_for_select %></p> App 1447 stderr: 26: <% end %> App 1447 stderr: 27: <% if Setting.openid? %> App 1447 stderr: 28: <p><%= f.text_field :identity_url %></p> App 1447 stderr: lib/redmine/i18n.rb:113:in `languages_options' App 1447 stderr: app/helpers/application_helper.rb:1042:in `lang_options_for_select' App 1447 stderr: app/views/my/account.html.erb:25:in `block in _app_views_my_account_html_erb___1045602386_20513136' App 1447 stderr: app/helpers/application_helper.rb:1052:in `labelled_form_for' App 1447 stderr: app/views/my/account.html.erb:14:in `_app_views_my_account_html_erb___1045602386_20513136' App 1447 stderr: lib/redmine/sudo_mode.rb:63:in `sudo_mode' App 1447 stderr: App 1447 stderr: App 1447 stderr: Started GET "/admin/plugins" for 192.168.11.6 at 2017-12-04 22:26:00 +0900 App 1447 stderr: Processing by AdminController#plugins as HTML App 1447 stderr: Current user: admin (id=1) App 1447 stderr: Rendered admin/plugins.html.erb within layouts/admin (1.1ms) App 1447 stderr: Rendered admin/_menu.html.erb (23.9ms) App 1447 stderr: Rendered layouts/base.html.erb (55.2ms) App 1447 stderr: Completed 200 OK in 180ms (Views: 84.3ms | ActiveRecord: 72.5ms) App 1447 stderr: Started GET "/users/1" for 192.168.11.6 at 2017-12-04 22:26:03 +0900 App 1447 stderr: Processing by UsersController#show as HTML App 1447 stderr: Parameters: {"id"=>"1"} App 1447 stderr: Current user: admin (id=1) App 1447 stderr: Rendered users/show.html.erb within layouts/base (30.4ms) App 1447 stderr: Completed 200 OK in 215ms (Views: 59.9ms | ActiveRecord: 68.7ms) App 1447 stderr: Started GET "/my/account" for 192.168.11.6 at 2017-12-04 22:26:04 +0900 App 1447 stderr: Processing by MyController#account as HTML App 1447 stderr: Current user: admin (id=1) App 1447 stderr: Rendered my/account.html.erb within layouts/base (54.3ms) App 1447 stderr: Completed 500 Internal Server Error in 139ms (ActiveRecord: 56.8ms) App 1447 stderr: App 1447 stderr: ActionView::Template::Error (Permission denied @ dir_s_mkdir - /var/www/redmine/tmp/cache): App 1447 stderr: 22: <p><%= f.text_field :lastname, :required => true %></p> App 1447 stderr: 23: <p><%= f.text_field :mail, :required => true %></p> App 1447 stderr: 24: <% unless @user.force_default_language? %> App 1447 stderr: 25: <p><%= f.select :language, lang_options_for_select %></p> App 1447 stderr: 26: <% end %> App 1447 stderr: 27: <% if Setting.openid? %> App 1447 stderr: 28: <p><%= f.text_field :identity_url %></p> App 1447 stderr: lib/redmine/i18n.rb:113:in `languages_options' App 1447 stderr: app/helpers/application_helper.rb:1042:in `lang_options_for_select' App 1447 stderr: app/views/my/account.html.erb:25:in `block in _app_views_my_account_html_erb___1045602386_20513136' App 1447 stderr: app/helpers/application_helper.rb:1052:in `labelled_form_for' App 1447 stderr: app/views/my/account.html.erb:14:in `_app_views_my_account_html_erb___1045602386_20513136' App 1447 stderr: lib/redmine/sudo_mode.rb:63:in `sudo_mode'

###試したこと
log/production.logの内容

Started GET "/" for 192.168.11.6 at 2017-12-03 22:12:58 +0900 Processing by WelcomeController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 4.7ms) ActiveRecord::StatementInvalid (Mysql2::Error: Table 'redmine.settings' doesn't exist: SHOW FULL FIELDS FROM `settings`): app/models/setting.rb:203:in `check_cache' app/controllers/application_controller.rb:90:in `user_setup' Migrating to Setup (1) Migrating to IssueMove (2) Migrating to IssueAddNote (3) ------文字数の関係で省略 省略部分は下の画像にあります。-------- Migrating to AddProjectsDefaultVersionId (20151031095005) Migrating to ForcePasswordResetDuringSetup (20160404080304) Migrating to RemovePositionDefaults (20160416072926) Migrating to AddRolesSettings (20160529063352)

1枚目
2枚目
3枚目
4枚目
5枚目
6枚目
7枚目
8枚目

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

エラーログに

App 1447 stderr: ActionView::Template::Error (Permission denied @ dir_s_mkdir - /var/www/redmine/tmp/cache/E6D):

とありますから、そもそも /var/www/redmine/tmp/cache/E6D(あるいはその上位の cache)に対する権限がない状態になっているということでしょう。
※redmine 自身の導入後チェックで警告が出るのでは?

まずは ls -la /var/www/redmine/tmp/cache して、そのディレクトリへの移動・書き込み権限が redmine の動作ユーザー(Web サーバと同じユーザ・グループかな?)に与えられているかどうか確認しましょう。

投稿2017/12/05 01:00

tacsheaven

総合スコア13703

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2017/12/05 09:51

ありがとうございます。 確認したところ、redmineユーザーに権限が与えられていませんでした。 権限を与え、無事動くようになりました。 ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問