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
  • #4117

Closed
Open
Created May 29, 2013 by Administrator@rootOwner

Can not view certain files (500 error) in 5.2

Created by: Moncader

Just upgraded from 5.0 to 5.1 and then to 5.2. After the upgrade, in all repositories when I try to view certain files (HTML, JS, JSON. Not markdown or images) I get a 500 error every time.

Started GET "PROJECT_FILE" for  at 2013-05-29 12:35:46 +0900
Processing by BlobController#show as HTML
  Parameters: {"project_id"=>"PROJECT_ID", "id"=>"FILE"}
  Rendered shared/_ref_switcher.html.haml (1.6ms)
  Rendered blob/_actions.html.haml (4.2ms)
  Rendered blob/_text.html.haml (146.8ms)
  Rendered blob/_blob.html.haml (152.5ms)
  Rendered blob/show.html.haml within layouts/project_resource (155.6ms)
Completed 500 Internal Server Error in 188ms

ActionView::Template::Error (Failed to get header.):
    9:   .file_content.code
    10:     - unless blob.empty?
    11:       %div{class: user_color_scheme_class}
    12:         = raw blob.colorize(formatter: :gitlab)
    13:     - else
    14:       %p.nothing_here_message Empty file
  app/views/blob/_text.html.haml:12:in `_app_views_blob__text_html_haml___3525449424059825839_26679200'
  app/views/blob/_blob.html.haml:28:in `_app_views_blob__blob_html_haml__2418097023736980239_25952400'
  app/views/blob/show.html.haml:4:in `_app_views_blob_show_html_haml___976820685300365293_52493540'

I've looked around the issues for similar things and every similar issue points to and old git version and reinstalling charlock_holmes. Did that, my git version is currently 1.8.2.1. Ran the gitlab check script and everything is ok.

Assignee
Assign to
Time tracking