由于Cloud Foundry cc nginx超时

时间:2019-05-13 08:42:01

标签: nginx cloudfoundry

我对Blobstore上传有疑问。我们的Dotnet buildpack很大。 > 1GB。当我上传blobostore时,出现错误:

Uploading buildpack dotnet-core as admin...
 0 B / 1016.63 MiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%REQUEST: [2019-05-13T04:30:29-04:00]
PUT /v2/buildpacks/5379e97f-4423-4330-bb7e-8036b4c48709/bits HTTP/1.1
Host: api.eugb-sz-cluster.eu-gb.containers.appdomain.cloud
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: multipart/form-data; boundary=12245ea06b3db302992d5b3e9353714083e5aa46c014170c2ca8db40c1ca
User-Agent: cf/6.41.0+dd4c76cdd.2018-11-28 (go1.11.2; amd64 linux)
[multipart/form-data Content Hidden]

 1016.63 MiB / 1016.63 MiB [=======================================================================================================================================================================] 100.00%RESPONSE: [2019-05-13T04:32:06-04:00]
HTTP/1.1 504 Gateway Time-out
Connection: keep-alive
Content-Type: text/html
Date: Mon, 13 May 2019 08:32:06 GMT
<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>




error seeking a stream on retry: Unexpected Response
Response code: 504
CC code:       0
CC error code:
Description:   <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>

FAILED

我认为是因为某些超时配置,cc尚未完成到blobstore的buildpack。然后nginx报告超时,然后上传失败。

我尝试了一些nginx配置,例如:

proxy_ignore_client_abort  on;
fastcgi_connect_timeout  600s;
fastcgi_send_timeout  600s;
fastcgi_read_timeout  600s;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;

但是它们都不起作用。...有人可以帮忙吗?非常感谢!

0 个答案:

没有答案