项目

一般

简介

创建问题出现500错误提示,还请帮忙看看

xian song超过 3 年 之前添加

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.

Back


回复 (6)

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 Chen Snowman超过 3 年 之前添加

500错误仅是个通用内部错误。目前这个报错并不能说明更本原因。需要查看redmine目录下的log/production.log文件

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 xian song超过 3 年 之前添加

Chen Snowman 写到:

500错误仅是个通用内部错误。目前这个报错并不能说明更本原因。需要查看redmine目录下的log/production.log文件

.
我刚才复现了,将这一段时间的log整出来了,你看看这是咋回事,我半天没看明白

Started GET "/redmine/projects/qqa/issues/new” for 127.0.0.1 at 2020-10-13 10:39:01 +0800
Processing by IssuesController#new as HTML
Parameters: {“project_id"⇒“qqa”}
Current user: admin (id=1)
Rendering issues/new.html.erb within layouts/base
Rendered issues/_trackers_description.html.erb (0.3ms)
Rendered issues/_form_custom_fields.html.erb (2.4ms)
Rendered issues/_attributes.html.erb (27.4ms)
Rendered plugins/redmine_agile/app/views/issues/_issue_story_points_form.html.erb (0.1ms)
Rendered plugins/redmine_agile/app/views/issues/_agile_data_fields.html.erb (0.4ms)
Rendered plugins/scrum/app/views/scrum_hooks/issues/_form.html.erb (1.4ms)
Rendered plugins/redmine_mentions/app/views/hooks/redmine_mentions/_edit_mentionable.html.erb (0.3ms)
Rendered issues/_form.html.erb (41.3ms)
Rendered attachments/_form.html.erb (1.3ms)
Rendered issues/_watchers_form.html.erb (2.3ms)
Rendered issues/new.html.erb within layouts/base (46.2ms)
Rendered plugins/scrum/app/views/scrum_hooks/_head.html.erb (0.2ms)
Rendered plugins/scrum/app/views/scrum_hooks/_scrum_tips.html.erb (3.8ms)
Completed 200 OK in 106ms (Views: 59.3ms | ActiveRecord: 17.3ms)
Started POST "/redmine/projects/qqa/issues” for 127.0.0.1 at 2020-10-13 10:39:15 +0800
Processing by IssuesController#create as HTML
Parameters: {“utf8"⇒“✓“, “authenticity_token"⇒“xhTaHfqs5svNQjC+wDHhKv77tSOe96j+PAbWh6Esqvq8NTumP1Vxj86ACWVcF0O91P3Nc8Syyp2IL4fLRxJnIg==”, “form_update_triggered_by"⇒“”, “issue"⇒{“is_private"⇒“0”, “tracker_id"⇒“1”, “subject"⇒“SDSDDSSDDSDSDSDS”, “description"⇒“DSDSSDDSDDSSDDSDSDS”, “status_id"⇒“1”, “priority_id"⇒“2”, “assigned_to_id"⇒“”, “parent_issue_id"⇒“”, “start_date"⇒“2020-10-13”, “due_date"⇒“”, “estimated_hours"⇒“16”, “done_ratio"⇒“0”, “watcher_user_ids"⇒[“”]}, “was_default_status"⇒“1”, “commit"⇒“创建”, “project_id"⇒“qqa”}
Current user: admin (id=1)
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2149e380-c2a2-4425-bed4-888cc68e5dc4) to Async(mailers) with arguments: “Mailer”, “issue_add”, “deliver_now”, #<GlobalID:0x000000000bb54d60 @uri=#<URI::GID gid://redmine-app/User/1>>, #<GlobalID:0x000000000bb43bc8 @uri=#<URI::GID gid://redmine-app/Issue/29>>
Redirected to http://sh04362pcw1.spreadtrum.com:81/redmine/issues/29
Completed 302 Found in 51ms (ActiveRecord: 13.5ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Performing ActionMailer::DeliveryJob (Job ID: 2149e380-c2a2-4425-bed4-888cc68e5dc4) from Async(mailers) with arguments: “Mailer”, “issue_add”, “deliver_now”, #<GlobalID:0x000000000b954510 @uri=#<URI::GID gid://redmine-app/User/1>>, #<GlobalID:0x000000000b94c928 @uri=#<URI::GID gid://redmine-app/Issue/29>>
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendering mailer/issue_add.text.erb within layouts/mailer
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendered mailer/_issue.text.erb (4.7ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendered mailer/issue_add.text.erb within layouts/mailer (5.1ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendering mailer/issue_add.html.erb within layouts/mailer
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendered mailer/_issue.html.erb (1.2ms)
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Rendered mailer/issue_add.html.erb within layouts/mailer (1.6ms)
Started GET "/redmine/issues/29” for 127.0.0.1 at 2020-10-13 10:39:15 +0800
Processing by IssuesController#show as HTML
Parameters: {“id"⇒“29”}
[ActiveJob] [ActionMailer::DeliveryJob] [2149e380-c2a2-4425-bed4-888cc68e5dc4] Performed ActionMailer::DeliveryJob (Job ID: 2149e380-c2a2-4425-bed4-888cc68e5dc4) from Async(mailers) in 19.91ms
Current user: admin (id=1)
Rendering issues/show.html.erb within layouts/base
Rendered issues/_action_menu.html.erb (2.0ms)
Rendered plugins/redmine_agile/app/views/issues/_issue_story_points.html.erb (1.1ms)
Rendered plugins/redmine_agile/app/views/issues/_agile_data_labels.html.erb (1.3ms)
Rendered plugins/scrum/app/views/scrum_hooks/issues/_show.html.erb (0.2ms)
Rendered plugins/custom_tables/app/views/issues/_custom_tables.html.erb (2.1ms)
Rendered plugins/redmine_recurring_tasks/app/views/recurring_tasks/issues/_bottom.html.erb (89.7ms)
Rendered issues/show.html.erb within layouts/base (105.9ms)
Completed 500 Internal Server Error in 137ms (ActiveRecord: 13.3ms)

ActionView::Template::Error (Mysql2::Error: Table 'bitnami_redmine.recurring_tasks’ doesn’t exist: SHOW FULL FIELDS FROM `recurring_tasks`):
3: <hr />
4:
5: <div class=“redmine_recurring_tasks">
6: <% if User.current.allowed_to?(:manage_schedule, @project) && (@issue.recurring_task_root.nil? || @issue.recurring_task_root.issue == @issue) >
7: <div class=“contextual">
8: <
if @issue.recurring_task.present? %>
9: <a href=”<%= edit_recurring_task_path(@issue.recurring_task_root.id) %>”><%= l(:button_change) %></a>

plugins/redmine_recurring_tasks/lib/redmine_recurring_tasks/patches/issue_patch.rb:13:in `recurring_task_root’
plugins/redmine_recurring_tasks/app/views/recurring_tasks/issues/_bottom.html.erb:6:in `_plugins_redmine_recurring_tasks_app_views_recurring_tasks_issues__bottom_html_erb__81823722_124122400’
lib/redmine/hook/view_listener.rb:61:in `block (2 levels) in render_on’
lib/redmine/hook/view_listener.rb:59:in `map’
lib/redmine/hook/view_listener.rb:59:in `block in render_on’
lib/redmine/hook.rb:63:in `block (2 levels) in call_hook’
lib/redmine/hook.rb:63:in `each’
lib/redmine/hook.rb:63:in `block in call_hook’
lib/redmine/hook.rb:60:in `tap’
lib/redmine/hook.rb:60:in `call_hook’
lib/redmine/hook.rb:98:in `call_hook’
app/views/issues/show.html.erb:99:in `_app_views_issues_show_html_erb__716657107_125165800’
app/controllers/issues_controller.rb:107:in `block (2 levels) in show’
app/controllers/issues_controller.rb:99:in `show’
lib/redmine/sudo_mode.rb:65:in `sudo_mode’

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 Chen Snowman超过 3 年 之前添加

看样子是你安装了recurring_tasks插件,但貌似这个插件安装没有成功。 你可以再执行下 bundle exec rake redmine:plugins:migrate RAILS_ENV=production 试试

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 xian song超过 3 年 之前添加

Chen Snowman 写到:

看样子是你安装了recurring_tasks插件,但貌似这个插件安装没有成功。 你可以再执行下 bundle exec rake redmine:plugins:migrate RAILS_ENV=production 试试

真是高手,你们真是太牛太强大了,果然是这个,不知道这个log一般怎么看出什么问题,还请专家老师指教

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 Chen Snowman超过 3 年 之前添加

...
Rendered plugins/redmine_agile/app/views/issues/_agile_data_labels.html.erb (1.3ms)
Rendered plugins/scrum/app/views/scrum_hooks/issues/_show.html.erb (0.2ms)
Rendered plugins/custom_tables/app/views/issues/_custom_tables.html.erb (2.1ms)
Rendered plugins/redmine_recurring_tasks/app/views/recurring_tasks/issues/_bottom.html.erb (89.7ms)
Rendered issues/show.html.erb within layouts/base (105.9ms)
Completed 500 Internal Server Error in 137ms (ActiveRecord: 13.3ms)

ActionView::Template::Error (Mysql2::Error: Table 'bitnami_redmine.recurring_tasks’ doesn’t exist: SHOW FULL FIELDS FROM `recurring_tasks`):
3: <hr />
4:
5: <div class=“redmine_recurring_tasks">
6: <% if User.current.allowed_to?(:manage_schedule, @project) && (@issue.recurring_task_root.nil? || @issue.recurring_task_root.issue == @issue) >
7: <div class=“contextual">
8: < if @issue.recurring_task.present? %>
9: <a href=”<%= edit_recurring_task_path(@issue.recurring_task_root.id) %>”><%= l(:button_change) %></a>
...

日志中红色处说明redmine_recurring_tasks插件工作异常...

RE: 创建问题出现500错误提示,还请帮忙看看 - 由 xian song超过 3 年 之前添加

Chen Snowman 写到:

...
Rendered plugins/redmine_agile/app/views/issues/_agile_data_labels.html.erb (1.3ms)
Rendered plugins/scrum/app/views/scrum_hooks/issues/_show.html.erb (0.2ms)
Rendered plugins/custom_tables/app/views/issues/_custom_tables.html.erb (2.1ms)
Rendered plugins/redmine_recurring_tasks/app/views/recurring_tasks/issues/_bottom.html.erb (89.7ms)
Rendered issues/show.html.erb within layouts/base (105.9ms)
Completed 500 Internal Server Error in 137ms (ActiveRecord: 13.3ms)

ActionView::Template::Error (Mysql2::Error: Table 'bitnami_redmine.recurring_tasks’ doesn’t exist: SHOW FULL FIELDS FROM `recurring_tasks`):
3: <hr />
4:
5: <div class=“redmine_recurring_tasks">
6: <% if User.current.allowed_to?(:manage_schedule, @project) && (@issue.recurring_task_root.nil? || @issue.recurring_task_root.issue == @issue) >
7: <div class=“contextual">
8: < if @issue.recurring_task.present? %>
9: <a href=”<%= edit_recurring_task_path(@issue.recurring_task_root.id) %>”><%= l(:button_change) %></a>
...

日志中红色处说明redmine_recurring_tasks插件工作异常...

学习了,非常感谢哈

    (1-6/6)
    点赞0
    点赞0点赞0点赞0点赞0点赞0点赞0
    赞赏赞赏赞赏赞赏赞赏赞赏