Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to push after upgrade to bitbucket server 5.7.0

svn_bosch January 29, 2018

Hello,

After upgrading version 5.7.0 from 4.14, we are not able to push changes to one repository.

Commits to other repositories work fine except this one.

This is the error that we get.

$ git push -u origin bugfix/testing123
Total 0 (delta 0), reused 0 (delta 0)
remote: Communication breakdown with Bitbucket.
To https://bitbucket.company.com/scm/project/repo.git
! [remote rejected] bugfix/testing123 -> bugfix/testing123 (pre-receive hook declined)
error: failed to push some refs to 'https://user@bitbucket.company.com/scm/project/repo.git'

 

So far we've tried the following combinations.

* Disable the 'Yet another commit checker' plugin on repo level

Disable the 'Yet another commit checker' plugin on bitbucket server level

* Disable all pre-receive hooks.

* Restart the server a bunch of times.

 

Is there any other option or hint or anything? Thank you very much in advance. 

btw, https://support.atlassian.com/support does not work. It takes me to edit my profile.

2 answers

1 accepted

0 votes
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2018

Hi Sushant,

It could be that due to some error the pre-receive hook is considered as having returned the "declined" status - I'd try to push again and then look at the <BitbucketHome>/log/atlassian-bitbucket.log file to see which (if any) error occurs.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

svn_bosch January 29, 2018

hi Christian,

It started working after we upgraded the stash-eol-check plugin.

Best regards,

Sushant

0 votes
svn_bosch January 29, 2018

hi Christian,

Thanks for your reply. The log shows the following exception.

2018-01-29 12:22:37,784 ERROR [threadpool:thread-1] c.a.s.i.c.DefaultTransferableStateManager Error while processing asynchronous task
java.lang.NoSuchMethodError: com.atlassian.bitbucket.io.LineReaderOutputHandler.<init>(Ljava/lang/String;)V
at com.pbaranchikov.stash.checks.RealParentResolver$MultilineReader.<init>(RealParentResolver.java:98)
at com.pbaranchikov.stash.checks.RealParentResolver.getNearestBranches(RealParentResolver.java:77)
at com.pbaranchikov.stash.checks.RealParentResolver.getRealParent(RealParentResolver.java:46)
at com.pbaranchikov.stash.checks.EolCheckHook.processChange(EolCheckHook.java:177)
at com.pbaranchikov.stash.checks.EolCheckHook.onReceive(EolCheckHook.java:92)
at com.atlassian.stash.internal.plugin.legacy.PreReceiveRepositoryHookAdapter.preUpdate(PreReceiveRepositoryHookAdapter.java:29)
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.lambda$preUpdate$2(CompositeRepositoryHook.java:76)
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.handlingExceptions(CompositeRepositoryHook.java:92)
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.preUpdate(CompositeRepositoryHook.java:75)
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.preUpdate(DefaultRepositoryHookService.java:798)
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.preUpdate(DefaultRepositoryHookService.java:411)
at com.atlassian.stash.internal.hook.DefaultBuiltInHookHandlerFactory.lambda$preReceive$0(DefaultBuiltInHookHandlerFactory.java:36)
at com.atlassian.stash.internal.scm.git.GitQuarantineHelper.lambda$null$0(GitQuarantineHelper.java:89)
at com.atlassian.stash.internal.hook.DefaultHookService.doHandleRequest(DefaultHookService.java:303)
at com.atlassian.stash.internal.hook.DefaultHookService.handleRequest(DefaultHookService.java:289)
at com.atlassian.stash.internal.hook.DefaultHookService.handleRawRequest(DefaultHookService.java:230)
at com.atlassian.stash.internal.hook.DefaultHookService$1.lambda$run$0(DefaultHookService.java:197)
at com.atlassian.stash.internal.concurrent.DefaultTransferableStateManager$StateTransferringRunnable.run(DefaultTransferableStateManager.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 26 frames trimmed

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events