如何解决“由于远程端可能存在仓库损坏而中止”的问题?

huangapple go评论68阅读模式
英文:

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可找到以下结果:

等等。

英文:

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:

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.

huangapple
  • 本文由 发表于 2020年1月3日 17:54:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/59576401.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定