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
  • Merge requests
  • !10429

Merged
Created Apr 27, 2017 by Administrator@rootOwner

Wrong method call on notify_post_receive.

  • Overview 0
  • Commits 1
  • Changes 2

Created by: lleoni

GitLab upgrade to 9.0 or 9.1 cause an error on notify_post_receive invocation. Every push gives the following error :

application.log stack trace

Started POST "/api/v4/internal/notify_post_receive" for 127.0.0.1 at 2017-04-27 07:52:39 +0200

NoMethodError (undefined method 'render_api_error' for #<#<Class:0x007fce2edf76f0>:0x007fce1d030758>
Did you mean?  render_api_error!
               render_spam_error!):
/opt/gitlab/embedded/service/gitlab-rails/lib/api/internal.rb:143:in  'rescue in block (2 levels) in <class:Internal>'

File lib/api/internal.rb contains wrong method call

 begin
     Gitlab::GitalyClient::Notifications.new(project.repository).post_receive
       rescue GRPC::Unavailable => e
         render_api_error(e, 500)
 end

instead of

  begin
      Gitlab::GitalyClient::Notifications.new(project.repository).post_receive
        rescue GRPC::Unavailable => e
          render_api_error!(e, 500)
  end
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/lleoni/fix-notify-post-receive