AttributeError: '_io.BufferedReader' object has no attribute 'uc_name'

Bug #1852876 reported by Michael Terry on 2019-11-16
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

I’m seeing a few recent reports of this error:

https://www.reddit.com/r/Ubuntu/comments/dx3bcq/while_backing_up_using_dejadup_im_getting_this/
https://forums.fedora-fr.org/viewtopic.php?id=70137
https://askubuntu.com/questions/1189247/i-have-installed-the-snap-version-of-deja-dup-while-doing-backup-it-fails-with

That last has a full stacktrace.

Might this be a regression in 0.8.07? (The Deja Dup snap, which is part of two of those above reports, is on 0.8.07)

Changed in duplicity:
assignee: nobody → Kenneth Loafman (kenneth-loafman)
importance: Undecided → Medium
milestone: none → 0.8.08
status: New → In Progress
Changed in duplicity:
assignee: Kenneth Loafman (kenneth-loafman) → nobody
status: In Progress → Fix Committed
Michael Terry (mterry) wrote :

Thanks Ken for such prompt investigation!

Changed in duplicity:
status: Fix Committed → Fix Released
Vipul (vipul-bhandari) wrote :

Also affects me in Ubuntu 19.10. It prepares backup and while trying to store it gives this error

Traceback (innermost last):
  File "/usr/bin/duplicity", line 107, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 93, in with_tempdir
    fn()
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1535, in main
    do_backup(action)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1659, in do_backup
    full_backup(col_stats)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 565, in full_backup
    globals.backend)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 422, in write_multivol
    globals.volsize)
  File "/usr/lib/python3/dist-packages/duplicity/gpg.py", line 393, in GPGWriteFile
    data = block_iter.__next__().data
  File "/usr/lib/python3/dist-packages/duplicity/diffdir.py", line 542, in __next__
    result = self.process(next(self.input_iter)) # pylint: disable=assignment-from-no-return
  File "/usr/lib/python3/dist-packages/duplicity/diffdir.py", line 680, in process
    data, last_block = self.get_data_block(fp)
  File "/usr/lib/python3/dist-packages/duplicity/diffdir.py", line 707, in get_data_block
    buf = fp.read(read_size)
  File "/usr/lib/python3/dist-packages/duplicity/diffdir.py", line 449, in read
    buf = self.infile.read(length)
  File "/usr/lib/python3/dist-packages/duplicity/diffdir.py", line 417, in read
    log.Warn(_(u"Error %s getting delta for %s") % (str(ex), self.infile.uc_name))
 AttributeError: '_io.BufferedReader' object has no attribute 'uc_name'

Vipul (vipul-bhandari) wrote :

If needed I can help provide more details

Vipul (vipul-bhandari) wrote :

Version of duplicity is 0.8.04-2ubuntu1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers