将Gitlab从12.2.1更新到12.4.0之后,我无法将更改推送到存储库中。任何分支都存在此问题。
这是我尝试推送时的输出:
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 '[email protected]:repo/main-websites/repo.com.git'
我尝试了以下方法:
这是我发现的唯一与此问题有关的日志
{
"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实例上带有密钥的文件已损坏。
我已通过以下方式修复它:
而且现在工作正常...
在这里找到解决方案:https : //stackoverflow.com/a/29765704/1544230
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句