Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3368

Closed
Open
Created Mar 25, 2013 by Administrator@rootOwner

Commit and file content not showing (500 error)

Created by: agentsib

Hi! On weekend I update Gitlab from 4.2 to 5.0. After that if I try view commit diff, gitlab show 500 error.

Started GET "/freelance/infotable/commit/914bb32082a0f12716944eb4e759db73fbe106ba" for 127.0.0.1 at 2013-03-25 16:38:45 +0400
Processing by CommitController#show as HTML
  Parameters: {"project_id"=>"freelance/infotable", "id"=>"914bb32082a0f12716944eb4e759db73fbe106ba"}
  Rendered commits/_commit_box.html.haml (4.9ms)
  Rendered commits/_diff_head.html.haml (0.3ms)
  Rendered commits/_diffs.html.haml (4.9ms)
  Rendered commit/show.html.haml within layouts/project_resource (27.4ms)
Completed 500 Internal Server Error in 82ms

ActionView::Template::Error (could not find any magic files!):
    40:         .content
    41:           -# Skipp all non non-supported blobs
    42:           - next unless file.respond_to?('text?')
    43:           - if file.text?
    44:             = render "commits/text_file", diff: diff, index: i
    45:           - elsif file.image?
    46:             - old_file = (@commit.prev_commit.tree / diff.old_path) if [email protected]_commit.nil?
  app/views/commits/_diffs.html.haml:43:in `block in _app_views_commits__diffs_html_haml___200217106721475176_55269840'
  app/views/commits/_diffs.html.haml:17:in `each'
  app/views/commits/_diffs.html.haml:17:in `each_with_index'
  app/views/commits/_diffs.html.haml:17:in `_app_views_commits__diffs_html_haml___200217106721475176_55269840'
  app/views/commit/show.html.haml:9:in `_app_views_commit_show_html_haml__3930075678373801749_46693960'

And this, when I try read file content:

Started GET "/freelance/infotable/tree/master/index.php?_=1364215430648" for 127.0.0.1 at 2013-03-25 16:43:22 +0400
Processing by TreeController#show as JS
  Parameters: {"_"=>"1364215430648", "project_id"=>"freelance/infotable", "id"=>"master/index.php"}
  Rendered tree/_blob_actions.html.haml (3.5ms)
  Rendered tree/_blob.html.haml (60.7ms)
  Rendered tree/_tree.html.haml (68.0ms)
  Rendered tree/show.js.haml (70.4ms)
Completed 500 Internal Server Error in 112ms

ActionView::Template::Error (could not find any magic files!):
    1: .btn-group.tree-btn-group
    2:   -# only show edit link for text files
    3:   - if @tree.text?
    4:     = link_to "edit", edit_project_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit?
    5:   = link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank"
    6:   -# only show normal/blame view links for text files
  app/models/tree.rb:6:in `text?'
  app/views/tree/_blob_actions.html.haml:3:in `_app_views_tree__blob_actions_html_haml__1156386951397933011_49870460'
  app/views/tree/_blob.html.haml:7:in `_app_views_tree__blob_html_haml___3820124676779246381_54137180'
  app/views/tree/_tree.html.haml:16:in `_app_views_tree__tree_html_haml__3297380194190367640_53078840'
  app/views/tree/show.js.haml:3:in `_app_views_tree_show_js_haml___4538338000769699749_53827560'

I check all rules and settings, but I not found errors.

Help, please 😳. Thanks.

PS. Sorry for my english )

Assignee
Assign to
Time tracking