replication issue

58 views
Skip to first unread message

Makson Lee

unread,
Feb 22, 2023, 9:51:42 PM2/22/23
to Repo and Gerrit Discussion
I am trying to install a fresh new gerrit 3.7 master/slave, to setup the replication, i ran the following command on master,

$ ssh-keygen -m PEM -t rsa
$ ssh-copy-id gerrit2@slave
$ vi /srv/gerrit2/etc/replication.config
[remote "slave"]
  url = gerrit2@slave:/media/d/mirror/${name}.git
$ ssh -p 29418 admin@localhost gerrit plugin reload replication
$ ssh -p 29418 admin@localhost replication start --all

but then i got the following error, so how to troubleshoot it?

[2023-02-23 10:26:39,759] Replication to gerrit2@slave:/media/d/mirror/quic/lf/b2g/mozilla-b2g/gonk-misc.git started... [CONTEXT pushOneId="9fabf2a7" ]
[2023-02-23 10:26:40,081] Unexpected error during replication to gerrit2@slave:/media/d/mirror/quic/lf/b2g/mozilla-b2g/gonk-misc.git [CONTEXT pushOneId="9fabf2a7" ]
java.lang.IllegalThreadStateException: process hasn't exited
        at java.base/java.lang.ProcessImpl.exitValue(ProcessImpl.java:460)
        at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:323)
        at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:274)
        at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:146)
        at com.googlesource.gerrit.plugins.replication.PushOne.listRemote(PushOne.java:758)
        at com.googlesource.gerrit.plugins.replication.PushOne.doPushAll(PushOne.java:693)
        at com.googlesource.gerrit.plugins.replication.PushOne.generateUpdates(PushOne.java:683)
        at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:564)
        at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:555)
        at com.googlesource.gerrit.plugins.replication.PushOne.doRunPushOperation(PushOne.java:437)
        at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:405)
        at com.googlesource.gerrit.plugins.replication.PushOne.lambda$run$2(PushOne.java:391)
        at com.google.gerrit.server.util.RequestScopePropagator.lambda$cleanup$1(RequestScopePropagator.java:186)
        at com.google.gerrit.server.util.RequestScopePropagator.lambda$context$0(RequestScopePropagator.java:174)
        at com.google.gerrit.server.git.PerThreadRequestScope$Propagator.lambda$scope$0(PerThreadRequestScope.java:70)
        at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:394)
        at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:113)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:612)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)

Makson Lee

unread,
Feb 23, 2023, 10:29:07 AM2/23/23
to Repo and Gerrit Discussion
Okay, don't know why, i restarted the server and it is working fine now.
Reply all
Reply to author
Forward
0 new messages