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.
-
Make sure that the domain of the service in the
--endpoint-urlcommand parameter is specified correctly and matches the region of your VK Object Storage account:https://hb.vkcloud-storage.ruorhttps://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.
-
Make sure that the Access Key ID and Secret Access Key are specified in the
~/.aws/credentialsconfiguration 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.
-
Make sure that the system time is synchronized with an NTP time server.
To force time synchronization, run the command:
Linux/macOSWindowssudo timedatectl set-ntp true -
To get detailed information about the request formation and identify the cause of the error, add the
--debugflag to the AWS CLI command. -
If the issue persists, contact technical support.