hook vetoed the push request

During the development of Git Server side hook today I encountered this strange issue where I am able to commit and push the changes done in the Master branch but not able to push the changes into develop branch as it is giving some error.I see that the control is not even getting inside of onReceive method of implentation class of PreReceiveRepositoryHook. I am currently using Git 2.10.1 and bitbucket 5.4.1.  Please find part of the log and also the complete log file attached with this mail. Please let me know if you have anytime encountered this issue and have a workaround for this.

2017-10-31 17:29:59,296 DEBUG [http-nio-7990-exec-9] @1R82G9Dx1049x879x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:29:59,296 DEBUG [http-nio-7990-exec-9] @1R82G9Dx1049x879x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en]
2017-10-31 17:29:59,343 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:29:59,343 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider Authentication failed - Bad credentials
2017-10-31 17:29:59,344 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.auth.RememberMeAuthenticationFailureHandler
2017-10-31 17:29:59,346 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.rest.auth.RestAuthenticationFailureHandler
2017-10-31 17:29:59,346 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.auth.ScmAuthenticationFailureHandler
2017-10-31 17:29:59,346 DEBUG [http-nio-7990-exec-7] @1R82G9Dx1049x880x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - com.atlassian.stash.internal.auth.ScmAuthenticationFailureHandler handled authentication failure
2017-10-31 17:30:00,904 DEBUG [http-nio-7990-exec-10] @1R82G9Dx1050x881x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:30:00,947 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x881x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git receive-pack --advertise-refs --stateless-rpc /local/apps/bb_home/shared/data/repositories/2
2017-10-31 17:30:30,410 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x882x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/browse HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git cat-file -t refs/heads/master:
2017-10-31 17:30:30,421 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x882x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/browse HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git ls-tree -z -l refs/heads/master:
2017-10-31 17:30:30,432 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x882x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/browse HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git cat-file --batch
2017-10-31 17:30:33,604 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x882x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/browse HTTP/1.1" c.a.s.i.p.w.f.RequestCacheClientPageDataHandler Context bitbucket.branch.layout.actions.dropdown was required already. Ignoring.
2017-10-31 17:30:33,604 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x882x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/browse HTTP/1.1" c.a.s.i.p.w.f.RequestCacheClientPageDataHandler Context bitbucket.web.repository.clone.dialog.options was required already. Ignoring.
2017-10-31 17:30:34,057 DEBUG [http-nio-7990-exec-5] @1R82G9Dx1050x886x2 1mtx3ny 10.149.71.123 "GET /s/7a035823bd7b028a59fb52f8191d9f03-T/-872128549/41a7477/11/8d1371ba9891f954119503d22344cad2/_/download/contextbatch/js/bitbucket.page.repository.filebrowser,bitbucket.layout.files,bitbucket.layout.branch,bitbucket.layout.repository,atl.general,bitbucket.layout.base,bitbucket.layout.entity,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key no.issue.status.info and locales [en_US, en]
2017-10-31 17:30:35,188 DEBUG [http-nio-7990-exec-5] @1R82G9Dx1050x886x2 1mtx3ny 10.149.71.123 "GET /s/7a035823bd7b028a59fb52f8191d9f03-T/-872128549/41a7477/11/8d1371ba9891f954119503d22344cad2/_/download/contextbatch/js/bitbucket.page.repository.filebrowser,bitbucket.layout.files,bitbucket.layout.branch,bitbucket.layout.repository,atl.general,bitbucket.layout.base,bitbucket.layout.entity,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.guide and locales [en_US, en]
2017-10-31 17:30:35,189 DEBUG [http-nio-7990-exec-5] @1R82G9Dx1050x886x2 1mtx3ny 10.149.71.123 "GET /s/7a035823bd7b028a59fb52f8191d9f03-T/-872128549/41a7477/11/8d1371ba9891f954119503d22344cad2/_/download/contextbatch/js/bitbucket.page.repository.filebrowser,bitbucket.layout.files,bitbucket.layout.branch,bitbucket.layout.repository,atl.general,bitbucket.layout.base,bitbucket.layout.entity,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.troubleshoot and locales [en_US, en]
2017-10-31 17:30:35,189 DEBUG [http-nio-7990-exec-5] @1R82G9Dx1050x886x2 1mtx3ny 10.149.71.123 "GET /s/7a035823bd7b028a59fb52f8191d9f03-T/-872128549/41a7477/11/8d1371ba9891f954119503d22344cad2/_/download/contextbatch/js/bitbucket.page.repository.filebrowser,bitbucket.layout.files,bitbucket.layout.branch,bitbucket.layout.repository,atl.general,bitbucket.layout.base,bitbucket.layout.entity,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.query and locales [en_US, en]
2017-10-31 17:30:38,141 DEBUG [http-nio-7990-exec-3] I642806 @1R82G9Dx1050x904x1 1mtx3ny 10.149.71.123 "GET /rest/api/latest/inbox/pull-requests/count HTTP/1.1" c.a.s.i.rest.inbox.InboxResource Retrieving pull request count for user Arjun T N
2017-10-31 17:30:43,253 DEBUG [http-nio-7990-exec-7] I642806 @1R82G9Dx1050x908x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/settings HTTP/1.1" c.a.s.i.p.w.f.RequestCacheClientPageDataHandler Context bitbucket.web.repository.clone.dialog.options was required already. Ignoring.
2017-10-31 17:30:44,029 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1050x910x1 1mtx3ny 10.149.71.123 "GET /s/30c7b77960b6fa85ac7a7dcff85e63cd-T/-872128549/41a7477/11/2b8aa7ad0dee735a7f694c5554db8e18/_/download/contextbatch/js/bitbucket.page.repository.generalSettings,bitbucket.layout.repository,atl.general,bitbucket.layout.entity,bitbucket.layout.base,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.guide and locales [en_US, en]
2017-10-31 17:30:44,030 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1050x910x1 1mtx3ny 10.149.71.123 "GET /s/30c7b77960b6fa85ac7a7dcff85e63cd-T/-872128549/41a7477/11/2b8aa7ad0dee735a7f694c5554db8e18/_/download/contextbatch/js/bitbucket.page.repository.generalSettings,bitbucket.layout.repository,atl.general,bitbucket.layout.entity,bitbucket.layout.base,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.troubleshoot and locales [en_US, en]
2017-10-31 17:30:44,030 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1050x910x1 1mtx3ny 10.149.71.123 "GET /s/30c7b77960b6fa85ac7a7dcff85e63cd-T/-872128549/41a7477/11/2b8aa7ad0dee735a7f694c5554db8e18/_/download/contextbatch/js/bitbucket.page.repository.generalSettings,bitbucket.layout.repository,atl.general,bitbucket.layout.entity,bitbucket.layout.base,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.query and locales [en_US, en]
2017-10-31 17:30:45,509 DEBUG [http-nio-7990-exec-10] I642806 @1R82G9Dx1050x913x1 1mtx3ny 10.149.71.123 "GET /rest/api/latest/inbox/pull-requests/count HTTP/1.1" c.a.s.i.rest.inbox.InboxResource Retrieving pull request count for user Arjun T N
2017-10-31 17:30:50,888 DEBUG [http-nio-7990-exec-5] I642806 @1R82G9Dx1050x917x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/settings/hooks HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key stash.plugins.hooks.reject.forcepush.name and locales [en_US, en]
2017-10-31 17:30:50,941 DEBUG [http-nio-7990-exec-5] I642806 @1R82G9Dx1050x917x0 1mtx3ny 10.149.71.123 "GET /projects/GAUS/repos/gauss/settings/hooks HTTP/1.1" c.a.s.i.p.w.f.RequestCacheClientPageDataHandler Context bitbucket.web.repository.clone.dialog.options was required already. Ignoring.
2017-10-31 17:30:51,088 DEBUG [http-nio-7990-exec-9] @1R82G9Dx1050x919x1 1mtx3ny 10.149.71.123 "GET /s/baae651487bd3e5177d660b037a0de61-T/-872128549/41a7477/11/4291050797aa4097dd7a75a74b09cf56/_/download/contextbatch/js/bitbucket.page.settings.hooks,bitbucket.layout.base,bitbucket.layout.repository,bitbucket.layout.entity,atl.general,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.guide and locales [en_US, en]
2017-10-31 17:30:51,088 DEBUG [http-nio-7990-exec-9] @1R82G9Dx1050x919x1 1mtx3ny 10.149.71.123 "GET /s/baae651487bd3e5177d660b037a0de61-T/-872128549/41a7477/11/4291050797aa4097dd7a75a74b09cf56/_/download/contextbatch/js/bitbucket.page.settings.hooks,bitbucket.layout.base,bitbucket.layout.repository,bitbucket.layout.entity,atl.general,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.troubleshoot and locales [en_US, en]
2017-10-31 17:30:51,089 DEBUG [http-nio-7990-exec-9] @1R82G9Dx1050x919x1 1mtx3ny 10.149.71.123 "GET /s/baae651487bd3e5177d660b037a0de61-T/-872128549/41a7477/11/4291050797aa4097dd7a75a74b09cf56/_/download/contextbatch/js/bitbucket.page.settings.hooks,bitbucket.layout.base,bitbucket.layout.repository,bitbucket.layout.entity,atl.general,-_super/batch.js HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key bitbucket.go.search.query and locales [en_US, en]
2017-10-31 17:30:53,416 DEBUG [http-nio-7990-exec-8] I642806 @1R82G9Dx1050x920x0 1mtx3ny 10.149.71.123 "GET /rest/api/latest/inbox/pull-requests/count HTTP/1.1" c.a.s.i.rest.inbox.InboxResource Retrieving pull request count for user Arjun T N
2017-10-31 17:31:16,165 DEBUG [Caesium-1-1]  c.a.s.i.a.DefaultRememberMeService Cleaned up 0 expired remember-me tokens
2017-10-31 17:31:16,218 DEBUG [Caesium-1-2]  c.a.s.i.p.r.DefaultRescopeProcessor No empty rescopes were found
2017-10-31 17:32:39,895 DEBUG [http-nio-7990-exec-8] @1R82G9Dx1052x924x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:32:39,895 DEBUG [http-nio-7990-exec-8] @1R82G9Dx1052x924x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en]
2017-10-31 17:32:39,941 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:32:39,942 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider Authentication failed - Bad credentials
2017-10-31 17:32:39,942 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.auth.RememberMeAuthenticationFailureHandler
2017-10-31 17:32:39,942 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.rest.auth.RestAuthenticationFailureHandler
2017-10-31 17:32:39,942 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - delegating to com.atlassian.stash.internal.auth.ScmAuthenticationFailureHandler
2017-10-31 17:32:39,942 DEBUG [http-nio-7990-exec-1] @1R82G9Dx1052x925x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.s.i.a.PluginHttpAuthenticationFailureHandler onAuthenticationFailure - com.atlassian.stash.internal.auth.ScmAuthenticationFailureHandler handled authentication failure
2017-10-31 17:32:41,488 DEBUG [http-nio-7990-exec-6] @1R82G9Dx1052x926x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:32:41,531 DEBUG [http-nio-7990-exec-6] I642806 @1R82G9Dx1052x926x0 10.149.71.123 "GET /scm/gaus/gauss.git/info/refs HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git receive-pack --advertise-refs --stateless-rpc /local/apps/bb_home/shared/data/repositories/2
2017-10-31 17:32:43,270 DEBUG [http-nio-7990-exec-10] @1R82G9Dx1052x927x0 10.149.71.123 "POST /scm/gaus/gauss.git/git-receive-pack HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled
2017-10-31 17:32:43,487 DEBUG [io-pump:thread-9] I642806 @1R82G9Dx1052x927x0 10.149.71.123 "POST /scm/gaus/gauss.git/git-receive-pack HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git cat-file -p 5972085f46a8b77478f3c775babf75bc3c7face1:ws/workflow/ecltv_file_loader.py
2017-10-31 17:32:43,499 DEBUG [threadpool:thread-68] I642806 @1R82G9Dx1052x927x0 10.149.71.123 "POST /scm/gaus/gauss.git/git-receive-pack HTTP/1.1" c.a.bitbucket.scm.BaseCommand Executed /usr/bin/git diff-tree -C -r --format=%H b570c6237d3c3a5d913bb27286fc98f8afb64796 5972085f46a8b77478f3c775babf75bc3c7face1 --
2017-10-31 17:32:43,501 INFO  [threadpool:thread-68] I642806 @1R82G9Dx1052x927x0 10.149.71.123 "POST /scm/gaus/gauss.git/git-receive-pack HTTP/1.1" c.j.PythonTestcaseValidatorRepositoryHook com.atlassian.bitbucket.ServerException: An error occurred while executing an external process: Index: 0, Size: 0

org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,690 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you