This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
AuthenticationFailed attempting to use SAS URL #80
Closed
Description
First of all: thanks for all of the hard work on this project!
Problem Description
I am attempting to upload to a SAS URL, but I'm a bit confused on how exactly to specify the storage account name, bucket and full path.
Azure blobxfer parameters output
============================================
Azure blobxfer parameters
============================================
blobxfer version: 1.3.1
platform: Darwin-16.7.0-x86_64-i386-64bit
components: CPython=2.7.15-64bit azstor.blob=1.3.0 azstor.file=1.3.0 crypt=2.3 req=2.19.1
transfer direction: local -> Azure
workers: disk=16 xfer=32 md5=0 crypto=0
log file: None
dry run: False
resume file: None
timeout: connect=10 read=19 max_retries=1000
mode: StorageModes.Auto
skip on: fs_match=False lmt_ge=False md5=False
delete extraneous: False
overwrite: True
recursive: True
rename single: False
access tier: None
chunk size bytes: 0
one shot bytes: 0
strip components: 0
store properties: attr=False md5=False
rsa public key: None
local source paths: reference_data.zip
Steps to Reproduce
Here's what I'm doing now:
blobxfer upload \
--storage-account azure-storage-account-name \
--sas "?sr=b&sp=w&sv=2014-02-14&st=2018-08-01T22%3A25%3A26Z&sig=some_signature=&se=2018-11-29T22%3A25%3A26Z" \
--remote-path "bucket_name/and/then/the/path" \
-v \
--enable-azure-storage-logger \
--local-path reference_data.zip
Expected Results
To upload the file
Actual Results
2018-08-01 20:35:42,328 INFO - blobxfer start time: 2018-08-01 20:35:42.328140-07:00
2018-08-01 20:35:42,328 DEBUG - spawning 16 disk threads
2018-08-01 20:35:42,332 DEBUG - spawning 32 transfer threads
2018-08-01 20:35:44,022 ERROR - Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. ErrorCode: AuthenticationFailed
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/blobxfer/operations/upload.py", line 1208, in start
self._run()
File "/usr/local/lib/python2.7/site-packages/blobxfer/operations/upload.py", line 1102, in _run
self._generate_destination_for_source(src)
File "/usr/local/lib/python2.7/site-packages/blobxfer/operations/upload.py", line 931, in _generate_destination_for_source
ase = self._check_for_existing_remote(sa, cont, name)
File "/usr/local/lib/python2.7/site-packages/blobxfer/operations/upload.py", line 872, in _check_for_existing_remote
sa.block_blob_client, cont, name, self._spec.options.mode)
File "/usr/local/lib/python2.7/site-packages/blobxfer/operations/azure/blob/__init__.py", line 83, in get_blob_properties
container_name=container, blob_name=prefix, timeout=timeout)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/storage/blob/baseblobservice.py", line 1530, in get_blob_properties
return self._perform_request(request, _parse_blob, [blob_name, snapshot])
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/storage/common/storageclient.py", line 381, in _perform_request
raise ex
AzureHttpError: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. ErrorCode: AuthenticationFailed
Activity