microsoft / azure-vhd-utils

Azure VHD utilities.
Other
96 stars 41 forks source link

Server failed to authenticate request #34

Closed ghost closed 8 years ago

ghost commented 8 years ago

When running the latest commit of azure-vhd-utils, I get this error when I try to use it:

2016/08/08 11:52:28 Using default container 'vhds'
2016/08/08 11:52:28 Using default parallelism [8*NumCPU] : 64
storage: service returned error: StatusCode=403, ErrorCode=AuthenticationFailed, ErrorMessage=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:requestid
Time:2016-08-08T22:52:25.7571625Z, RequestId=requestid, QueryParameterName=, QueryParameterValue=

I run it with this

./azure-vhd-utils-for-go upload --localvhdpath Debian.vhd --stgaccountname mystorageaccountname --stgaccountkey thestorageaccountkey1formystorageaccountname --blobname debian.vhd

What am I doing wrong? I got all the information for the storage account name and key from my newly created storage account's access keys.

ghost commented 8 years ago

Could this be an issue with my system time? I've searched the internet a bit more and it seems that JWT and auth errors can be caused by time. I've changed my time on my Arch Linux installation and it still seems to fail

ghost commented 8 years ago

Request date header too old: \"Mon, 08 Aug 2016 11:37:44 GMT\'', seems that's the case. Please disregard this issue.