Skip to content

replicate to TFVC sometimes works and sometimes not #2

@asherungar-ceva

Description

@asherungar-ceva

Hello,

i'm trying to replicate a gerrit plugin to a microsoft TFVC which can also host git repos.
i'm using the http address + user/passwrod in secure.config.
the replication will succeed and push the code. but, after a few times - it just stops to work with error (see below).
my replication config:

[remote "codefront"]
url = http://codefront:8080/tfs/DefaultCollection/CEVA_DEV_DBG/_git/${name}
push = +refs/heads/:refs/heads/
push = +refs/tags/:refs/tags/
projects = Toolbox_try
projects = IDBTry

error log:

org.eclipse.jgit.errors.TransportException: http://codefront:8080/tfs/DefaultCollection/CEVA_DEV_DBG/_git/IDBTry: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:534)
at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:420)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:160)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1310)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1356)
at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:453)
at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:432)
at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:323)
at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:83)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:288)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:285)
at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:217)
at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:193)
at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75)
at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:292)
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:418)
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)

Thank You
Asher

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions