git 致命:关闭 sha1 文件时出错:输入/输出错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10545013/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 06:54:26  来源:igfitidea点击:

fatal: error when closing sha1 file: Input/output error

git

提问by Liam

What do I do about this?

我该怎么办?

git push
Counting objects: 30, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
fatal: error when closing sha1 file: Input/output error
error: pack-objects died of signal 13
error: failed to push some refs to '...'

I tried the following from answersto a similar question

我从类似问题的答案中尝试了以下内容

git repack
git prune
git gc --aggressive

Nothing helps. The remote is a mounted AFS filesystem, I have been pushing to it without incident for a couple years. I am not anywhere near quota, and I have permission (I can touch a file on this filesystem without problem). Git version 1.7.5.4.

没有任何帮助。遥控器是一个挂载的 AFS 文件系统,几年来我一直在推动它,没有发生任何事故。我没有接近配额,而且我有权限(我可以毫无问题地触摸这个文件系统上的文件)。Git 版本 1.7.5.4。

采纳答案by Liam

Apparently this was, as indicated in the comment, a problem with the remote file server. After waiting a while, I was able to push without incident.

显然,正如评论中所指出的,这是远程文件服务器的问题。等了一段时间后,我能够顺利推动。

回答by avner

This is result of disk quota exceeded. I got same error without additional explanation. I then noticed that my disk quota was exceeded. After freeing some disk space, i was able to perform the original git action.

这是超出磁盘配额的结果。我得到了同样的错误,没有额外的解释。然后我注意到超出了我的磁盘配额。释放一些磁盘空间后,我能够执行原始的 git 操作。

PS: In my case, the error condition prevent any change in the localgit repository. I was not able to do any of add/commit/push/gc (all gave above sha1 file error).

PS:就我而言,错误条件阻止了本地git 存储库中的任何更改。我无法执行任何添加/提交/推送/gc(都给出了上述 sha1 文件错误)。