Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When ssh clones more than 2G libraries, "Cannot upload pack:" appears. #1471

Open
gouyugang opened this issue Feb 28, 2024 · 0 comments
Open

Comments

@gouyugang
Copy link

hi, when I was using ssh cloning, I got an error when cloning was almost complete.

I noticed that the above error immediately occurred when the data received was greater than 2 G.
remote: Getting sizes: 100% (475/475)
Receiving objects: 59% (2152/3600), 1.62 GiB | 13.49 MiB/s

Please help to see what the problem is. Thank you very much.

Note: When I switch to https link cloning, it works fine

tortiosgit prompt content:
End of keyboard-interactive prompts from server
remote: Counting objects: 3600, done
remote: Finding sources: 100% (3600/3600)
remote: Getting sizes: 100% (475/475)
fatal: Cannot upload pack:
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

gitblit-stdout.2024-02-27.log:
2024-02-27 16:33:52 [INFO ] creating ssh session from /172.26.196.192:54251
2024-02-27 16:34:40 [INFO ] 17 repository models loaded for yangxin in 49 msecs
2024-02-27 16:34:40 [INFO ] Loading properties files from jar:file:/C:/Git/gitblit-1.9.3/gitblit.jar!/com/gitblit/wicket/GitBlitWebApp_zh_CN.properties
2024-02-27 16:34:40 [INFO ] Loading properties files from jar:file:/C:/Git/gitblit-1.9.3/gitblit.jar!/com/gitblit/wicket/GitBlitWebApp.properties
2024-02-27 16:34:40 [INFO ] Loading properties files from jar:file:/C:/Git/gitblit-1.9.3/ext/wicket-1.4.22.jar!/org/apache/wicket/Application_zh_CN.properties
2024-02-27 16:34:40 [INFO ] Loading properties files from jar:file:/C:/Git/gitblit-1.9.3/ext/wicket-1.4.22.jar!/org/apache/wicket/Application.properties
2024-02-27 16:35:11 [ERROR] Internal server error (user gouyugang) during git git-upload-pack '/cqjmgit/jm_opencpu.git'
com.gitblit.transport.ssh.commands.BaseCommand$Failure: fatal: Cannot upload pack:
at com.gitblit.transport.ssh.git.Upload.runImpl(Upload.java:36)
at com.gitblit.transport.ssh.git.BaseGitCommand.service(BaseGitCommand.java:72)
at com.gitblit.transport.ssh.git.BaseGitCommand.access$100(BaseGitCommand.java:33)
at com.gitblit.transport.ssh.git.BaseGitCommand$1.run(BaseGitCommand.java:59)
at com.gitblit.transport.ssh.commands.BaseCommand$TaskThunk.run(BaseCommand.java:331)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at com.gitblit.utils.WorkQueue$Task.run(WorkQueue.java:332)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.jgit.transport.UploadPackInternalServerErrorException
at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1392)
at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:779)
at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:666)
at com.gitblit.transport.ssh.git.Upload.runImpl(Upload.java:34)
... 12 more
Caused by: java.net.SocketTimeoutException: waitForCondition(Window[server/remote](ChannelSession[id=0, recipient=256]-SshServerSession[gouyugang@/172.26.196.192:54251])) timeout exceeded: 30000
at org.apache.sshd.common.channel.Window.waitForCondition(Window.java:314)
at org.apache.sshd.common.channel.Window.waitForSpace(Window.java:264)
at org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:176)
at org.apache.sshd.common.channel.ChannelOutputStream.write(ChannelOutputStream.java:119)
at org.eclipse.jgit.transport.SideBandOutputStream.writeBuffer(SideBandOutputStream.java:171)
at org.eclipse.jgit.transport.SideBandOutputStream.write(SideBandOutputStream.java:151)
at org.eclipse.jgit.internal.storage.pack.PackOutputStream.write(PackOutputStream.java:126)
at org.eclipse.jgit.internal.storage.file.PackFile.copyAsIs2(PackFile.java:575)
at org.eclipse.jgit.internal.storage.file.PackFile.copyAsIs(PackFile.java:390)
at org.eclipse.jgit.internal.storage.file.WindowCursor.copyObjectAsIs(WindowCursor.java:201)
at org.eclipse.jgit.internal.storage.pack.PackWriter.writeObjectImpl(PackWriter.java:1521)
at org.eclipse.jgit.internal.storage.pack.PackWriter.writeObject(PackWriter.java:1498)
at org.eclipse.jgit.internal.storage.pack.PackOutputStream.writeObject(PackOutputStream.java:164)
at org.eclipse.jgit.internal.storage.file.WindowCursor.writeObjects(WindowCursor.java:207)
at org.eclipse.jgit.internal.storage.pack.PackWriter.writeObjects(PackWriter.java:1486)
at org.eclipse.jgit.internal.storage.pack.PackWriter.writeObjects(PackWriter.java:1474)
at org.eclipse.jgit.internal.storage.pack.PackWriter.writePack(PackWriter.java:1038)
at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1536)
at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1386)
... 15 more
2024-02-27 16:35:11 [INFO ] onExecute: RootDispatcher exits with: 1
2024-02-27 16:35:46 [WARN ] exceptionCaught(SshServerSession[gouyugang@/172.26.196.192:54251])[state=Opened] SshException: Received SSH_MSG_CHANNEL_EOF on unknown channel 0
2024-02-27 16:35:46 [INFO ] closed ssh session from /172.26.196.192:54251
2024-02-27 16:38:01 [INFO ] creating ssh session from /172.26.196.245:52551
2024-02-27 16:38:56 [INFO ] onExecute: RootDispatcher exits with: 0
2024-02-27 16:39:44 [WARN ] exceptionCaught(SshServerSession[yangxin@/172.26.196.245:52551])[state=Opened] SshException: Received SSH_MSG_CHANNEL_EOF on unknown channel 0
2024-02-27 16:39:44 [INFO ] closed ssh session from /172.26.196.245:52551
2024-02-27 16:54:13 [INFO ] ARF: authenticated gouyugang to cqjmgit/jm_opencpu.git/info/refs?service=git-upload-pack (100)
2024-02-27 16:54:16 [INFO ] ARF: authenticated gouyugang to cqjmgit/jm_opencpu.git/git-upload-pack (100)
2024-02-27 17:14:12 [INFO ] creating ssh session from /172.26.196.192:57409
2024-02-27 17:14:15 [INFO ] onExecute: RootDispatcher exits with: 0
2024-02-27 17:14:15 [INFO ] closed ssh session from /172.26.196.192:57409
2024-02-27 17:37:55 [INFO ] creating ssh session from /172.26.196.156:50559
2024-02-27 17:38:13 [INFO ] tangxiao UPDATED refs/heads/LIB091_LIB_TRACK_LTEGSM in cqjmgit/jm_opencpu.git (from 5d8e59be907528059af6f42898a93214f8f52c59 to ab5272825a94eb881f4236286b94bfe70c469077)
2024-02-27 17:38:13 [INFO ] onExecute: RootDispatcher exits with: 0
2024-02-27 17:38:13 [INFO ] closed ssh session from /172.26.196.156:50559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant