beanstalk:upload-source-bundle - can't upload to eu-central-1 - The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

289 views
Skip to first unread message

Kevin O'Sullivan

unread,
Nov 26, 2014, 2:17:28 PM11/26/14
to beanstal...@googlegroups.com
I'm using v1.3.4. I'm getting an error uploading a WAR file to eu-central-1.  My access checks out OK (with mvn br.com.ingenieux:beanstalk-maven-plugin:1.3.4:show-security-credentials).  Below is the error spat out from mvn.


Is there a config option to turn this on ?


Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 4AF16CF88839FCCD, AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256., S3 Extended Request ID: SLPOSxUJ2TnvLFblroazpfNa4eUralzZWZXCYJ0o+ITozb/RY1vB0vrrcJ6x8b45kQWilVL0LJ0=
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:767)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:414)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:228)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3316)
at com.amazonaws.services.s3.AmazonS3Client.initiateMultipartUpload(AmazonS3Client.java:2401)
at com.amazonaws.services.s3.transfer.internal.UploadCallable.initiateMultipartUpload(UploadCallable.java:233)
at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInParts(UploadCallable.java:130)
at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:98)
at com.amazonaws.services.s3.transfer.internal.UploadMonitor.upload(UploadMonitor.java:192)
at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:150)
at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)




Aldrin Leal

unread,
Nov 26, 2014, 2:22:11 PM11/26/14
to beanstal...@googlegroups.com
Interesting. Finally a practical reason to upgrade the plugin AWS SDK Version at all. Try this:

<plugin>
  <groupId>br.com.ingenieux</groupId>
  ... the rest ...
   <dependencies>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk</artifactId>
      <version>1.9.8</version>
    </dependency>
  </dependencies>
</plugin>

Tell me if it works or not. If it does, I'll make a release okay?

--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

--
You received this message because you are subscribed to the Google Groups "beanstalker-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beanstalker-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin O'Sullivan

unread,
Nov 26, 2014, 2:29:00 PM11/26/14
to beanstal...@googlegroups.com
Something new: 

[ERROR] Failed to execute goal br.com.ingenieux:beanstalk-maven-plugin:1.3.4:upload-source-bundle (default-cli) on project atiBeaconWebApp: Execution default-cli of goal br.com.ingenieux:beanstalk-maven-plugin:1.3.4:upload-source-bundle failed: An API incompatibility was encountered while executing br.com.ingenieux:beanstalk-maven-plugin:1.3.4:upload-source-bundle: java.lang.NoSuchMethodError: com.amazonaws.services.s3.transfer.TransferManagerConfiguration.setMultipartUploadThreshold(I)V

 Let me know if you want the full output with mvn -X ....

Aldrin Leal

unread,
Nov 26, 2014, 2:32:04 PM11/26/14
to beanstal...@googlegroups.com
Leave it to me :)

--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

Aldrin Leal

unread,
Nov 26, 2014, 5:47:54 PM11/26/14
to beanstal...@googlegroups.com

Kevin O'Sullivan

unread,
Nov 27, 2014, 4:42:03 AM11/27/14
to beanstal...@googlegroups.com
Yep - that does the trick, thanks. Is this going to pushed out as formal release any time soon, or should I continue to use the SNAPSHOT ?

Aldrin Leal

unread,
Nov 27, 2014, 8:17:22 AM11/27/14
to beanstal...@googlegroups.com
It makes it worth it to cut a release. I'll be looking into it today

--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

Kevin O'Sullivan

unread,
Nov 28, 2014, 1:31:18 PM11/28/14
to beanstal...@googlegroups.com
BTW - I'm seeing a lot of these errors on upload, but it seems to upload OK:


  49.51% 37 MiB/74 MiB                        [WARNING] Attempting to re-send the request to maven-uploads.s3-external-1.amazonaws.com with AWS V4 authentication. To avoid this warning in the future, please use region-specific endpoint to access buckets located in regions that require V4 signing.


Aldrin Leal

unread,
Dec 1, 2014, 4:14:12 AM12/1/14
to beanstal...@googlegroups.com
See if it works on the latest snapshot. Beware! things may break :)

--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

On Fri, Nov 28, 2014 at 3:31 PM, Kevin O'Sullivan <kev....@gmail.com> wrote:
BTW - I'm seeing a lot of these errors on upload, but it seems to upload OK:


  49.51% 37 MiB/74 MiB                        [WARNING] Attempting to re-send the request to maven-uploads.s3-external-1.amazonaws.com with AWS V4 authentication. To avoid this warning in the future, please use region-specific endpoint to access buckets located in regions that require V4 signing.


Kevin O'Sullivan

unread,
Dec 1, 2014, 6:33:44 AM12/1/14
to beanstal...@googlegroups.com
Seems OK...

--
You received this message because you are subscribed to a topic in the Google Groups "beanstalker-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beanstalker-users/c6GeuA3NA6U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beanstalker-us...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages