Git克隆失败了gerrit存储库

时间:2013-05-31 18:41:02

标签: gerrit

我们有几个用户远程工作,他们在尝试克隆grit存储库时遇到了很多问题 使用ssh工作的常规git存储库的Git克隆没有问题但是尝试从gerrit克隆存储库有时会工作,有时会在随机点失败

基于日志,似乎ssh连接中断了

我们正在使用gerrit 2.5.2并使用默认端口29418进行ssh访问 在工作中使用LAN时没有报告任何问题,但是通过WAN访问会导致很多问题

在中断和超时方面,有没有办法配置gerrit中使用的sshd对WAN连接更宽松? 或者是否可以在git / gerrit服务器(Linux)上使用已经运行的sshd软件并替换gerrit内部使用的软件? 该机器是专门用于git和gerrit的主机

日志文件:

[2013-05-10 07:41:27,725]错误com.google.gerrit.sshd.BaseCommand:git-upload-pack'/ mobileclient'中的内部服务器错误(用户rk101288帐号30) org.apache.sshd.common.channel.WindowClosedException:已经关闭         在org.apache.sshd.common.channel.Window.waitForSpace(Window.java:153)         在org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:104)         在org.apache.sshd.common.channel.ChannelOutputStream.write(ChannelOutputStream.java:75)         at org.eclipse.jgit.transport.SideBandOutputStream.writeBuffer(SideBandOutputStream.java:171)         at org.eclipse.jgit.transport.SideBandOutputStream.write(SideBandOutputStream.java:151)         at org.eclipse.jgit.storage.pack.PackOutputStream.write(PackOutputStream.java:124)         在org.eclipse.jgit.storage.file.PackFile.copyAsIs2(PackFile.java:489)         在org.eclipse.jgit.storage.file.PackFile.copyAsIs(PackFile.java:327)         在org.eclipse.jgit.storage.file.WindowCursor.copyObjectAsIs(WindowCursor.java:162)         at org.eclipse.jgit.storage.pack.PackWriter.writeObjectImpl(PackWriter.java:1360)         在org.eclipse.jgit.storage.pack.PackWriter.writeObject(PackWriter.java:1331)         at org.eclipse.jgit.storage.pack.PackOutputStream.writeObject(PackOutputStream.java:161)         在org.eclipse.jgit.storage.file.WindowCursor.writeObjects(WindowCursor.java:168)         在org.eclipse.jgit.storage.pack.PackWriter.writeObjects(PackWriter.java:1319)         at org.eclipse.jgit.storage.pack.PackWriter.writeObjects(PackWriter.java:1307)         在org.eclipse.jgit.storage.pack.PackWriter.writePack(PackWriter.java:897)         在org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1197)         在org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1055)         在org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:611)         在org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:521)         在com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:53)         在com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:106)         在com.google.gerrit.sshd.AbstractGitCommand.access $ 000(AbstractGitCommand.java:34)         在com.google.gerrit.sshd.AbstractGitCommand $ 1.run(AbstractGitCommand.java:72)         在com.google.gerrit.sshd.BaseCommand $ TaskThunk.run(BaseCommand.java:430)         at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:441)         at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:303)         在java.util.concurrent.FutureTask.run(FutureTask.java:138)         at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:98)         at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)         在com.google.gerrit.server.git.WorkQueue $ Task.run(WorkQueue.java:337)         at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)         在java.lang.Thread.run(Thread.java:736)

[2013-05-10 07:36:23,436 -0400] f15e68b8 rk101288 a / 30登录来自172.20.251.105 [2013-05-10 07:41:27,725 -0400] f15e68b8 rk101288 a / 30 LOGOUT [2013-05-10 07:41:27,725 -0400] f15e68b8 rk101288 a / 30'git-upload-pack'\''/ mobileclient'\'''0ms 304099ms被杀

1 个答案:

答案 0 :(得分:0)

因此,如果将Plink用作Git的SSH客户端,您可能需要应用解决方法as described here