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

Closed
Open
Created Jul 22, 2014 by Administrator@rootOwner

Creating merge request fails

Created by: shabeepk

First off 馃憤 gitlab rocks!

One issue that we are facing since a few days that creating merge request creation for a specific project, suddenly started failing for us. It shows a 500 immediately without any delay showing the following errors. We're using omnibus gitlab 7.0.0.

I've tried different fixes here: https://github.com/gitlabhq/gitlabhq/issues/4888 https://github.com/gitlabhq/gitlabhq/issues/6124 https://github.com/gitlabhq/gitlabhq/issues/7183 https://github.com/gitlabhq/gitlabhq/issues/7027

Here's what shows on the production.log:

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/developers/Project/merge_requests/new?...

==> /var/log/gitlab/gitlab-rails/githost.log <==
July 16, 2014 12:05 -> ERROR -> Command failed [1]: /opt/gitlab/embedded/bin/git --git-dir=/var/opt/gitlab/git-data/gitlab-satellites/developers/Project/.git branch -D master

error: Cannot delete the branch 'master' which you are currently on.

July 16, 2014 12:05 -> ERROR -> Command failed [1]: /opt/gitlab/embedded/bin/git --git-dir=/var/opt/gitlab/git-data/gitlab-satellites/developers/Project/.git branch -D master

error: Cannot delete the branch 'master' which you are currently on.

==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 320ms

NoMethodError (undefined method `reduce' for false:FalseClass):
  app/models/commit.rb:26:in `diff_line_count'
  app/controllers/projects/merge_requests_controller.rb:94:in `new'

I don't think this issue should be closed as it is not related to Chrome version. The issue is present on FireFox too.

Assignee
Assign to
Time tracking