Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

BitBucket repository clone getting hook error - but no hooks are present

We have 2 bitbucket servers running and are currently cloning projects and repositories from one to the other.  Most of the repositories and branches clone just fine, but we have some that generate errors for hooks, that don't appear to exist.

Here is the bitbucket log:

2021-07-30 12:24:07,780 INFO [hook-callback:thread-2] synchronizer @xxxxxxxx 172.xx.xx.xx "POST /scm/{Project}/{RepoName}.git/git-receive-pack HTTP/1.0" c.a.s.i.h.r.DefaultRepositoryHookService [{Project}/{RepoName}[494]] hook 'pullRequestRefGuardHook' vetoed the push request

Where or what is this hook?

This is from the profiler log

2021-07-30 13:55:45,647 | hook-callback:thread-2 | - | - | -
[7.8ms] - DefaultHookService hook callback git-pre-receive for repository 494
[7.0ms] - RepositoryHookResult com.atlassian.bitbucket.hook.repository.RepositoryHookService.preUpdate(RepositoryHookRequest)
[3.0ms] - List com.atlassian.stash.internal.repository.RepositoryHookDao.findByKeys(Collection,Collection,boolean)
[1.8ms] - com.atlassian.bitbucket.server.bitbucket-git-lfs:verify-lfs-locks-hook#preUpdate

2021-07-30 13:55:45,662 | http-nio-7990-exec-3 | @GH2RXIx835x310858x0 | synchronizer | -
[10383.6ms] - "POST /scm/{Project}/{repo}.git/git-receive-pack HTTP/1.0"
[5.5ms] - Authentication
[3.0ms] - attemptAuthentication - com.atlassian.bitbucket.server.bitbucket-access-tokens:accessTokenHttpAuthHandler
[2.2ms] - ApplicationUser com.atlassian.bitbucket.user.UserService.getUserByName(String)
[2.2ms] - InternalNormalUser com.atlassian.stash.internal.user.ApplicationUserDao.findByName(String)
[1.0ms] - attemptAuthentication - com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler
[10375.3ms] - bio: /usr/bin/git -c core.hooksPath=hooks http-backend

I have checked at the project and repository level and there are no hooks setup or enabled, external plugins have been disabled.

Thank you for any help in clearing up this error.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,223 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you