Repository Mirror Plugin for Bitbucket Server - process timed out Edited


I want to use Repository Mirror Plugin for Bitbucket Server to mirror repository from our internal bitkucket server to remote repo. Plugin is installed, enabled and configured (I've tried with https, git and ssh - in all cases the error log was the same). Our internal bitbucket (v4.12.1, git version 1.9.1) server is behind reverse proxy (apache), configuration is done according to documentation (, there's communication to WAN through squid proxy (we've got apriopriate configuration at bikbucket side, also git itself is configured to use our squid proxy for WAN communication).

The problem is to mirror repository with "Repository Mirror Plugin for Bitbucket Server", here's bitbucket log:

 ERROR [threadpool:thread-4] username @1I15U79x605x938201x0 1bo9kzh client_ip_address, reverse_proxy_ip_address "PUT /rest/api/latest/projects/~username/repos/test-repo-mirroring/settings/hooks/com.englishtown.stash-hook-mirror:mirror-repository-hook/settings HTTP/1.1" c.e.b.hook.MirrorRepositoryHook Failed to mirror repository test-repo-mirroring after 5 attempts.
com.atlassian.bitbucket.ServerException: An error occurred while executing an external process: process timed out
        at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.evaluateThrowable( ~[na:na]
        at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.onError( ~[na:na]
        at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onExit( ~[bitbucket-spi-4.12.1.jar:na]
        at com.englishtown.bitbucket.hook.PasswordHandler.onExit( ~[na:na]
        at com.atlassian.bitbucket.scm.BaseCommand.callExitHandler( ~[bitbucket-spi-4.12.1.jar:na]
        at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.internalGet( ~[bitbucket-spi-4.12.1.jar:na]
        at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get( ~[bitbucket-spi-4.12.1.jar:na]
        at ~[bitbucket-spi-4.12.1.jar:na]
        at com.englishtown.bitbucket.hook.MirrorRepositoryHook$ ~[na:na]
        at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$ [bitbucket-platform-4.12.1.jar:na]
        at java.util.concurrent.Executors$ [na:1.8.0_111]
        at [na:1.8.0_111]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( [na:1.8.0_111]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ [na:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [na:1.8.0_111]
        at [na:1.8.0_111]
        ... 1 frame trimmed
Caused by: com.atlassian.utils.process.ProcessTimeoutException: process timed out
        at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess( ~[atlassian-processutils-1.7.8.jar:na]
        at com.atlassian.utils.process.ExternalProcessImpl.finish( ~[atlassian-processutils-1.7.8.jar:na]
        at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get( ~[bitbucket-spi-4.12.1.jar:na]
        ... 10 common frames omitted

I've done troubleshooting according to vendor suggestions (

git push --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/*

and it works.

When bitbucket is trying mirror to remote repo there are no connections to our proxy server, it suggests that problems are within our internal bitbucket server.

Can you please suggest what can cause this situation? How can we debug it more detailed way?

Any suggestion very appreciated.

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

106 views 5 2
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot