My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3528: Cannot replicate to slave
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by peichi.c...@gmail.com, Aug 21, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1. master: modify file, git add; git commit; git push origin HEAD:/refs/for/master

2. replication.config
[remote "pubmirror"]
url = ssh://jenkins-jb@hctest02:29418/${name}.git
push = +refs/tags/*:refs/tags/*
push = +refs/heads/*:refs/heads/*
createMissingRepositories = true


What is the expected output? What do you see instead?
Replicate updated change from master to slave. However, replication error repeated.

Please provide any additional information below. (error message from master:[git_site]/logs/replication_log)

[2015-08-21 18:42:45,930] [09c908e2] Replication to ssh://jenkins-jb@hctest02:29418/AAA.git started...

[2015-08-21 18:42:45,931] [09c908e2] Push to ssh://jenkins-jb@hctest02:29418/AAA.git references: [RemoteRefUpdate[remoteName=refs/heads/master, NOT_ATTEMPTED, (null)...e92747db80fefc29a6b691c09d2bdcfc5310868c, srcRef=refs/heads/master, forceUpdate, message=null]

[2015-08-21 18:42:46,069] [09c908e2]Cannot replicate to ssh://jenkins-jb@hctest
02:29418/AAA.git
org.eclipse.jgit.errors.TransportException: ssh://jenkins-jb@hctest02:29418/AAA.
git: push not permitted
        at org.eclipse.jgit.transport.BasePackPushConnection.noRepository(BasePa
ckPushConnection.java:175)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(
BasePackConnection.java:198)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(Base
PackConnection.java:176)
        at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(T
ransportGitSsh.java:341)
        at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.j
ava:166)
        at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1200)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1246)
root@hctest01:/home/gerrit2/review_site/logs# tail -f replication_log
        at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75)
        at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:254)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:368)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
[2015-08-21 18:33:44,574] [09c908e2] Replication to ssh://jenkins-jb@hctest02:29418/AAA.git started...
[2015-08-21 18:33:44,575] [09c908e2] Push to ssh://jenkins-jb@hctest02:29418/AAA.git references: [RemoteRefUpdate[remoteName=refs/heads/master, NOT_ATTEMPTED, (null)...e92747db80fefc29a6b691c09d2bdcfc5310868c, srcRef=refs/heads/master, forceUpdate, message=null]]
[2015-08-21 18:33:44,725] [09c908e2] Cannot replicate to ssh://jenkins-jb@hctest02:29418/AAA.git
org.eclipse.jgit.errors.TransportException: ssh://jenkins-jb@hctest02:29418/AAA.git: push not permitted
        at org.eclipse.jgit.transport.BasePackPushConnection.noRepository(BasePackPushConnection.java:175)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(BasePackConnection.java:198)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(BasePackConnection.java:176)
        at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(TransportGitSsh.java:341)
        at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:166)
        at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1200)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1246)
        at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:407)
        at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:379)
        at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:287)
        at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:82)
        at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:257)
        at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:254)
        at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:222)
        at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:201)
        at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75)
        at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:254)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:368)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Aug 21, 2015
Project Member #1 bassem.rabil
This issue is a duplicate of another issue:
https://code.google.com/p/gerrit/issues/detail?id=3484

It looks to me that you are trying to replicate using the same port 29418 which is used by Gerrit application on the slave side. You can try changing your configuration to replicate to another port on the slave side to avoid conflicting with 29418 used by Gerrit slave.
Sign in to add a comment

Powered by Google Project Hosting