500 error when I add a comment with file path
Created by: chzju
after I leave a review comment in a merge request, the diff page(like https://git.xxxxx.com/vip/mail/merge_requests/22/diffs) will be broken and report 500.
the raw review comment is like this:
ERROR [14.03.22 08:37:47][com.aowcan.com]: /com/aowcan/mail
How could I fix this issue?
my gitlab log is like following:
Completed 500 Internal Server Error in 378ms
ActionView::Template::Error (Object not found - failed to find pack entry (e19feb5fee53630c1c1d4b03444ce0746fc81966)):
31: .note-body
32: .note-text
33: = preserve do
34: = markdown(note.note, {no_header_anchors: true})
35:
36: .note-edit-form
37: = form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f|
app/models/repository.rb:152:in `method_missing'
app/models/repository.rb:162:in `blob_at'
app/helpers/gitlab_markdown_helper.rb:171:in `file_exists?'
app/helpers/gitlab_markdown_helper.rb:147:in `relative_file_path'
app/helpers/gitlab_markdown_helper.rb:127:in `rebuild_path'
app/helpers/gitlab_markdown_helper.rb:72:in `block in create_relative_links'
app/helpers/gitlab_markdown_helper.rb:70:in `each'
app/helpers/gitlab_markdown_helper.rb:70:in `create_relative_links'
lib/redcarpet/render/gitlab_html.rb:52:in `preprocess'
app/helpers/gitlab_markdown_helper.rb:51:in `render'
app/helpers/gitlab_markdown_helper.rb:51:in `markdown'
app/views/projects/notes/_note.html.haml:34:in `block in _app_views_projects_notes__note_html_haml___23577799234584145_70106593954200'
app/views/projects/notes/_note.html.haml:33:in `_app_views_projects_notes__note_html_haml___23577799234584145_70106593954200'
app/views/projects/notes/_diff_notes_with_reply.html.haml:11:in `_app_views_projects_notes__diff_notes_with_reply_html_haml__4166919278140910445_70106596174240'
app/views/projects/notes/_discussion_diff.html.haml:25:in `block in _app_views_projects_notes__discussion_diff_html_haml___2921055492455687737_70106594456980'
app/helpers/commits_helper.rb:43:in `block in each_diff_line_near'
app/helpers/commits_helper.rb:20:in `block in each_diff_line'
lib/gitlab/diff_parser.rb:41:in `block in each'
lib/gitlab/diff_parser.rb:18:in `each'
lib/gitlab/diff_parser.rb:18:in `each'
app/helpers/commits_helper.rb:19:in `each_diff_line'
app/helpers/commits_helper.rb:30:in `each_diff_line_near'
app/views/projects/notes/_discussion_diff.html.haml:13:in `_app_views_projects_notes__discussion_diff_html_haml___2921055492455687737_70106594456980'
app/views/projects/notes/_discussion.html.haml:39:in `_app_views_projects_notes__discussion_html_haml___4092529718163607957_70106594189980'
app/views/projects/notes/_notes.html.haml:7:in `block in _app_views_projects_notes__notes_html_haml___380688995549475090_70106593925300'
app/views/projects/notes/_notes.html.haml:2:in `each'
app/views/projects/notes/_notes.html.haml:2:in `_app_views_projects_notes__notes_html_haml___380688995549475090_70106593925300'
app/views/projects/notes/_notes_with_form.html.haml:2:in `_app_views_projects_notes__notes_with_form_html_haml___1307046066054194964_70106593881760'
app/views/projects/merge_requests/_show.html.haml:33:in `_app_views_projects_merge_requests__show_html_haml__3085060765401066599_70106554294620'
app/views/projects/merge_requests/diffs.html.haml:1:in `_app_views_projects_merge_requests_diffs_html_haml___1050651612343146530_70106554602220'
app/controllers/projects/merge_requests_controller.rb:54:in `diffs'
app/controllers/application_controller.rb:58:in `set_current_user_for_thread'