英文:
How to solve "aborting due to possible repository corruption on the remote side"?
问题
我正在尝试在我的Spring MVC项目中拉取代码。之后,拉取没有成功,我在Eclipse消息框中收到了以下错误消息:“由于远程端可能的仓库损坏而中止”。请问有人可以帮助我吗?我从Eclipse收到了以下错误消息:
英文:
I am trying to pull in my spring MVC project. And afterthat, the pull didn't work, I am getting the error message in eclipse message box: "aborting due to possible repository corruption on the remote side".
Could anyone give me a hand please?
I have this error message from eclipse:
答案1
得分: 1
你的Git正在与另一个Git通信。那个其他的Git(可能)位于不同的机器上,远在互联网的某个地方。根据你的Eclipse软件,问题出现在另一台机器上。
在你这一边,你无法采取任何行动。你必须登录到另一台机器并检查那里的代码库。服务器可能会有关于发现的日志,或者你可以导航到相关的代码库并运行git fsck
。
根据评论进行编辑(见下文):Eclipse隐藏了一个关键信息。从命令行运行的克隆操作会打印出:
remote: Counting objects: 55755, done.
error: pack-objects died of signal 9
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
error: git upload-pack: git-pack-objects died with error.
fatal: index-pack failed
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
尽管不明显,但第二行是关键:Died of signal 9表示在服务器上,git pack-objects
命令被"OOM killer"终止。
搜索git server OOM killer site:stackoverflow.com
可找到以下结果:
- https://stackoverflow.com/q/21359777/1256452:发生了什么
- https://stackoverflow.com/q/726690/1256452:关于Linux OOM killer的一般建议
- https://stackoverflow.com/q/28156058/1256452:Adrian在Linux服务器上添加了一个交换文件,解决了问题
等等。
英文:
Your Git is talking to another Git. That other Git is (presumably) on a different machine, far away somewhere over the Internet. According to your Eclipse software, the problem is on the other machine.
There is nothing you can do on your side. You must log in to the other machine and examine the repository there. The server may have logs about what it found, or you can just navigate to the repository in question and run git fsck
.
Edit per comments (see below): Eclipse is hiding a key bit of information. A clone run from the command line prints:
remote: Counting objects: 55755, done.
error: pack-objects died of signal 9
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
error: git upload-pack: git-pack-objects died with error.
fatal: index-pack failed
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
Although it's not obvious, the second line is the key here: Died of signal 9 means that on the server, the git pack-objects
commands was killed by the "OOM killer".
A google search for git server OOM killer site:stackoverflow.com
turns up:
- https://stackoverflow.com/q/21359777/1256452: what's going on
- https://stackoverflow.com/q/726690/1256452: general advice about Linux OOM killers
- https://stackoverflow.com/q/28156058/1256452: Adrian adds a swap file on the Linux server, which fixes the problem
and more.
答案2
得分: 0
我遇到了相同类型的问题,原因是Linux服务器的根目录空间不足。幸运的是,Git(lab)服务器运行在不同的分区上,因此没有损坏Git仓库。
解决方案:清理/释放根目录上的一些磁盘空间。
英文:
I had the same kind of issue, the reason was that the root on the linux server ran out of space. Luckily the git(lab) server was running on a different partition, so no git repo was damaged.
Solution: clean up/freeing some disk space on the root.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论