boto3+s3 bucket fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Invalid
|
Undecided
|
Unassigned | ||
duplicity (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
I have a duplicity job that runs on multiple hosts, and am now having failures on my 20.04 hosts.
The syntax for the job (as I am currently testing to debug) is:
duplicity --dry-run list-current-files --name $name --s3-use-ia --archive-dir $archiveDir --tempdir $tmpDir --s3-multipart-
Using the duplicity packages from focal/main
duplicity=
And I installed the boto packages from focal/universe
python3-
python3-
This runs into the error:
Using temporary directory $tmpDir/
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/lib/
action = commandline.
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
return factory(pu)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
return self._make_
File "/home/
raise error_class(
botocore.
I then tried the duplicity snap from the snap store, both the stable and edge builds, with the same issue:
Main action: list-current
=======
duplicity 0.8.17
Args: /snap/duplicity
Linux duplicity 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64
/snap/duplicity
[GCC 8.4.0]
=======
Attempt 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
Main action: list-current
=======
duplicity 0.8.18.dev11
Args: /snap/duplicity
Linux duplicity 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64
/snap/duplicity
[GCC 8.4.0]
=======
Attempt 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden
I also tried to update the boto3/botocore packages by way of pip3:
pip3 freeze | grep boto
boto3==1.16.19
botocore==1.19.19
And lastly as a last ditch, I tried to pull the packages from the groovy/universe repo, bringing them to:
python3-boto3 1.13.14-1
python3-botocore 1.17.22+
I have also tried in a 20.10 system as well to see if any changes there, but same results.
Hoping for something I can look at to get this back working as it was in 18.04 since 14.04.
For good measure, I verified in a bionic build that using the same arguments as above with duplicity=0.7.17
python-
I then verified by uninstalling the deb and installing the snap (0.8.17) on bionic that the behavior stays the same.
And just to satisfy the 1-4 guidelines:
1. The main system I am having issues with:
$ lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Also tested against
$ lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04
$ lsb_release -rd
Description: Ubuntu 20.10
Release: 20.10
2. $ apt-cache policy duplicity
duplicity:
Installed: 0.8.11.1612-1
Candidate: 0.8.11.1612-1
Version table:
*** 0.8.11.1612-1 500
500 http://
100 /var/lib/
3. Expect duplicity to function against my s3 bucket.
4. botocore.
Changed in duplicity (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Incomplete |
Changed in duplicity: | |
importance: | Medium → Undecided |
milestone: | 0.8.18 → none |
status: | In Progress → Invalid |
Changed in duplicity (Ubuntu): | |
status: | Incomplete → Invalid |
Have you tried reading your files with s3cmd or another tool?
If that works, check permission keys etc..
If that does not work, I'd like a log file, please. This is going big and I only need a portion. Please run with -v9, redirect to a log file, then run:
$ head -n 200 < log > log.head
$ tail -n 200 < log > log.tail
Attach, do NOT copy/paste, log.head and log.tail to this bug report. See green button below.