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

s3 put failing with 400 with >5GB file #114

Open
ericjs opened this issue May 22, 2019 · 5 comments
Open

s3 put failing with 400 with >5GB file #114

ericjs opened this issue May 22, 2019 · 5 comments

Comments

@ericjs
Copy link

ericjs commented May 22, 2019

I've been using this for quite a while successfully. (Thanks for the great tool!) However I've been running into a put that keeps failing with:

400 Bad Request
failed to upload partNumber=1

The file is greater then 5GB (the first such file I've tried to upload). The command looks like

aws put --md5 "--max-time=100000" "wrycan-shorterm-backup/gex-qa/xms-repo-base-454845-d.svnbackup.gz" "xms-repo-base-454845-d.svnbackup.gz"

(I kept boosting max-time at first thinking it was timing out. But the error actually occurs after about 2 minutes.)

I have the output from running it with -vv but I'm not sure if I should paste it here, wrt the size of it, or if anything sensitive is logged. But the line that looks notable to me is

  • ALPN, server did not agree to a protocol
@ericjs
Copy link
Author

ericjs commented May 23, 2019

One additional piece of information. By using higher compression, I was able to get my file down to 4.4GB and do a successful put. The put took a little over a minute. As I mentioned the put with the 5GB file fails after about 2 minutes (not exactly 2, a little over last time I checked the timing). Maybe that is a clue.

@timkay
Copy link
Owner

timkay commented May 24, 2019

Eric,

Thanks for the feedback. It's been 6 years since I made any substantive changes to "aws" and 3 years since the ticket before yours. I'm thrilled and surprised that there is still interest in this project. (I do still use it myself.)

To address your report, I confirmed there is a failure with multi-part upload, which is a feature needed to upload files bigger than 5GB. Unfortunately, the problem has to do with Amazon changing their API yet again, involving how authorization credentials are provided. I suppose it's reasonable for API changes over a long period of time. Unfortunately, Amazon was never willing to help me support this project, even back in the beginning, when it was the only command-line tool available, and the top-rated community contributed project. The new feature velocity of AWS, their API changes, and their unwillingness to support this effort makes it difficult for me to keep it working.

I am willing to continue to support the project if it doesn't require substantial code changes, but I'm afraid fixing this one is to involved.

...Tim

@ericjs
Copy link
Author

ericjs commented May 24, 2019

Hi Tim,
Well that's understandable. Thanks for the candid reply, some projects seem to just stop responding when they hit that phase. I suppose long term I should start looking for a replacement but for now I'll just do something to break my data into smaller files and probably use this until amazon breaks it more seriously. Any opinions on what's a good replacement cli tool?

@timkay
Copy link
Owner

timkay commented May 24, 2019 via email

@ericjs
Copy link
Author

ericjs commented May 24, 2019

Wow that sucks you were getting charged like that, and that they tried to claim they couldn't change it...talk about good deeds not going unpunished! I feel like Amazon obfuscates their services to make it hard to figure out what anything is going to cost you. We've switched to Digital Ocean for most of our servers, but we haven't found a good inexpensive equivalent of S3 (though we haven't looked very recently).

No software is forever. You should feel proud that you've made something that served so many people so well for many years.

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

2 participants