[JIRA] (JENKINS-60916) S3 upload fails with gzipFiles set to true

8 views
Skip to first unread message

berin@frosk.co.jp (JIRA)

unread,
Jan 30, 2020, 2:45:03 AM1/30/20
to jenkinsc...@googlegroups.com
Berin Babcock-McConnell created an issue
 
Jenkins / Bug JENKINS-60916
S3 upload fails with gzipFiles set to true
Issue Type: Bug Bug
Assignee: Alexander A
Components: s3-plugin
Created: 2020-01-30 07:44
Environment: Jenkins ver. 2.217
S3 publisher ver. 0.11.3
Priority: Minor Minor
Reporter: Berin Babcock-McConnell

After upgrading the S3 publisher plugin to version 0.11.3 we found that uploads with gzipFiles set to true fail with the following message:

ERROR: Failed to upload files
ERROR: Failed to upload files
com.amazonaws.SdkClientException: Failed to mark the file position at com.amazonaws.internal.ResettableInputStream.mark(ResettableInputStream.java:148) at com.amazonaws.internal.SdkFilterInputStream.mark(SdkFilterInputStream.java:114) at com.amazonaws.util.LengthCheckInputStream.mark(LengthCheckInputStream.java:116) at com.amazonaws.internal.SdkFilterInputStream.mark(SdkFilterInputStream.java:114) at com.amazonaws.services.s3.internal.MD5DigestCalculatingInputStream.mark(MD5DigestCalculatingInputStream.java:94) at com.amazonaws.internal.SdkFilterInputStream.mark(SdkFilterInputStream.java:114) at com.amazonaws.internal.SdkFilterInputStream.mark(SdkFilterInputStream.java:114) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1081) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:784) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:752) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686) at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:5052) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4998) at com.amazonaws.services.s3.AmazonS3Client.access$300(AmazonS3Client.java:394) at com.amazonaws.services.s3.AmazonS3Client$PutObjectStrategy.invokeServiceCall(AmazonS3Client.java:5940) at com.amazonaws.services.s3.AmazonS3Client.uploadObject(AmazonS3Client.java:1808) at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1768) at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:131) at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:123) at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:143) at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:48) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:110) at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:253) at com.amazonaws.internal.ResettableInputStream.mark(ResettableInputStream.java:146)
 ... 28 more

If we revert the plugin to 0.11.2 uploads function as expected.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

berin@frosk.co.jp (JIRA)

unread,
Jan 30, 2020, 2:52:02 AM1/30/20
to jenkinsc...@googlegroups.com
Berin Babcock-McConnell updated an issue
After upgrading the S3 publisher plugin to version 0.11.3 we found that uploads with gzipFiles set to true fail with the following message:
{noformat}
at com.amazonaws.internal.ResettableInputStream.mark(ResettableInputStream.java:146)
... 28 more{noformat}

If we revert the plugin to 0.11.2 uploads function as expected.

danielahcardona@gmail.com (JIRA)

unread,
Feb 5, 2020, 3:30:03 PM2/5/20
to jenkinsc...@googlegroups.com
Daniel Alejandro Hernández commented on Bug JENKINS-60916
 
Re: S3 upload fails with gzipFiles set to true

+1.

Same issue here after using 0.11.3 with Jenkins 2.204.1, since we build a new jenkins image each month I'm not sure what might broke the job If the upgrade of Jenkins but based on when plugin is released I might bet for the plugin https://github.com/jenkinsci/s3-plugin/releases/tag/s3-0.11.3.

matthias.vandemeent+jenkins@cofano.nl (JIRA)

unread,
Mar 4, 2020, 6:47:02 AM3/4/20
to jenkinsc...@googlegroups.com

I've recently bumped into this issue as well, and have a probable fix ready in https://github.com/jenkinsci/s3-plugin/pull/127

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages