java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11

Jenkins JIRA | Roman Blachman | 1 year ago
  1. 0

    {code} ERROR: Failed to upload files java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11 at hudson.plugins.s3.S3Profile.upload(S3Profile.java:152) at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:174) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE {code} relates to: https://github.com/aws/aws-sdk-java/issues/484 https://github.com/aws/aws-sdk-java/issues/444 solution seems to be related to JodaTime package version dependency of the AWS SDK that was fixed with version 1.10.1 while plugin version 0.7 in Jenkins uses AWS SDK version 1.9.6.

    Jenkins JIRA | 1 year ago | Roman Blachman
    java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11
  2. 0

    {code} ERROR: Failed to upload files java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11 at hudson.plugins.s3.S3Profile.upload(S3Profile.java:152) at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:174) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE {code} relates to: https://github.com/aws/aws-sdk-java/issues/484 https://github.com/aws/aws-sdk-java/issues/444 solution seems to be related to JodaTime package version dependency of the AWS SDK that was fixed with version 1.10.1 while plugin version 0.7 in Jenkins uses AWS SDK version 1.9.6.

    Jenkins JIRA | 1 year ago | Roman Blachman
    java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11
  3. 0

    [JIRA] [s3-plugin] (JENKINS-30420) S3 Plugin doesn't work with latest Java8 (8u60)

    Google Groups | 1 year ago | roman.blachman@gmail.com (JIRA)
    java.io.IOException: put Destination [bucketName=preempt-build, objectName=<span class="code-keyword" style="color: #000091">package</span>-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-18839] S3 plugin fails to upload to EU region (wrong endpoint) - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.io.IOException: put Destination : Status Code: 301, AWS Service: Amazon S3, AWS Request ID: B731FD3EB3E36D68, AWS Error Code: PermanentRedirect, AWS Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint., S3 Extended Request ID: 1ayMHpR5YBq9DtqzPnBq5NdFR0Jn6kRbeaqrUPD4Ur+oUcL2vQlCiGbJSxjr9KXi
  6. 0

    We use the S3 plugin in both a newer Jenkins install (v1.471, waiting for some important stuff to clear before we update it to 1.474) and a few older Hudson builds. The current Jenkins w/S3 (v0.3) works for a while, then all our builds stop uploading to S3 with an "Access Denied" error from Amazon. The builds on the older Hudson/S3 still work to the same bucket, and our credentials still work when I test with s3fs on the same machine. Error from Jenkins build console of one failure (buckets and filenames changed to xxxxx): Archiving artifacts Publish artifacts to S3 Bucket Using S3 profile: builds2 Publish artifacts to S3 Bucket bucket=xxxxxxx/store, file=xxxxxxx.latest.apk ERROR: Failed to upload files java.io.IOException: put Destination [bucketName=xxxxxxxxx, objectName=xxxxxxx/store/xxxxxxxxxxx.latest.apk]: Status Code: 403, AWS Request ID: 85F9CB0156BF7CF6, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: swP7ylP4SQNW3o9uP3alhBO/VZthqvuFxWiZ2Pn54mqhSHk2uEtSrIlhPXlJLPUM at hudson.plugins.s3.S3Profile.upload(S3Profile.java:82) at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:119) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1509) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE

    Jenkins JIRA | 4 years ago | Theral Mackey
    java.io.IOException: put Destination [bucketName=xxxxxxxxx, objectName=xxxxxxx/store/xxxxxxxxxxx.latest.apk]: Status Code: 403, AWS Request ID: 85F9CB0156BF7CF6, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: swP7ylP4SQNW3o9uP3alhBO/VZthqvuFxWiZ2Pn54mqhSHk2uEtSrIlhPXlJLPUM

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11

      at hudson.plugins.s3.S3Profile.upload()
    2. hudson.plugins.s3
      S3BucketPublisher.perform
      1. hudson.plugins.s3.S3Profile.upload(S3Profile.java:152)
      2. hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:174)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:408)
      9 frames