create_queue - getting 'binascii.Error: Incorrect padding'


  • EDIT: Where can I find my account_name and account_key from my storage account or what does it look like?  Thanks.

    EDIT2: I've found



    I simply try to create a queue with the python sdk in python3.4 but with this code:

    from import QueueService
    q = QueueService("user", "password")

    I get:

    Traceback (most recent call last):
      File "", line 4, in <module>
      File "/usr/local/lib/python3.4/dist-packages/azure/storage/", line 151, in create_queue
        request, self.account_name, self.account_key)
      File "/usr/local/lib/python3.4/dist-packages/azure/storage/", line 447, in _update_storage_queue_header
        return _update_storage_blob_header(request, account_name, account_key)
      File "/usr/local/lib/python3.4/dist-packages/azure/storage/", line 440, in _update_storage_blob_header
      File "/usr/local/lib/python3.4/dist-packages/azure/storage/", line 516, in _sign_storage_blob_request
        _sign_string(account_key, string_to_sign)
      File "/usr/local/lib/python3.4/dist-packages/azure/", line 988, in _sign_string
        key = _decode_base64_to_bytes(key)
      File "/usr/local/lib/python3.4/dist-packages/azure/", line 167, in _decode_base64_to_bytes
        return base64.b64decode(data)
      File "/usr/lib/python3.4/", line 90, in b64decode
        return binascii.a2b_base64(s)
    binascii.Error: Incorrect padding

    The thing is that I'm trying to create a linux auto-scaling farm of ubuntu VMs with a single queue. when this queue contains more than x message, the farm scales up and instead of using 1 VM, it uses 2 or 3.

    I already have my VMs , I configured the availability set, the load-balancing but I'm stopped on queues.

    It somebody could help, it would be great!


    • Edited by j2f2a Monday, February 2, 2015 10:41 AM
    Friday, January 23, 2015 8:19 AM