Closed okkez closed 5 years ago
こちらでもチケット作成時に、500エラーが必ず発生しています。
チケット作成ボタンを押下すると以下のエラーが出ていました。
Started POST "/redmine/projects/test-niko/issues" for 10.xx.xx.xx at 2018-08-27 12:39:33 +0900
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"C6H7jdvLqyoLmQvveNoMCIm1Fs+9w44mwVx6ktWeJPBft5y3MkZyF22IKUoRjmTL376pCwEuVA62Z2xHt17nig==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "tracker_id"=>"6", "subject"=>"チケット作成テスト", "description"=>"", "status_id"=>"1", "priority_id"=>"4", "assigned_to_id"=>"157", "parent_issue_id"=>"", "start_date"=>"2018-08-27", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "watcher_user_ids"=>[""]}, "issue_template"=>"", "template_search_filter"=>"", "pwfmt_select_format"=>"textile", "pwfmt"=>{"formats"=>{"issue_description"=>"textile"}}, "was_default_status"=>"1", "commit"=>"作成", "project_id"=>"test-niko"}
Current user: test (id=157)
Rendered mailer/_issue.text.erb (9.4ms)
Rendered mailer/issue_add.text.erb within layouts/mailer (16.4ms)
Rendered mailer/_issue.html.erb (3.0ms)
Rendered mailer/issue_add.html.erb within layouts/mailer (9.5ms)
Redirected to http://10.xx.xx.xx/redmine/issues/248957
Completed 302 Found in 612ms (ActiveRecord: 171.0ms)
Started GET "/redmine/issues/248957" for 10.xx.xx.xx at 2018-08-27 12:39:34 +0900
Processing by IssuesController#show as HTML
Parameters: {"id"=>"248957"}
Current user: test (id=157)
Rendered issues/_action_menu.html.erb (11.0ms)
Rendered plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb (258.9ms)
Rendered issues/show.html.erb within layouts/base (336.2ms)
Completed 500 Internal Server Error in 439ms (ActiveRecord: 45.3ms)
ActionView::Template::Error (undefined method `display_score?' for #<#<Class:0x00007f1456e075d8>:0x00007f144c572dc8>
Did you mean? display_comments_tree):
1: <% if display_score? %>
2: <%
3: duration = nil
4: ActiveSupport::Notifications.subscribe("groonga.similar.search") do |*args|
plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb:1:in `_plugins_full_text_search_app_views_issues_full_text_search__view_issues_show_description_bottom_html_erb__336950841572077697_69862578822200'
lib/redmine/hook/view_listener.rb:59:in `block (2 levels) in render_on'
lib/redmine/hook/view_listener.rb:57:in `map'
lib/redmine/hook/view_listener.rb:57:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:96:in `call_hook'
app/views/issues/show.html.erb:97:in `_app_views_issues_show_html_erb___2971280503261266164_69862578453100'
app/controllers/issues_controller.rb:106:in `block (2 levels) in show'
app/controllers/issues_controller.rb:99:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Backで戻った後にチケット一覧を見ると、チケットは作成出来ているようです。 ただし、そのチケットを参照しようとすると以下の500エラーが出て、表示できません。
Started GET "/redmine/issues/248957" for 10.xx.xx.xx at 2018-08-27 13:14:17 +0900
Processing by IssuesController#show as HTML
Parameters: {"id"=>"248957"}
Current user: test (id=157)
Rendered issues/_action_menu.html.erb (7.7ms)
Rendered plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb (288.8ms)
Rendered issues/show.html.erb within layouts/base (331.0ms)
Completed 500 Internal Server Error in 384ms (ActiveRecord: 37.1ms)
ActionView::Template::Error (undefined method `display_score?' for #<#<Class:0x00007f1456e075d8>:0x00007f144e3ef080>
Did you mean? display_comments_tree):
1: <% if display_score? %>
2: <%
3: duration = nil
4: ActiveSupport::Notifications.subscribe("groonga.similar.search") do |*args|
plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb:1:in `_plugins_full_text_search_app_views_issues_full_text_search__view_issues_show_description_bottom_html_erb__336950841572077697_69862578822200'
lib/redmine/hook/view_listener.rb:59:in `block (2 levels) in render_on'
lib/redmine/hook/view_listener.rb:57:in `map'
lib/redmine/hook/view_listener.rb:57:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:96:in `call_hook'
app/views/issues/show.html.erb:97:in `_app_views_issues_show_html_erb___2971280503261266164_69862578453100'
app/controllers/issues_controller.rb:106:in `block (2 levels) in show'
app/controllers/issues_controller.rb:99:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
実行環境はこちらです。 Redmine 3.4.3 redmine_full_text_search v0.7.3 PGroonga 2.1.1 ruby 2.3.7p456 Rails 4.2.8 PostgreSQL 10.5 CentOS Linux release 7.5.1804 (Core)
PostgreSQLは公式のyumリポジトリを追加してインストール。 PGroongaもyumでインストール。
また、Redmineの状態は以下です。
Environment:
Redmine version 3.4.6.stable.17473
Ruby version 2.3.7-p456 (2018-03-28) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.7.14
Git 2.16.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
full_text_search 0.7.2
periodictask 3.2.1
redmine_banner 0.1.2
redmine_checklists 3.1.11
redmine_default_custom_query 1.3.0
redmine_favorite_projects 2.0.3
redmine_issue_badge 0.0.6
redmine_issue_templates 0.2.0
redmine_local_avatars 1.0.3
redmine_logs 0.1.1
redmine_niko_cale 1.1.3-dev
redmine_people 1.3.2
redmine_persist_wfmt 1.1.0
redmine_pivot_table 0.0.6
redmine_theme_changer 0.3.1
redmine_wiki_extensions 0.8.1
redmine_wiki_lists 0.0.9
redmine_work_time 0.3.4
sidebar_hide 0.0.8
view_customize 1.1.4
また、プラグインの設定で「スコアを表示」はOFFの状態です。
他のプラグインで display_score
を使用しているものがあるのか確認したところ、
以下の結果となり、他プラグインには存在しないなので、issueのタイトルとは異なるので、別途issue挙げることにします。
# find plugins -type f | xargs grep display_score
バイナリファイル plugins/full_text_search/.git/objects/pack/pack-80b3d37bafd17610dc6c6306f653c0132b46ab69.pack に一致しました
plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb:<% if display_score? %>
plugins/full_text_search/app/views/issues/full_text_search/_view_issues_show_description_bottom.html.erb: <% if display_score? %>
plugins/full_text_search/app/views/search/index.html.erb: <% if display_score? %>
plugins/full_text_search/app/views/search/index.html.erb:<%- if display_score? %>
plugins/full_text_search/app/views/settings/_full_text_search.html.erb: <%= label_tag("settings[display_score]", l(:label_full_text_search_display_score)) %>
plugins/full_text_search/app/views/settings/_full_text_search.html.erb: <%= check_box_tag("settings[display_score]", "1", settings.present? && settings["display_score"] == "1") %>
plugins/full_text_search/config/locales/en.yml: label_full_text_search_display_score: Display score
plugins/full_text_search/config/locales/ja.yml: label_full_text_search_display_score: スコアを表示
plugins/full_text_search/init.rb: settings default: { display_score: "0" }, partial: "settings/full_text_search"
plugins/full_text_search/lib/full_text_search/hooks/settings_helper.rb: def display_score?
plugins/full_text_search/lib/full_text_search/hooks/settings_helper.rb: setting["display_score"] == "1"
スミマセン。
Maybe outdated.
issue/show や search/index を拡張している他のプラグインがあったときに、エラーになる可能性があるらしい。 とりあえず記録のために起票しとこ。
https://github.com/two-pack/redmine_xlsx_format_issue_exporter/issues/50