com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416)

Jenkins JIRA | Tomonari Nakamura | 1 year ago
  1. 0

    I couldn't a launch spot instance with latest ec2-plugin. I investigated the cause by debuging on local machine and found that requestSpotInstances failed with a following error message. {code} com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416) {code} As a result of a more detail investigation, a "LaunchSpecification#setSecurityGroups" caused the problem. When I commented out the code, I could launch an spot instance without the error ( of course, I couldn't access the instance because of lack of an appropriate security group ). h3. workaround I downgraded version of aws-java-sdk to 1.9.40 written in pom.xml. It happens when the library whose version is 1.10.* or later is used. So I downgraded it manually and fixed some compile errors according to the downgrading. It seems ok but I don't confirmed whether there is another problem. h3. permanent fix I'm not sure but I think fixing and updating aws-java-sdk will solve this problem in the future. Current latest version ( 1.10.14 ) of the library cannot solve this problem. h3. stack trace {code} com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1160) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:748) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:467) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:302) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11768) at com.amazonaws.services.ec2.AmazonEC2Client.requestSpotInstances(AmazonEC2Client.java:7027) at hudson.plugins.ec2.SlaveTemplate.provisionSpot(SlaveTemplate.java:784) ... {code}

    Jenkins JIRA | 1 year ago | Tomonari Nakamura
    com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416)
  2. 0

    I couldn't a launch spot instance with latest ec2-plugin. I investigated the cause by debuging on local machine and found that requestSpotInstances failed with a following error message. {code} com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416) {code} As a result of a more detail investigation, a "LaunchSpecification#setSecurityGroups" caused the problem. When I commented out the code, I could launch an spot instance without the error ( of course, I couldn't access the instance because of lack of an appropriate security group ). h3. workaround I downgraded version of aws-java-sdk to 1.9.40 written in pom.xml. It happens when the library whose version is 1.10.* or later is used. So I downgraded it manually and fixed some compile errors according to the downgrading. It seems ok but I don't confirmed whether there is another problem. h3. permanent fix I'm not sure but I think fixing and updating aws-java-sdk will solve this problem in the future. Current latest version ( 1.10.14 ) of the library cannot solve this problem. h3. stack trace {code} com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1160) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:748) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:467) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:302) at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11768) at com.amazonaws.services.ec2.AmazonEC2Client.requestSpotInstances(AmazonEC2Client.java:7027) at hudson.plugins.ec2.SlaveTemplate.provisionSpot(SlaveTemplate.java:784) ... {code}

    Jenkins JIRA | 1 year ago | Tomonari Nakamura
    com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416)
  3. 0

    [JIRA] [ec2-plugin] (JENKINS-30208) Can't launch spot slave instance with aws-java-sdk 1.10.*

    Google Groups | 1 year ago | ikikko+jenkins@gmail.com (JIRA)
    com.amazonaws.AmazonServiceException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation <span class="code-keyword" style="color: #000091">for</span> details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    amazon web services: mai 2015

    blogspot.com | 1 year ago
    com.amazonaws.AmazonServiceException: The message attribute 'amount' must contain non-empty message attribute type. (Service: AmazonSQS; Status Code: 400; Error Code: InvalidParameterValue; Request ID: 69ee2891-1a47-5511-982f-6575ebc8a1ed)
  6. 0

    How to delete an item in DynamoDB using Java?

    Stack Overflow | 1 year ago | android-user
    com.amazonaws.AmazonServiceException: 1 validation error detected: Value null at 'key' failed to satisfy constraint: Member must not be null (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: RQ70OIGOQAJ9MRGSUA0UIJLRUNVV4KQNSO5AEMVJF66Q9ASUAAJG)

  1. aldrinleal 1 times, last 4 months ago
  2. tyson925 3 times, last 5 months ago
41 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.amazonaws.AmazonServiceException

    The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: AmazonEC2; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: cd0cd93d-cdc6-45d9-8cdd-5a5b72ed1416)

    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
  2. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1160)
    2. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:748)
    3. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:467)
    4. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:302)
    4 frames
  3. AWS Java SDK for Amazon EC2
    AmazonEC2Client.requestSpotInstances
    1. com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11768)
    2. com.amazonaws.services.ec2.AmazonEC2Client.requestSpotInstances(AmazonEC2Client.java:7027)
    2 frames
  4. hudson.plugins.ec2
    SlaveTemplate.provisionSpot
    1. hudson.plugins.ec2.SlaveTemplate.provisionSpot(SlaveTemplate.java:784)
    1 frame