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

Closed
Open
Created Mar 11, 2013 by Administrator@rootOwner

500 Error on "Files" page in repos with README.asciidoc

Created by: anderiv

We have one repository that contains a README.asciidoc file in its root. When one navigates to the "Files" page, Gitlab throws a 500 error when trying to figure out how to render the file.

Below is the production.log output from the event in addition to our gitlab/ruby environment.

Processing by TreeController#show as HTML
  Parameters: {"project_id"=>"proj_name", "id"=>"master"}
  Rendered shared/_ref_switcher.html.haml (2.6ms)
  Rendered shared/_clone_panel.html.haml (0.9ms)
  Rendered tree/_head.html.haml (5.1ms)
  Rendered tree/_tree_item.html.haml (12.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.6ms)
  Rendered tree/_tree_item.html.haml (1.8ms)
  Rendered tree/_tree_item.html.haml (2.2ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (2.2ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.3ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.7ms)
  Rendered tree/_tree_item.html.haml (1.7ms)
  Rendered tree/_tree_item.html.haml (1.7ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.5ms)
  Rendered tree/_tree_item.html.haml (1.4ms)
  Rendered tree/_tree_item.html.haml (1.3ms)
  Rendered tree/_readme.html.haml (77.2ms)
  Rendered tree/_tree.html.haml (151.4ms)
  Rendered tree/show.html.haml within layouts/project_resource (157.3ms)
Completed 500 Internal Server Error in 401ms

ActionView::Template::Error (No such file or directory - asciidoc -s --backend=xhtml11 -o - -):
    10:       %pre.clean
    11:         = readme.data
    12:     - else
    13:       = raw GitHub::Markup.render(readme.name, readme.data)
  app/views/tree/_readme.html.haml:13:in `_app_views_tree__readme_html_haml__959240324_134607490'
  app/views/tree/_tree.html.haml:41:in `_app_views_tree__tree_html_haml___132129226_92026300'
  app/views/tree/show.html.haml:3:in `_app_views_tree_show_html_haml__999235202_94220190'
  app/controllers/tree_controller.rb:17:in `show'
gitlab@host:~/gitlab$ bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     Debian 6.0.6
Current User:   gitlab
Using RVM:  yes
RVM Version:    1.18.5
Ruby Version:   1.9.3p374
Gem Version:    1.8.25
Bundler Version:1.2.3
Rake Version:   10.0.3

GitLab information
Version:    4.2.0
Revision:   b0d6b29
Directory:  /var/local/home/gitlab/gitlab
DB Adapter: mysql2
URL:        http://example.com/git
HTTP Clone URL: http://example.com/git/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no

Gitolite information
Version:    v3.2-gitlab-patched-0-g2d29cf7
Admin URI:  git@localhost:gitolite-admin
Admin Key:  gitlab
Repositories:   /var/local/home/git/repositories/
Hooks:      /var/local/home/git/.gitolite/hooks/
Git:        /usr/bin/git
Assignee
Assign to
Time tracking