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

What was the motivation in using "cf files" over "cf curl /v2/apps/:app_guid/download"? #2

Open
rajohns08 opened this issue May 16, 2016 · 5 comments

Comments

@rajohns08
Copy link

I noticed the implementation of this download plugin is to output all file contents and write those contents to local files. Why was this method chosen over the download cloud foundry api call?

@clement360
Copy link
Member

We tried using curl and the download function first, however it was unable to handle the high number of concurrent downloads. We brought the issue up with the CLI maintainers and they acknowledged concurrency was an issue. They may have fixed the issue by now.

@rajohns08
Copy link
Author

Completely unrelated, but do you have any idea why my curl download command would be failing with a timeout upon redirecting to blob store? I was just curious if you guys saw this when initially investigating the download option.

$ cf curl /v2/apps/c91fb2c9-583a-452a-854a-26088d83fe79/download
FAILED
Error creating request:
Error performing request: Get https://dal05.objectstorage.service.networklayer.com:443/v1/AUTH_9832c938-360c-442a-9713-a5ad3a5d5368/cc-packages/c9/1f/c91fb2c9%!D(MISSING)583a%!D(MISSING)452a%!D(MISSING)854a%!D(MISSING)26088d83fe79?temp_url_sig=65aebbe7978051de7da5814f9fbf29404e825770&temp_url_expires=1463414488: dial tcp 10.1.129.11:443: i/o timeout
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.

@joshisa
Copy link

joshisa commented May 16, 2016

@rajohns08 The url to the blob store seems to have some strange %!D(MISSING) segments. Are those redactions by you?

@clement360
Copy link
Member

I don't think I remember having that timeout issue, the failed requests usually were caused by permission issues or large binary files (images)

@bbodenmiller
Copy link

Once you get this to download what kind of file is it? Doesn't appear to open as a .zip.

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

No branches or pull requests

4 participants