错误:RPC失败; HTTP 502 curl 22请求的URL返回错误:502 Bad Gateway致命

时间:2020-08-22 20:01:12

标签: git github gitlab git-push bad-gateway

我正在将代码上传到我的gitlabs仓库中,并且收到此错误

Counting objects: 29295, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (21490/21490), done.
Writing objects: 100% (29295/29295), 31.10 MiB | 167.62 MiB/s, done.
Total 29295 (delta 6225), reused 29295 (delta 6225)
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

无法弄清楚如何解决此问题,请对此提供帮助。

2 个答案:

答案 0 :(得分:1)

“ 502错误的网关”错误表示您的请求已成功将消息发送到某种代理,但无法访问其背后的服务器或发送了无效的响应。像其他5xx错误一样,它表示客户端无法独立修复的服务器端问题。

我相信GitLab与许多Web应用程序一样,在主Web应用程序之前使用nginx。主Web应用程序可能崩溃了,或者发生了其他问题,但是无论如何,您都需要联系GitLab实例的管理员并要求他们解决此问题;您无法做任何修复。

如果您要托管自己的GitLab实例,则建议您确保服务正在运行,并查看日志以查看出现了什么问题。

答案 1 :(得分:0)

我使用SSH解决了这个问题,我想如果有人遇到此问题,请尝试使用ssh克隆存储库,然后尝试推送代码:)