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

2 views
Skip to first unread message

roman.blachman@gmail.com (JIRA)

unread,
Sep 11, 2015, 4:05:03 PM9/11/15
to jenkinsc...@googlegroups.com
Roman Blachman updated an issue
 
Jenkins / Bug JENKINS-30420
S3 Plugin doesn't work with latest Java8 (8u60)
Change By: Roman Blachman
{code}
ERROR: Failed to upload files
java.io.IOException: put Destination [bucketName=
preempt- 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}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

roman.blachman@gmail.com (JIRA)

unread,
Sep 11, 2015, 4:06:54 PM9/11/15
to jenkinsc...@googlegroups.com
Roman Blachman created an issue
Issue Type: Bug Bug
Assignee: Michael Watt
Components: s3-plugin
Created: 11/Sep/15 8:04 PM
Environment: Jenkins 1.628 with S3 Plugin 0.7 with Oracle Java 8u60 installed on Ubuntu 14.04
Labels: plugin
Priority: Major Major
Reporter: Roman Blachman
ERROR: Failed to upload files
java.io.IOException: put Destination [bucketName=preempt-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

roman.blachman@gmail.com (JIRA)

unread,
Sep 11, 2015, 4:11:01 PM9/11/15
to jenkinsc...@googlegroups.com
Roman Blachman updated an issue
Change By: Roman Blachman
{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.

roman.blachman@gmail.com (JIRA)

unread,
Sep 11, 2015, 4:11:02 PM9/11/15
to jenkinsc...@googlegroups.com
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.

roman.blachman@gmail.com (JIRA)

unread,
Sep 11, 2015, 4:31:01 PM9/11/15
to jenkinsc...@googlegroups.com
Roman Blachman commented on Bug JENKINS-30420
 
Re: S3 Plugin doesn't work with latest Java8 (8u60)

Seems like there is a workaround for this problem, just download joda-time-2.8.2.jar and replace it with the current dependency joda-time-2.6.jar inside the /var/lib/jenkins/plugins/s3/WEB-INF/lib folder on the Jenkins machine. Finally, a restart to the Jenkins process is required. works like a charm!

ct323i@yahoo.com (JIRA)

unread,
Sep 11, 2015, 4:48:01 PM9/11/15
to jenkinsc...@googlegroups.com
ct323i commented on Bug JENKINS-30420

I ran into this issue also with the AWS Elastic Beanstalk Deployment Plugin, my workaround was downgrading from 8u60 to 8u45.

isaac.anderson@tkbt.com (JIRA)

unread,
Nov 12, 2015, 12:33:01 AM11/12/15
to jenkinsc...@googlegroups.com
Isaac A commented on Bug JENKINS-30420

Updating to the latest version of the plugin (0.8) resolved this issue for me.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Dec 8, 2015, 2:28:01 PM12/8/15
to jenkinsc...@googlegroups.com

I created a PR to work on this: https://github.com/jenkinsci/s3-plugin/pull/76

Quick workaround is to use the <dependencyManagement/> on the plugin as joda-time is behind 3 layers of dependencies.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Dec 8, 2015, 4:34:01 PM12/8/15
to jenkinsc...@googlegroups.com
Adrien Lecharpentier updated an issue
 
Change By: Adrien Lecharpentier
Comment:
I created a PR to work on this: https://github.com/jenkinsci/s3-plugin/pull/76

Quick workaround is to use the {{<dependencyManagement/>}} on the plugin as {{joda-time}} is behind 3 layers of dependencies.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Dec 8, 2015, 4:39:02 PM12/8/15
to jenkinsc...@googlegroups.com
 
Re: S3 Plugin doesn't work with latest Java8 (8u60)

This issue can be closed as the release 0.8 is using joda-time 2.8.1 which solved the problem.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Dec 8, 2015, 4:40:01 PM12/8/15
to jenkinsc...@googlegroups.com
Adrien Lecharpentier resolved as Fixed
 

Resolved with s3-plugin 0.8 using joda-time 2.8.1

Change By: Adrien Lecharpentier
Status: Open Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages