Comments (12)
@vito yes, it's synced, we ran the following commands in worker:
service ntp stop
ntpdate -s 0.amazon.pool.ntp.org
service ntp start
We found the problem only occurred when trying to upload a "big" file onto S3, for examples:
391.49 MB / 391.49 MB [============================] 100.00 % 404.16 KB/s 16m31serror running command: RequestTimeTooSkewed: The difference between the request time and the current time is too large.
There took 16m31s, I suspect if there is a bug in s3 resource or in S3 API, seems it compared the time of starting the upload to the end time, it took more than 15 mins. Is it possible? Thanks.
from s3-resource.
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
- #119803371 S3 uploads are prone to
RequestTimeTooSkewed
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
from s3-resource.
Is your worker's clock in sync? (ntp?)
from s3-resource.
@vito Do you think if it might be a bug in S3 resource type when transferring a "bigger" package, spending more than 15 mins? Thanks.
from s3-resource.
Could be. That's a fairly common failure mode for authenticated uploads.
from s3-resource.
This looks like a tricky problem to avoid, but one thing that may help is parallel, chunked uploads. We have code in place to do this, but I think the progress rendering got in the way:
https://github.com/concourse/s3-resource/blob/master/s3client.go#L155
We wrap Body
with a progress-emitting io.Reader
. The s3manager
performs parallel uploads by trying to cast Body
to io.Seeker
and io.ReaderAt
, which this progress-wrapped reader doesn't support. This the upload happens in series, increasing the likelihood for a single long-running request that may hit this error.
I'll prioritize a fix for this; we should probably wrap the body with an object that implements the methods that allow it to still be uploaded in parallel.
from s3-resource.
Thanks, @vito . we are willing to try with the new fix, so please let us know when it's available. Thanks. @jianqiu @maximilien
from s3-resource.
Hello again!
All stories related to this issue have been accepted, so I'm going to automatically close this issue.
At the time of writing, the following stories have been accepted:
- #119803371 S3 uploads are prone to
RequestTimeTooSkewed
If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!
from s3-resource.
Guys please help, here at htis url you may see https://www.pivotaltracker.com/n/projects/1059262/stories/119803371/comments/137771301
"zachgersh made a PR to update the aws sdk, and now uploading large files works even if they take half an hour to upload:"
How do I can get this file/script/solution?
from s3-resource.
Can you add link to PR? Not listed on the Tracker story. Thx
from s3-resource.
Running sudo ntpdate ntp.ubuntu.com
on the server fixed this for me.
from s3-resource.
@vito yes, it's synced, we ran the following commands in worker:
service ntp stop ntpdate -s 0.amazon.pool.ntp.org service ntp start
We found the problem only occurred when trying to upload a "big" file onto S3, for examples:
391.49 MB / 391.49 MB [============================] 100.00 % 404.16 KB/s 16m31serror running command: RequestTimeTooSkewed: The difference between the request time and the current time is too large.
There took 16m31s, I suspect if there is a bug in s3 resource or in S3 API, seems it compared the time of starting the upload to the end time, it took more than 15 mins. Is it possible? Thanks.
Awsome
@vito yes, it's synced, we ran the following commands in worker:
service ntp stop ntpdate -s 0.amazon.pool.ntp.org service ntp start
We found the problem only occurred when trying to upload a "big" file onto S3, for examples:
391.49 MB / 391.49 MB [============================] 100.00 % 404.16 KB/s 16m31serror running command: RequestTimeTooSkewed: The difference between the request time and the current time is too large.
There took 16m31s, I suspect if there is a bug in s3 resource or in S3 API, seems it compared the time of starting the upload to the end time, it took more than 15 mins. Is it possible? Thanks.
Awesome man, this works like boom :)
from s3-resource.
Related Issues (20)
- Gracefully handle differences in s3 API support HOT 13
- Unable to access latest version of file Hitachi S3
- Uploading file hangs when using Minio HOT 1
- Keep archive even with unpack HOT 1
- Random bucket doesn't exist errors. HOT 1
- Check fails for s3 buckets containing files with spaces in their names
- Add link to download bucket in UI
- upload to s3 bucket path without versioning and overwriting existing file HOT 1
- How can I fetch file with permanent name without version in name from not versioned S3 like minio HOT 4
- 404 on get after successful check HOT 1
- Get s3 resource does not honor region_name HOT 1
- Skip download but still get file metadata.
- What is the "key" (prefix) for versions extracted from filename by s3 resource? HOT 1
- Support assuming an IAM Role HOT 1
- Provide `s3_url` after upload
- check can takes ages and consume an inordinate amount of memory on large bucket
- Troubleshooting/Debugging options
- Code sample
- Support S3 checksum on put
- Access s3 without hardcoding IAM secret key and access key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-resource.