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

Unable to upload the build files to S3 bucket- ap-south-1 region

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: s3-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Hi,

      I have created an S3 bucket on my AWS account. I am hosting my all instances on ap-south-1 region. But I believe that we don't have to specify region for S3 bucket hence its says Global in AWS.

      But in S3 plogin I have to specify the region and I don't see a ap-south-1 region so I selected the default us-west-1 region but I get the below error.
      ----------------------------
      Publish artifacts to S3 Bucket Build is still running
      Publish artifacts to S3 Bucket Using S3 profile: S3AllAccess
      Publish artifacts to S3 Bucket bucket=api.poppyquiz.com/12, file=app.js region=us-east-1, will be uploaded from slave=false managed=false , server encryption false
      Publish artifacts to S3 Bucket bucket=api.poppyquiz.com/12, file=client_secret.json region=us-east-1, will be uploaded from slave=false managed=false , server encryption false
      Publish artifacts to S3 Bucket bucket=api.poppyquiz.com/12, file=npm-debug.log region=us-east-1, will be uploaded from slave=false managed=false , server encryption false
      Publish artifacts to S3 Bucket bucket=api.poppyquiz.com/12, file=package.json region=us-east-1, will be uploaded from slave=false managed=false , server encryption false
      ERROR: Build step failed with exception
      com.amazonaws.AmazonClientException: Not able to determine region for ap-south-1.Please upgrade to a newer version of the SDK
      at com.amazonaws.services.s3.internal.S3RequestEndpointResolver.resolveRequestEndpoint(S3RequestEndpointResolver.java:105)
      at com.amazonaws.services.s3.internal.S3V4AuthErrorRetryStrategy.redirectToRegionInHeader(S3V4AuthErrorRetryStrategy.java:87)
      at com.amazonaws.services.s3.internal.S3V4AuthErrorRetryStrategy.shouldRetryWithAuthParam(S3V4AuthErrorRetryStrategy.java:72)
      at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:903)
      at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:597)
      at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:363)
      at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:329)
      at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:308)
      at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3659)
      at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1422)
      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:139)
      at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:47)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Build step 'Publish artifacts to S3 Bucket' marked build as failure
      ----------------------------

      Because of this issue I am not at all able to use this plugin.

      I really appreciate help in this regard

        Attachments

          Activity

          shravanjha shravan jha created issue -
          shravanjha shravan jha made changes -
          Field Original Value New Value
          Summary Unable to upload the build files to S3 bucket Unable to upload the build files to S3 bucket- ap-south-1 region

            People

            Assignee:
            jimilian Alexander A
            Reporter:
            shravanjha shravan jha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: