Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pushing an app containing large set of files times out during the resource matching step #1042

Closed
mgadiya opened this issue Jan 3, 2017 · 4 comments

Comments

@mgadiya
Copy link

mgadiya commented Jan 3, 2017

Our app contains over 17K files and cf push in some environments time out. CF Trace helped narrow down the problem to the slower resource matching causing the time out. Having an option to disable it will help us get around this issue.

Command

cf push metrics -i 4 --no-route

What occurred

REQUEST: [2016-12-07T20:43:31Z]
PUT /v2/resource_match HTTP/1.1
Host: api.system.nprd-pcf.aig.net
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.21.1+6fd3c9f / linux

[{"sha1":"fa8c84f17f313c93e3cf86be1437aa3870414ed7","size":371},{"sha1":"0","size":0},{"sha1":"21cd7604a345423f57950d2415063d69d9c32504","size":4025},{"sha1":"0bfd0cbeccf23d3193823527b8caa40eee35dc24","size":122},{"sha1":"6a1a5de08072d5bcdd2e01e8aa6a0753f3fba22b","size":5709},
...........,
..........,
{"sha1":"803c2d5eda0462ae13cc1f4a2b50211d2b28da6a","size":422},{"sha1":"c62c660abc4b012302dbd51ef62f20b408a7bfa7","size":5196},{"sha1":"1f471ed248298d2a6a6faf4eb2b6592d163e8d8e","size":1035},{"sha1":"dd82528b1541448463447ca916efd6b36917fed1","size":346}]

RESPONSE: [2016-12-07T20:44:30Z]
HTTP/1.1 504 GATEWAY_TIMEOUT
Connection: close
Content-Length: 0

FAILED
Error processing app files: Error uploading application.
Server error, status code: 504, error code: 0, message:

CLI Version

1.6.21

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/136928671

The labels on this github issue will be updated when the story is started.

@dkoper
Copy link

dkoper commented Jan 3, 2017

Hi @mgadiya , thanks so much for the trace!

@mmb
Copy link
Contributor

mmb commented Jan 6, 2017

@mgadiya Which type of blobstore are you using for cloud controller's resource pool blobstore?

@dkoper
Copy link

dkoper commented Jan 13, 2017

Hi @mgadiya

This issue should now be resolved in cf CLI 6.23.1. If CC times out on the resource matching, push will no longer abort.
https://github.com/cloudfoundry/cli#downloads

Thanks again for your trace, it's been very useful.

Regards,
Dies Koper
CF CLI PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants