Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Mirror Hook don't work

Federico Beron
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2020

We try to mirroring to instance of Bitbucket server installed in our LAN using Mirror Hook.

 

We configured it in the two instances but when I commits or push changes I get the following error:

 

-repositorio.git --force --atomic +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/*
2020-02-20 17:23:41,450 ERROR [MirrorRepositoryHook:thread-3] c.a.s.i.c.HazelcastBucketedExecutor Attempt 5 of 5 at processing bucket 'MirrorRepositoryHook@1:http://ip:7990/scm/test/primer-repositorio.git' for executor 'MirrorRepositoryHook' failed:
com.atlassian.bitbucket.scm.CommandFailedException: '/usr/local/bin/git push --prune http://user:pass@ip:7990/scm/test/primer-repositorio.git --force --atomic +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/*' exited with code 128 saying: fatal: unable to find remote helper for 'http'
at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onError(DefaultCommandExitHandler.java:47)
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:111)
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.onError(GitCommandExitHandler.java:208)

 

We have access between the servers, for testing purpose we running the two instances with a user with root privilegies and the version of Bitbucket is 6.9.1.

When we curl to the remote server from the principal we get the following error:

[root@bitbucket-host ~]# curl -L http://remote-ip:7990/scm/test/primer-repositorio.git
Invalid request from host principal-ip: Note that Bitbucket does not support Git's legacy HTTP transport protocol

 

Can any help me with this? Or they know any other method that I can use to mirroring two instances of Bitbucket?

Thanks!

1 answer

0 votes
Zvika Castel
Contributor
March 12, 2020

I wish I had an answer but I got that too.

 

anybody home ? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events