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

Closed
Open
Created Dec 24, 2012 by Administrator@rootOwner

Can't display code-blocks

Created by: mrohnstock

Just updated from gitlab 3.1 to 4.0 and migrated from sqlite3 to mysql (as it is required now).

Followed the steps to migrate from sqlite3 to mysql and to upgrade from 3.1 to 4.0, everything went well.

bundle exec rake gitlab:check RAILS_ENV=production got executed without errors.

Gitlab works without errors, but on trying to view /help/markdown I recieve 500-error-message and in /log/productions.log the following appear:

Processing by HelpController#markdown as HTML
  Rendered help/markdown.html.haml within layouts/application (248.2ms)
Completed 500 Internal Server Error in 252ms

ActionView::Template::Error (Failed to get header.):
    69: 
    70:     %pre= %Q{```ruby\nrequire 'redcarpet'\nmarkdown = Redcarpet.new("Hello World!")\nputs markdown.to_html\n```}
    71:     %p becomes
    72:     = markdown %Q{```ruby\nrequire 'redcarpet'\nmarkdown = Redcarpet.new("Hello World!")\nputs markdown.to_html\n```}
    73: 
    74:     %h4 Emoji
    75: 
  lib/redcarpet/render/gitlab_html.rb:25:in `block_code'
  app/helpers/gitlab_markdown_helper.rb:44:in `render'
  app/helpers/gitlab_markdown_helper.rb:44:in `markdown'
  app/views/help/markdown.html.haml:72:in `_app_views_help_markdown_html_haml___1117442879566876220_59250580'

Viewing Codeblocks i.e. in issues returns 500, too, and the following appear in /log/productions.log:

Processing by IssuesController#show as HTML
  Parameters: {"project_id"=>"ralf3", "id"=>"31"}
  Rendered votes/_votes_block.html.haml (1.0ms)
  Rendered issues/show.html.haml within layouts/project_resource (109.9ms)
Completed 500 Internal Server Error in 118ms

ActionView::Template::Error (Failed to get header.):
    52:   - if @issue.description.present?
    53:     .bottom_box_content
    54:       = preserve do
    55:         = markdown @issue.description
    56: 
    57: 
    58: .issue_notes.voting_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue"
  lib/redcarpet/render/gitlab_html.rb:25:in `block_code'
  app/helpers/gitlab_markdown_helper.rb:44:in `render'
  app/helpers/gitlab_markdown_helper.rb:44:in `markdown'
  app/views/issues/show.html.haml:55:in `block in _app_views_issues_show_html_haml___2188061472299518258_51284840'
  app/views/issues/show.html.haml:54:in `_app_views_issues_show_html_haml___2188061472299518258_51284840'
  app/controllers/issues_controller.rb:39:in `show'
Assignee
Assign to
Time tracking