Hello,
I am trying to replicate to
bitbucket.org from repositories in a Gerrit 2.16.7 installation over https.
Does anyone have ideas why it fails? I also tried creating a ~/.netrc file with username/password.
Thanks!
Philippe McLean
My configuration looks like:
replication.config:
[remote "bitbucket"]
push = +refs/tags/*:refs/tags/*
push = +refs/heads/*:refs/heads/*
mirror = true
projects = Test
replicateOnStartup = true
replicatePermissions = false
secure.config:
[remote "bitbucket"]
password = PASSWORD
I restart replication with:
ssh -p 29418 GERRITSERVER gerrit plugin reload replication
ssh -p 29418 GERRITSERVER replication start --wait --all
The replication.log reports:
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:544)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:362)
at com.googlesource.gerrit.plugins.replication.PushOne.listRemote(PushOne.java:557)
at com.googlesource.gerrit.plugins.replication.PushOne.doPushAll(PushOne.java:496)
at com.googlesource.gerrit.plugins.replication.PushOne.generateUpdates(PushOne.java:489)
at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:441)
at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:431)
at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:316)
at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:82)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:281)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:278)
at com.google.gerrit.server.util.RequestScopePropagator.lambda$cleanup$1(RequestScopePropagator.java:212)
at com.google.gerrit.server.util.RequestScopePropagator.lambda$context$0(RequestScopePropagator.java:191)
at com.google.gerrit.server.git.PerThreadRequestScope$Propagator.lambda$scope$0(PerThreadRequestScope.java:73)
at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:285)
at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:72)
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 com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:646)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)