I am using blobxfer to upload some files to Azure Storage. It's like AzCopy, but for Linux OS (whereas AzCopy is for Windows).
Basically, I have two folders at the location /home/myuser/s3/. One folder is called /uploads/, the other is called /users/. These folders contain multitudes of image files. I need to upload both these folders to an Azure container.
Keep in mind that I don't want the contents of the folders to mix on Azure storage, they need to be transferred to separate virtual folders in my Azure container. For example, I have a container called pictures, I want the contents of /s3/uploads/ (local folder) to reside within the virtual folder /uploads/ in the pictures container. Likewise for /s3/users/.
These virtual folders already exist in my container. The command I tried from the commandline was:
blobxfer mystorageaccount pictures /home/myuser/s3 --upload --storageaccountkey=<primary access key from portal.azure.com> --no-container
This fails with Unknown error (The value for one of the HTTP headers is not in the correct format.). The full traceback being:
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format.
RequestId:61a1486c-0101-00d6-13b5-408578134000
Time:2015-12-27T12:56:03.5390180Z</Message><HeaderName>x-ms-blob-content-length</HeaderName><HeaderValue>0</HeaderValue></Error>
Exception in thread Thread-49 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
File "/home/myuser/.virtualenvs/redditpk/local/lib/python2.7/site-packages/blobxfer.py", line 506, in run
File "/home/myuser/.virtualenvs/redditpk/local/lib/python2.7/site-packages/blobxfer.py", line 597, in putblobdata
File "/home/myuser/.virtualenvs/redditpk/local/lib/python2.7/site-packages/blobxfer.py", line 652, in azure_request
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Timeout'
What am I doing wrong, and how can I fix this?