【发布时间】:2020-12-09 17:43:43
【问题描述】:
我尝试在新项目 gitlab.com 上迁移我的项目 但我有这个错误。我尝试增加缓冲区但不工作
i 在 1,5 go 处增加缓冲区。但是错误 RPC
$ git config --global http.postBuffer 157286400
$ git push gitlab --mirror
Enumerating objects: 365, done.
Counting objects: 100% (365/365), done.
Delta compression using up to 4 threads
Compressing objects: 100% (223/223), done.
error: unable to rewind rpc post data - try increasing http.postBuffer
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly| 0 bytes/s
Writing objects: 100% (365/365), 1.11 GiB | 66.00 KiB/s, done.
Total 365 (delta 121), reused 365 (delta 121), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
$ git push gitlab
Enumerating objects: 365, done.
Counting objects: 100% (365/365), done.
Delta compression using up to 4 threads
Compressing objects: 100% (223/223), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: Unknown error code (err 1)
fatal: the remote end hung up unexpectedlyB | 3.00 KiB/s
Writing objects: 100% (365/365), 1.11 GiB | 94.00 KiB/s, done.
Total 365 (delta 121), reused 365 (delta 121), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
$ git config --global http.postBuffer 1572864000
$ git push gitlab --mirror
Enumerating objects: 365, done.
Counting objects: 100% (365/365), done.
Delta compression using up to 4 threads
Compressing objects: 100% (223/223), done.
Writing objects: 100% (365/365), 1.11 GiB | 72.65 MiB/s, done.
Total 365 (delta 121), reused 365 (delta 121), pack-reused 0
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: Unknown error code (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
【问题讨论】:
-
您的代理、防火墙、防病毒或 SSL MITM 设备是否损坏?使用现代软件,您永远不会看到该消息。
-
无代理,Avast 杀毒软件,我使用我的个人互联网盒子,我推了另一个较小的项目,我尝试将缓冲区增加到 1572864000 但永远不会结束
-
哇! 1.11 GiB 大小的 git 存储库!当然,一个 150MB++ 的缓冲区不适合那么多。你在你的 git repo 中提交了一两部电影吗?也许您将 git 用于错误的目的?
-
Git 通常应该对大型推送使用分块传输编码,除非您有一个不正确支持 HTTP/1.1 的损坏的盒子,否则这可以正常工作。 Avast 具有篡改加密连接的功能,这可能会破坏这里的东西,所以我建议完全删除它,重新启动,改用 Windows Defender,看看问题是否消失。
-
没有 Avast 就是工作思考