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

Closed
Open
Created May 02, 2013 by Administrator@rootOwner

5-1-stable : Error 500 on read MR

Created by: Isammoc

Since 5.1, a 500 error occurs when :

  1. Dev pushes branch my_branch
  2. Dev creates a MR my_branch -> master
  3. Dev pushes additional commits on my_branch

production.log :

Started GET "/test_project/merge_requests/329" for  at 2013-05-02 15:08:01 +0200
Processing by MergeRequestsController#show as HTML
  Parameters: {"project_id"=>"test_project", "id"=>"329"}
Completed 500 Internal Server Error in 69ms

NoMethodError (undefined method `id' for nil:NilClass):
  app/models/commit.rb:24:in `id'
  lib/gitlab/git/commit.rb:107:in `init_from_grit'
  lib/gitlab/git/commit.rb:21:in `initialize'
  app/models/merge_request.rb:213:in `new'
  app/models/merge_request.rb:213:in `block in load_commits'
  app/models/merge_request.rb:213:in `map'
  app/models/merge_request.rb:213:in `load_commits'
  app/models/merge_request.rb:145:in `commits'
  app/controllers/merge_requests_controller.rb:140:in `define_show_vars'
Assignee
Assign to
Time tracking