I still discovering gerrit, i tried to mirror some of our git repositories (around 30 repository) to Gerrit but i faced some issues with repositories having high ref count.
I made the choice of a server-client-server mirroring rather than server to server mirroring.
As you can see in the attached error_log, I got an issue with the plugin replication,
A second issue with the VIBE git repository which contains 8019 tags and 8115 branches and is the origin of this unpack error for a given tag:
[2013-11-07 11:33:34,853] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user codex_support account 2) during git-receive-pack gerrit-dry-run/VIBE
com.google.gerrit.sshd.BaseCommand$Failure: fatal: Unpack error, check server log
at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:157)
at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:106)
at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:34)
at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:72)
at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:430)
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:337)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Unpack error on project "gerrit-dry-run/VIBE":
AdvertiseRefsHook: com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook@68cd3558class com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook
at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:156)
... 13 more
Caused by: org.eclipse.jgit.errors.UnpackException: Exception while parsing pack stream
at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:202)
at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:142)
at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:98)
... 13 more
Caused by: java.io.IOException: Invalid tag 68dd0ff5540aefe8e667544a9a93301f29d6071b:invalid tagger
at org.eclipse.jgit.transport.PackParser.verifySafeObject(PackParser.java:1014)
at org.eclipse.jgit.transport.PackParser.whole(PackParser.java:995)
at org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:912)
at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:486)
at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179)
at org.eclipse.jgit.transport.BaseReceivePack.receivePack(BaseReceivePack.java:915)
at org.eclipse.jgit.transport.BaseReceivePack.receivePackAndCheckConnectivity(BaseReceivePack.java:754)
at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:167)
... 15 more
And a third issue that occured 15 time and comes with an ORM stack trace that i'm not able to interprete ..
We are running Gerrit 2.5.2 with mysql 5.5.29 and git 1.7.1 on a RHEL 6.3 server.