VK Cloud logo

SignatureDoesNotMatch error when accessing object storage

When accessing object storage via API or using AWS CLI, the following error is returned:

An error occurred (SignatureDoesNotMatch) when calling the... operation: The request signature we calculated does not match the signature you provided. Check your key and signing method`.

This error indicates that the request signature does not match the one expected by the server. The cause is usually related to the client environment configuration.

Solution

  1. Make sure that the domain of the service in the --endpoint-url command parameter is specified correctly and matches the region of your VK Object Storage account:

    • https://hb.vkcloud-storage.ru or https://hb.ru-msk.vkcloud-storage.ru — the domain of the Moscow region;
    • https://hb.kz-ast.vkcloud-storage.ru — the domain of the Kazakhstan region.
  2. Make sure that the Access Key ID and Secret Access Key are specified in the ~/.aws/credentials configuration file without typos, extra spaces, or other characters. Also check whether the environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) override the values from the configuration file.

    To rule out an error in the access keys, create a new pair of Access Key ID and Secret Access Key for your VK Object Storage account.

  3. Make sure that the system time is synchronized with an NTP time server.

    To force time synchronization, run the command:

    sudo timedatectl set-ntp true
  4. To get detailed information about the request formation and identify the cause of the error, add the --debug flag to the AWS CLI command.

  5. If the issue persists, contact technical support.

Was this article helpful?