标签搜索

解决Gitlab进行clone、push、pull的时候报错aborting due to possible repository corruption on the remote side. git-pack-objects died with error.index-pack failed问题

basil
2022-03-01 / 1,050 阅读

问题

代码管理用的是gitlab,某一天在本地进行clone、push、pull等操作的时候报以下错误

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

解决办法

网上各种解决办法,例如设置压缩、内存不足等等都试过了,就是解决不了。通过gitlab-ctl tail也排查不出异常。
最后通过以下命令重启gitlab服务解决了,但还不清楚具体原因。

systemctl stop gitlab-runsvdir && systemctl start gitlab-runsvdir

20230602更新

升级Gitlab之后就没出现过这个问题了

1