1
gerrit의 github 복제 작업을 시도하고 있습니다. git clone [email protected] : jpgrace/gerrit-test.git를 사용하여 빈 저장소를 직접 복제 할 수 있지만 gerrit를 사용하여 복제하려고 시도 할 때마다 뭔가 실패합니다. ssh 또는 웹 응용 프로그램을 통해 replicate 명령을 실행해도 상관 없습니다.Gerrit가 git 리포지토리를 복제 할 수 없습니다.
gerrit: replication: not found
이가의 error_log에 기록 :
내가 직접 복제를 실행하면 나는$ ssh -p 29418 [email protected] gerrit replication start
이
콘솔 출력의 등 /의 error_log에서 같은 오류가
[2014-05-12 18:47:30,785] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to [email protected]:jpgrace/All-Projects.git
org.eclipse.jgit.errors.TransportException: [email protected]:jpgrace/All-Projects.git: unknown host
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:139)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
at com.googlesource.gerrit.plugins.replication.PushOne.listRemote(PushOne.java:483)
at com.googlesource.gerrit.plugins.replication.PushOne.doPushAll(PushOne.java:427)
at com.googlesource.gerrit.plugins.replication.PushOne.generateUpdates(PushOne.java:420)
at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:368)
at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:351)
at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:267)
at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:78)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:240)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:237)
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:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:364)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
처음에 나는 뭔가가 내 ssh 구성에 맞지 않다고 생각 했었습니다. 그렇지 않으면 gerrit를 실행하지 않고있었습니다. gerrit 사용자. 내가 이해할 수없는 것들 중 하나는 경고의 "알려지지 않은 호스트"부분입니다. 여기
여기 내 ~/스푸핑/설정
Host github.com
User git
IdentityFile /opt/gerrit/.ssh/id_rsa
StrictHostKeyChecking no
UserKnownHostsFile /opt/gerrit/.ssh/known_hosts
입니다에 relavent 출력 "추신 보조는 | 그렙 리트는"여기
gerrit 2546 1.7 35.4 1138240 177464 pts/2 Sl 17:45 0:53 GerritCodeReview -jar /opt/gerrit/bin/gerrit.war daemon -d /opt/gerrit --run-id=1399931125.2524
내 replication.config입니다 :
[remote "github"]
url = [email protected]:/${name}.git
내가 무엇이 누락 되었습니까?