【问题标题】:error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal错误:RPC 失败; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal
【发布时间】:2020-12-11 21:16:16
【问题描述】:

我正在将代码上传到我的 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

不知道如何解决这个问题,请帮忙解决这个问题。

【问题讨论】:

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


    【解决方案1】:

    502 Bad Gateway 错误意味着您的请求已成功向某种代理发送消息,但无法访问其背后的服务器或发送无效响应。与其他 5xx 错误一样,它表示客户端无法独立修复的服务器端问题。

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

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

    【讨论】:

    • 哦,如果有问题,我会尝试联系 gitlab 并回复您
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-26
      • 1970-01-01
      • 2019-02-08
      • 2021-08-16
      • 2021-02-10
      • 2020-10-09
      • 2021-09-07
      • 2018-11-25
      相关资源
      最近更新 更多