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

Closed
Open
Created Aug 19, 2014 by Administrator@rootOwner

"Accept merge Request" Error

Created by: anrizal

Hello,

I have problem Accepting merge request via web ui.

The error log says

August 19, 2014 11:50 -> ERROR -> Command failed [1]: /usr/local/bin/git --git-dir=/home/git/gitlab-satellites/rizal/test/.git push origin master

remote: GitLab: You are not allowed to access master! remote: error: hook declined to update refs/heads/master To /home/git/repositories/rizal/test.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to '/home/git/repositories/rizal/test.git'

after a quick digging, the error cause by the following check in /home/git/gitlab-shell/lib/gitlab_update.rb

if api.allowed?('git-receive-pack', @repo_name, @actor, @ref_name, @oldrev, @newrev)

this check is define in /home/git/gitlab-shell/lib/gitlab_net.rb

But I was not sure how the code is actually doing the check, since I am not taht familiar with openssh. does it involves public key in authorized_key file?

also, if I comment out the - api.allowed?('git-receive-pack', @repo_name, @actor, @ref_name, @oldrev, @newrev) - the error does not happen. But I am not sure whether it will messed up other stuff.

Any hint and help would be apreciated. Thank you

Assignee
Assign to
Time tracking