【问题标题】:Requests are getting timed-out with error: RPC failed; curl 18 transfer closed with outstanding read data remaining请求因错误而超时:RPC 失败; curl 18 传输已关闭,剩余未完成的读取数据
【发布时间】:2021-01-03 09:52:31
【问题描述】:

我正在尝试使用 git push 将一些存储库从一台服务器推送到另一台服务器。它适用于规模巨大(如 90GB)但内部引用/对象数量较少(大约 10,000 多个)的项目。但是,当我尝试推送一个相对较小的项目(如 2GB)时,它有大量的 refs(大约 100,000+),它会因超时错误而失败,如下所示: error: RPC failed; curl 18 transfer closed with outstanding read data remaining

我也从服务器端检查过,这是我遇到的错误:
(70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed

到目前为止,我已经尝试了以下方法,但没有成功:

  • KeepAlive On(在 apache httpd.conf 中)
  • 超时 36000(在 apache httpd.conf 中)
  • KeepAliveTimeout 36000(在 apache httpd.conf 中)
  • nginx.ingress.kubernetes.io/proxy-connect-timeout = 36000(入口注解)
  • nginx.ingress.kubernetes.io/proxy-read-timeout = 36000(入口注解)
  • nginx.ingress.kubernetes.io/proxy-send-timeout = 36000(入口注解)

知道为什么会出现这种情况以及解决方法吗?

【问题讨论】:

    标签: git apache nginx kubernetes kubernetes-ingress


    【解决方案1】:

    这是由于 default.conf 配置,不知何故优先于实际的 httpd.conf 文件,如果有人想知道 :)

    【讨论】:

      猜你喜欢
      • 2021-04-21
      • 2021-04-09
      • 2020-07-07
      • 2019-09-13
      • 2016-12-01
      • 2010-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多