git 克隆失败,无法在远程重新打包

发布于 2025-01-05 12:34:13 字数 528 浏览 0 评论 0原文

在研究这个问题时,我发现了很多关于内存耗尽的消息,但我实际上没有收到任何 malloc 错误。

当我尝试克隆时,我得到了这个中间压缩

error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

当我转到远程并运行 git gc 时,它给了我这个..(通过压缩得到相同的量)

error: failed to run repack

当我运行 git fsck 时代码> 我根本没有输出...

想法?

While researching this I have found a lot of messages about this concerning the exhaustion of memory, but I am not actually getting any malloc errors.

When I try and clone I get this mid-compression

error: git-upload-pack: git-pack-objects died with error.
fatal: git-upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

When I go to the remote and run git gc it gives me this.. (same amount through compression)

error: failed to run repack

When I run git fsck I get no output at all...

ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫﹏色ふ单纯 2025-01-12 12:34:13

这取决于您在 git-pack-objects dead with error 之前应该看到的行。

例如,如果您应该看到类似以下的行:(

remote: fatal: object 21f3981dd35fccd28febabd96f27241eea856c50 is corrupted

如“GIT pull”中所述错误 - 远程对象已损坏”)

在这种情况下,您可以尝试(在远程服务器上) git fsck --full 21f3981 ; git repack (按照 J-16 SDiZ 的建议)

您会在以下位置找到类似的错误消息这个旧(2008)线程Linus Torvald 建议,出现错误诸如“无法解压 .. header”之类的消息:

无法解压 .. header”问题据猜测完全是一个问题
损坏的松散物体。你应该有一个名为

.git/objects/b2/8b949a1a3c8eb37ca6eefd024508fa8b253429

听起来该文件已损坏。
到目前为止,除了 CRLF 转换错误(无论如何你都不会在 OS X 上触发)之外,我认为每次我们看到它时,它都是真正的磁盘或内存
腐败。

It depends on the line you should see before git-pack-objects died with error.

For instance, if you should see a line like:

remote: fatal: object 21f3981dd35fccd28febabd96f27241eea856c50 is corrupted

(as described in "GIT pull error - remote object is corrupted")

In that case, you might try (on the remote server) a git fsck --full 21f3981 ; git repack (as suggested by J-16 SDiZ)

You will find similar error message in this old (2008) thread, with Linus Torvald suggesting, for an error message like "unable to unpack .. header":

The "unable to unpack .. header" problem would at a guess be a totally
corrupted loose object. You should have a file named

.git/objects/b2/8b949a1a3c8eb37ca6eefd024508fa8b253429

and it sounds like that file is corrupt.
So far, apart from a CRLF conversion bug (that you wouldn't have triggered on OS X anyway), I think every single time we've seen that, it's been a real disk or memory
corruption.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文