3

When running Duplicity to backup to B2 (Backblaze) it fails with the following error:

Attempt 1 failed. AttributeError: B2ProgressListener instance has no attribute '__exit__'
Attempt 2 failed. AttributeError: B2ProgressListener instance has no attribute '__exit__'
Attempt 3 failed. AttributeError: B2ProgressListener instance has no attribute '__exit__'
Attempt 4 failed. AttributeError: B2ProgressListener instance has no attribute '__exit__'
Giving up after 5 attempts. AttributeError: B2ProgressListener instance has no attribute '__exit__'

I run it with the following command line:

  duplicity ~ b2://account:key@bucket

There is an empty file created in the B2 bucket, so access to the cloud seems to be working. What is wrong with my setup?

Ubuntu is version 16.04. Python is version 2.7.12. Duplicity is version 0.7.17. b2 backend is 1.3.4.

Jeff
  • 901
  • 1
  • 9
  • 22

2 Answers2

5

should be fixed in duplicity 0.7.18 released yesterday

  • Fixed bug #1785520 with patch from Chris Hunt
    • Fix for B2 version 1.3.4 just released

https://launchpad.net/duplicity/+milestone/0.7.18

..ede/duply.net

ede
  • 101
  • 1
  • 1
    Well, on all our servers the issue started to occur just after upgrade from duplicity 0.7.17 to duplicity 0.7.18! So it's a regression bug. 0.7.17 worked flawlessly! – stamster Aug 23 '18 at 10:28
  • 1
    I've opened new bug report: https://bugs.launchpad.net/duplicity/+bug/1788599 – stamster Aug 23 '18 at 11:48
  • Just FYI, if you need 0.7.18 _now_ (like we did on prod), you can find it on duplicity-team's PPA: https://launchpad.net/~duplicity-team/+archive/ubuntu/ppa – ave Nov 07 '18 at 13:02
  • 1
    My own comment helped me out nearly a year later. Nice. – ave Aug 01 '19 at 12:20
0

It turns out this is a known bug:

https://bugs.launchpad.net/duplicity/+bug/1785520

Jeff
  • 901
  • 1
  • 9
  • 22