Introduction of detailed S3 parameters breaks existing AWS setups

Bug #1889152 reported by Manuel J.
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
duplicity (Ubuntu)
Fix Committed

Bug Description


I just got an update of duplicity via snap to version 0.8.15.

Running my backup script running duplicity as follows:
duplicity incremental
--include-filelist backup_include.lst.txt \
--exclude-filelist backup_exclude.lst.txt \
--exclude-other-filesystems \
--exclude-device-files \
--progress \
--full-if-older-than 45D \

...resulted in the following error:
Traceback (innermost last):
  File "/snap/duplicity/111/bin/duplicity", line 104, in <module>
  File "/snap/duplicity/111/bin/duplicity", line 90, in with_tempdir
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/", line 1518, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/", line 1200, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/", line 1071, in set_backend
    config.backend = backend.get_backend(bend)
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/", line 209, in get_backend_object
    return factory(pu)
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/backends/", line 85, in __init__
  File "/snap/duplicity/111/lib/python3.6/site-packages/duplicity/backends/", line 93, in reset_connection
    self.s3 = boto3.resource(u's3', region_name=config.s3_region_name, endpoint_url=config.s3_endpoint_url)
 AttributeError: module 'duplicity.config' has no attribute 's3_region_name'

*Actual behaviour*
It seems like the changes introduced via made the parameters `s3-region-name` and `s3-endpoint-url` mandatory, which breaks existing AWS S3 setups.

*Expected behaviour*
These parameters should be optional.

*Duplicity version*: 0.8.15
*Python version*: 3.6
*OS distro and version*: Ubuntu 20.04
*Target filesystem*: Linux to AWS S3

Thanks for your work!

EDIT: Added duplicity command.

Manuel J. (maennel)
description: updated
Changed in duplicity:
importance: Undecided → High
milestone: none → 0.8.16
status: New → Fix Committed
Changed in duplicity (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers