Duplicity crashes when using --file-prefix

Bug #1839886 reported by denick on 2019-08-12
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

duplicity 0.8.02
Python 3.7.3
OS: openSUSE Tumbleweed 20190809
Target: linux

Command line:
duplicity collection-status file:///home/user/backup/daily/gnupg/ --file-prefix gnupg_ -v9

The attached patch fixes the problem for me, but is probably not the correct solution.

Log:
Using archive dir: /home/user/.cache/duplicity/83e26fc9e0c27c7325b41be381d42081
Using backup name: 83e26fc9e0c27c7325b41be381d42081
GPG binary is gpg, version (2, 2, 17)
Import of duplicity.backends.adbackend Succeeded
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.b2backend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.jottacloudbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.mediafirebackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pcabackend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Main action: collection-status
Acquiring lockfile b'/home/user/.cache/duplicity/83e26fc9e0c27c7325b41be381d42081/lockfile'
================================================================================
duplicity 0.8.02 (July 25, 2019)
Args: /usr/bin/duplicity collection-status file:///home/user/backup/daily/gnupg/ --file-prefix gnupg_ -v9
Linux tuxedo 5.2.5-1-default #1 SMP Wed Jul 31 10:41:36 UTC 2019 (79b6a9c) x86_64 x86_64
/usr/bin/python3 3.7.3 (default, Apr 09 2019, 05:18:21) [GCC]
================================================================================
66 files exist on backend
0 files exist in cache
Extracting backup chains from list of files: ['gnupg_duplicity-inc.20190623T191001Z.to.20190630T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190606T191001Z.to.20190608T100729Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190616T191002Z.to.20190621T191002Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190608T142606Z.to.20190608T143755Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190727T131117Z.to.20190727T191002Z.sigtar.gpg', 'gnupg_duplicity-inc.20190608T191001Z.to.20190611T201429Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190706T191001Z.to.20190707T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190621T191002Z.to.20190623T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190706T155441Z.to.20190706T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190727T131117Z.to.20190727T191002Z.vol1.difftar.gpg', 'gnupg_duplicity-full-signatures.20190608T100854Z.sigtar.gpg', 'gnupg_duplicity-full.20190608T100854Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190608T143755Z.to.20190608T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190712T191001Z.to.20190714T191001Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190623T191001Z.to.20190630T191001Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190608T191001Z.to.20190611T201429Z.sigtar.gpg', 'gnupg_duplicity-full.20190530T202105Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190606T191001Z.to.20190608T100729Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190630T191001Z.to.20190706T155441Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190707T191001Z.to.20190712T191001Z.sigtar.gpg', 'gnupg_duplicity-inc.20190712T191001Z.to.20190714T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190608T142606Z.to.20190608T143755Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190608T100854Z.to.20190608T142606Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190706T191001Z.to.20190707T191001Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190530T202105Z.to.20190606T191001Z.sigtar.gpg', 'gnupg_duplicity-inc.20190714T191001Z.to.20190722T221444Z.manifest.gpg', 'gnupg_duplicity-inc.20190530T202105Z.to.20190606T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190722T221444Z.to.20190727T131117Z.sigtar.gpg', 'gnupg_duplicity-inc.20190608T143755Z.to.20190608T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190623T191001Z.to.20190630T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190606T191001Z.to.20190608T100729Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190722T221444Z.to.20190727T131117Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190608T100854Z.to.20190608T142606Z.sigtar.gpg', 'gnupg_duplicity-inc.20190707T191001Z.to.20190712T191001Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190714T191001Z.to.20190722T221444Z.sigtar.gpg', 'gnupg_duplicity-inc.20190621T191002Z.to.20190623T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190530T202105Z.to.20190606T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190727T191002Z.to.20190812T210005Z.manifest.gpg', 'gnupg_duplicity-inc.20190608T142606Z.to.20190608T143755Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190706T191001Z.to.20190707T191001Z.sigtar.gpg', 'gnupg_duplicity-inc.20190630T191001Z.to.20190706T155441Z.manifest.gpg', 'gnupg_duplicity-inc.20190706T155441Z.to.20190706T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190630T191001Z.to.20190706T155441Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190714T191001Z.to.20190722T221444Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190706T155441Z.to.20190706T191001Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190621T191002Z.to.20190623T191001Z.sigtar.gpg', 'gnupg_duplicity-full.20190530T202105Z.manifest.gpg', 'gnupg_duplicity-inc.20190608T191001Z.to.20190611T201429Z.manifest.gpg', 'gnupg_duplicity-full-signatures.20190530T202105Z.sigtar.gpg', 'gnupg_duplicity-inc.20190611T201429Z.to.20190615T191001Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190727T191002Z.to.20190812T210005Z.sigtar.gpg', 'gnupg_duplicity-inc.20190608T100854Z.to.20190608T142606Z.manifest.gpg', 'gnupg_duplicity-new-signatures.20190608T143755Z.to.20190608T191001Z.sigtar.gpg', 'gnupg_duplicity-inc.
20190615T191001Z.to.20190616T191002Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190616T191002Z.to.20190621T191002Z.manifest.gpg', 'gnupg_duplicity-inc.20190615T191001Z.to.20190616T191002Z.manifest.gpg', 'gnupg_duplicity-inc.20190727T191002Z.to.20190812T210005Z.vol1.difftar.gpg', 'gnupg_duplicity-new-signatures.20190611T201429Z.to.20190615T191001Z.sigtar.gpg', 'gnupg_duplicity-new-signatures.20190615T191001Z.to.20190616T191002Z.sigtar.gpg', 'gnupg_duplicity-full.20190608T100854Z.manifest.gpg', 'gnupg_duplicity-inc.20190712T191001Z.to.20190714T191001Z.manifest.gpg', 'gnupg_duplicity-inc.20190722T221444Z.to.20190727T131117Z.manifest.gpg', 'gnupg_duplicity-inc.20190707T191001Z.to.20190712T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190727T131117Z.to.20190727T191002Z.manifest.gpg', 'gnupg_duplicity-inc.20190611T201429Z.to.20190615T191001Z.vol1.difftar.gpg', 'gnupg_duplicity-inc.20190616T191002Z.to.20190621T191002Z.vol1.difftar.gpg']
Releasing lockfile b'/home/user/.cache/duplicity/83e26fc9e0c27c7325b41be381d42081/lockfile'
Using temporary directory /tmp/duplicity-3zlizj5g-tempdir
Releasing lockfile b'/home/user/.cache/duplicity/83e26fc9e0c27c7325b41be381d42081/lockfile'
Traceback (innermost last):
  File "/usr/bin/duplicity", line 1711, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1697, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1543, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1565, in do_backup
    action).set_values()
  File "/usr/lib64/python3.7/site-packages/duplicity/dup_collections.py", line 745, in set_values
    self.get_backup_chains(partials + backend_filename_list)
  File "/usr/lib64/python3.7/site-packages/duplicity/dup_collections.py", line 872, in get_backup_chains
    add_to_sets(f)
  File "/usr/lib64/python3.7/site-packages/duplicity/dup_collections.py", line 858, in add_to_sets
    pr = file_naming.parse(filename)
  File "/usr/lib64/python3.7/site-packages/duplicity/file_naming.py", line 416, in parse
    pr = check_full()
  File "/usr/lib64/python3.7/site-packages/duplicity/file_naming.py", line 326, in check_full
    prepare_regex()
  File "/usr/lib64/python3.7/site-packages/duplicity/file_naming.py", line 67, in prepare_regex
    full_vol_re = re.compile(b"^" + globals.file_prefix + globals.file_prefix_archive + b"duplicity-full"
 TypeError: can't concat str to bytes

Releasing lockfile b'/home/user/.cache/duplicity/83e26fc9e0c27c7325b41be381d42081/lockfile'

denick (denick) wrote :
denick (denick) on 2019-08-12
description: updated
Changed in duplicity:
assignee: nobody → Kenneth Loafman (kenneth-loafman)
importance: Undecided → Medium
milestone: none → 0.8.04
status: New → In Progress
Changed in duplicity:
assignee: Kenneth Loafman (kenneth-loafman) → nobody
status: In Progress → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
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