← Back to team overview

duplicity-team team mailing list archive

[Question #273031]: BackendException: hostname 'x.y.z.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'

 

New question #273031 on Duplicity:
https://answers.launchpad.net/duplicity/+question/273031

I'm facing a strange problem when trying to retrieve the collection-status. It seems to work ok with python 2.7.3, but not with 2.7.10

$ duplicity  --encrypt-key=******* collection-status --s3-use-new-style s3+http://backups.testuff.com/x.y.z/weekly/
BackendException: hostname 'x.y.z.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'

If I remove '--s3-new-new-style' it also seems to work, but it used to work fine even with this setting on python 2.7.3

Using latest 0.6.26 version of duplicity and tested against both versions of python.

more detailed trace using -v9

$ duplicity  -v9 --encrypt-key=******* collection-status --s3-use-new-style s3+http://backups.testuff.com/x.y.z/weekly/

Duplicity 0.6 series is being deprecated:
See http://www.nongnu.org/duplicity/

Using archive dir: /root/.cache/duplicity/f1f371ac61f2275b203deb75c28cb854
Using backup name: f1f371ac61f2275b203deb75c28cb854
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.~par2wrapperbackend Succeeded
Using temporary directory /tmp/duplicity-jOtAmf-tempdir
Backend error detail: Traceback (most recent call last):
  File "/usr/bin/testuff/virtualenv/server2/bin/duplicity", line 1509, in <module>
    with_tempdir(main)
  File "/usr/bin/testuff/virtualenv/server2/bin/duplicity", line 1503, in with_tempdir
    fn()
  File "/usr/bin/testuff/virtualenv/server2/bin/duplicity", line 1336, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/bin/testuff/virtualenv/server2/lib/python2.7/site-packages/duplicity/commandline.py", line 1054, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/bin/testuff/virtualenv/server2/lib/python2.7/site-packages/duplicity/backend.py", line 163, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/bin/testuff/virtualenv/server2/lib/python2.7/site-packages/duplicity/backends/_boto_single.py", line 163, in __init__
    self.resetConnection()
  File "/usr/bin/testuff/virtualenv/server2/lib/python2.7/site-packages/duplicity/backends/_boto_single.py", line 189, in resetConnection
    raise BackendException(err.message)
BackendException: hostname 'x.y.z.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'


-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.