为什么我无法在更新Gitlab后将更改推送到repo?

为什么我无法在更新Gitlab后将更改推送到repo?,git,gitlab,push,git-push,Git,Gitlab,Push,Git Push,在将Gitlab从12.2.1更新到12.4.0之后,我无法将更改推送到repo。任何分支都存在此问题 这是我尝试推送时的输出: remote: GitLab: This action cannot be performed by internal users To git.repo.com:repo/main-websites/repo.com.git ! [remote rejected] branch -> branch (pre-receive hook declined) er

在将Gitlab从12.2.1更新到12.4.0之后,我无法将更改推送到repo。任何分支都存在此问题

这是我尝试推送时的输出:

remote: GitLab: This action cannot be performed by internal users
To git.repo.com:repo/main-websites/repo.com.git
 ! [remote rejected] branch -> branch (pre-receive hook declined)
error: failed to push some refs to 'git@git.repo.com:repo/main-websites/repo.com.git'
我尝试了以下方法:

  • 重新配置/重新启动Gitlab
  • 删除我的本地副本并从头开始克隆,我可以毫无问题地拉取项目,但不能推送
  • 我试着从另一台机器上做出改变,同样的故事
  • 我试图从Gitlab中删除我的SSH密钥并重新生成它,但也没用
这是我发现的唯一一条与这个问题有关的日志

{
    "method":"POST",
    "url":"http://127.0.0.1:8080/api/v4/internal/allowed",
    "code":"401",
    "body":"{
        "status":false,
        "message":"This action cannot be performed by internal users"
    }",
    "pid":17255,
    "level":"error",
    "msg":"Call failed",
    "time":"2019-10-23T13:55:33+00:00"
}
我将感谢任何关于可能导致它的想法,因为我完全被困在这里


谢谢大家!

显然,GitLab实例上带有密钥的文件已损坏

我已按以下方式进行了修复:

  • 我删除了文件:/var/opt/gitlab/.ssh/authorized\u key
  • 已从GitLab Web UI中删除所有SSH密钥
  • 重新添加了密钥
现在一切都好了


这里找到了解决方案:

我注意到我以前的提交现在显示为一个ghost用户。可能这就是问题所在,但我仍在寻找解决方案这似乎是GitLab 12.4中的一个bug,请参阅