Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60916

S3 upload fails with gzipFiles set to true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • s3-plugin
    • None
    • Jenkins ver. 2.217
      S3 publisher ver. 0.11.3

      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
      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.

            jimilian Alexander A
            spectre683 Berin Babcock-McConnell
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: