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

Closed
Open
Created Mar 23, 2014 by Administrator@rootOwner

http 500 accessing project

Created by: 7tupel

When I access a project i'm getting a 500 error. It does not matter if the project is public or not, neither if i am the owner or not. The error only happens if the repository of the project is not empty. Accessing a newly created project with an empty repo everything works well until i put something in it. Access via git push/pull works fine with no errors. Same goes for accessing the projects snippets page ore anything else that is not using to the repository.

Here the entry from my log:

ActionView::Template::Error (undefined method `sha' for nil:NilClass):
    39:         = link_to project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
    40:           Compare code
    41: 
    42:         - if @repository.readme
    43:           - readme = @repository.readme
    44:           = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
    45:             = readme.name
  app/models/repository.rb:176:in `tree'
  app/models/repository.rb:166:in `block in readme'
  app/models/repository.rb:165:in `readme'
  app/views/projects/show.html.haml:42:in `_app_views_projects_show_html_haml__2463620507634268995_70166266461320'
  app/controllers/projects_controller.rb:73:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:65:in `show'
  app/controllers/application_controller.rb:57:in `set_current_user_for_thread'

We are using gitlab version 6.6.5 newly installed yesterday from source following the official instructions. System is a clean Debian Wheezy, nothing special. Ruby version is 2.1.1

Assignee
Assign to
Time tracking