Comment 7 for bug 1860405

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1860405] Re: The authorization mechanism you have provided is not supported

Use pip3 to install boto3. duplicity runs under Python 3.6 and up.

On Thu, Feb 6, 2020 at 8:55 PM Johan <email address hidden> wrote:

> Please elaborate.
>
> $ pip install boto3
>
> $ pip show boto3
> Name: boto3
> Version: 1.11.12
>
> # duplicity --s3-european-buckets --s3-use-new-style -v 4 --archive-
> dir=/root/duptest --full-if-older-than 14D test
> "boto3+s3://mybucket/private/backups/database/test"
>
> BackendException: Could not initialize backend: No module named 'boto3'
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1860405
>
> Title:
> The authorization mechanism you have provided is not supported
>
> Status in Duplicity:
> Incomplete
>
> Bug description:
> Ubuntu 18.04
> Duplicity 0.7.17
> Python 2.7.17
> Boto 2.49.0
>
> $ duplicity --s3-european-buckets --s3-use-new-style -v 4 --archive-
> dir=/root/duptest --full-if-older-than 14D test
> "s3+http://mybucket/private/backups/test"
>
> Traceback (innermost last):
> File "/usr/bin/duplicity", line 1555, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity", line 1541, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 1380, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
> 1135, in ProcessCommandLine
> backup, local_pathname = set_backend(args[0], args[1])
> File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
> 1010, in set_backend
> globals.backend = backend.get_backend(bend)
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line
> 223, in get_backend
> obj = get_backend_object(url_string)
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line
> 209, in get_backend_object
> return factory(pu)
> File
> "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line
> 166, in __init__
> self.resetConnection()
> File
> "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line
> 191, in resetConnection
> location=self.my_location)
> File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py",
> line 628, in create_bucket
> response.status, response.reason, body)
> S3ResponseError: S3ResponseError: 400 Bad Request
> <?xml version="1.0" encoding="UTF-8"?>
> <Error><Code>InvalidRequest</Code><Message>The authorization mechanism
> you have provided is not supported. Please use
> AWS4-HMAC-SHA256.</Message><RequestId>7F755XXXF5359CB9</RequestId><HostId>tlcPGQlt+E7xxxxN4Vsl/L6HVM57NaFnI/mwsgresi8wseMY+XUMT8LVyjGxxxxXDCFKMt/w=</HostId></Error>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1860405/+subscriptions
>