java.lang.RuntimeException

com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 301, AWS Service: Amazon S3, AWS Request ID: FFC11C51CF485478, 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: RkHqHGuiRN2SmQQMwem4elgLyM6VGvnuDicN9y81n7oYIV9y8gxTqrmfDkrI+cVSw77QE6TsDc0=

Samebug tips1

tip

Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web179

  • via by Michal Krupa,
  • via by Michal Krupa,
  • Stack trace

    • java.lang.RuntimeException: com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 301, AWS Service: Amazon S3, AWS Request ID: FFC11C51CF485478, 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: RkHqHGuiRN2SmQQMwem4elgLyM6VGvnuDicN9y81n7oYIV9y8gxTqrmfDkrI+cVSw77QE6TsDc0= at br.com.ingenieux.jenkins.plugins.awsebdeployment.AWSEBDeploymentBuilder.perform(AWSEBDeploymentBuilder.java:211) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 301, AWS Service: Amazon S3, AWS Request ID: FFC11C51CF485478, 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: RkHqHGuiRN2SmQQMwem4elgLyM6VGvnuDicN9y81n7oYIV9y8gxTqrmfDkrI+cVSw77QE6TsDc0= at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:725) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:388) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:249) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3104) at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1233) at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1080) at br.com.ingenieux.jenkins.plugins.awsebdeployment.Deployer.uploadArchive(Deployer.java:194) at br.com.ingenieux.jenkins.plugins.awsebdeployment.Deployer.perform(Deployer.java:110) at br.com.ingenieux.jenkins.plugins.awsebdeployment.AWSEBDeploymentBuilder.perform(AWSEBDeploymentBuilder.java:207) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown UserUnknown User
    48 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    49 more bugmates