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

Closed
Open
Created Apr 29, 2013 by Administrator@rootOwner

Error 500 when viewing commit

Created by: mrcage

I get the following error when I want to view any commit in Gitlab 5.1 (besides that page loading sometimes is really sloooow):

Started GET "/namespace/project/commit/97f99767678e56fc4b3dc2ad5c93ecc7e4122380" for  at 2013-04-29 13:31:46 +0200
Processing by CommitController#show as HTML
  Parameters: {"project_id"=>"namespace/project", "id"=>"97f99767678e56fc4b3dc2ad5c93ecc7e4122380"}
  Rendered commit/_commit_box.html.haml (17.5ms)
  Rendered commits/_diff_head.html.haml (0.9ms)
  Rendered commits/_diffs.html.haml (36.0ms)
  Rendered commit/show.html.haml within layouts/project_resource (2713.3ms)
Completed 500 Internal Server Error in 6376ms

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 = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) if @commit.parent_id
  app/views/commits/_diffs.html.haml:43:in `block in _app_views_commits__diffs_html_haml__2089706143657244673_69184400'
  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__2089706143657244673_69184400'
  app/views/commit/show.html.haml:10:in `_app_views_commit_show_html_haml__600066445715641276_70251775799780'

My System:

[git@scm gitlab]$ time bundle exec rake gitlab:env:info RAILS_ENV=production --trace
** Invoke gitlab:env:info (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:env:info

System information
System:         CentOS release 6.4 (Final)
Current User:   git
Using RVM:      no
Ruby Version:   1.9.3p392
Gem Version:    1.8.23
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:        5.1.0
Revision:       20df7b1
Directory:      /data/scm-repositories/git/gitlab
DB Adapter:     mysql2
URL:            https://git.myserver.ch
HTTP Clone URL: https://git.myserver.ch/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP:     yes
Using Omniauth: no

GitLab Shell
Version:        1.3.0
Repositories:   /data/scm-repositories/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git

real    1m16.973s
user    0m16.894s
sys     0m3.444s

git version 1.7.11.3

My system is CentOS 6.4 x64, using NGINX as Proxy

Assignee
Assign to
Time tracking