← Back to team overview

desktop-packages team mailing list archive

[Bug 1401245] [NEW] Duplicity crashes when called -- UnicodeDecodeError

 

Public bug reported:

Hi,

Since some time ago, duplicity, called automatically by ubuntu's deja-
dup, crashes upon each startup. I cannot even change the settings. Some
online posts suggested deleting the backup, which I did. There are some
corrupted files I could not delete (with non-unicode characters in their
names). I have seen that there was a bug with unicode decoding in an
earlier version, but I am running the updated one.
(https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1311176)

Here's the output of duplicity:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1494, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1488, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1337, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1366, in do_backup
    sync_archive(decrypt)
  File "/usr/bin/duplicity", line 1100, in sync_archive
    remote_metafiles, ignored, rem_needpass = get_metafiles(remlist)
  File "/usr/bin/duplicity", line 992, in get_metafiles
    pr = file_naming.parse(fn)
  File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 389, in parse
    pr = check_full()
  File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 308, in check_full
    t = str2time((m1 or m2).group("time"), short)
  File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 281, in str2time
    t = dup_time.genstrtotime(timestr.upper())
  File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 278, in genstrtotime
    return override_curtime - intstringtoseconds(timestr)
  File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 190, in intstringtoseconds
    error()
  File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 181, in error
    raise TimeException(bad_interval_string % interval_string)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xee in position 15: ordinal not in range(128)

Duplicity version: 0.6.23-1ubuntu5
Deja-dup version: 32.0-0ubuntu1
Python version: 32.0-0ubuntu1
OS version: ubuntu 14.10

Sorry I do not know how to extract the exact command line deja-dup uses
to call duplicity.

Philippe

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: duplicity 0.6.23-1ubuntu5
ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
Uname: Linux 3.16.0-25-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Dec 10 21:05:07 2014
SourcePackage: duplicity
UpgradeStatus: Upgraded to utopic on 2014-11-14 (26 days ago)

** Affects: duplicity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to duplicity in Ubuntu.
https://bugs.launchpad.net/bugs/1401245

Title:
  Duplicity crashes when called -- UnicodeDecodeError

Status in duplicity package in Ubuntu:
  New

Bug description:
  Hi,

  Since some time ago, duplicity, called automatically by ubuntu's deja-
  dup, crashes upon each startup. I cannot even change the settings.
  Some online posts suggested deleting the backup, which I did. There
  are some corrupted files I could not delete (with non-unicode
  characters in their names). I have seen that there was a bug with
  unicode decoding in an earlier version, but I am running the updated
  one.
  (https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1311176)

  Here's the output of duplicity:
  Traceback (most recent call last):
    File "/usr/bin/duplicity", line 1494, in <module>
      with_tempdir(main)
    File "/usr/bin/duplicity", line 1488, in with_tempdir
      fn()
    File "/usr/bin/duplicity", line 1337, in main
      do_backup(action)
    File "/usr/bin/duplicity", line 1366, in do_backup
      sync_archive(decrypt)
    File "/usr/bin/duplicity", line 1100, in sync_archive
      remote_metafiles, ignored, rem_needpass = get_metafiles(remlist)
    File "/usr/bin/duplicity", line 992, in get_metafiles
      pr = file_naming.parse(fn)
    File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 389, in parse
      pr = check_full()
    File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 308, in check_full
      t = str2time((m1 or m2).group("time"), short)
    File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 281, in str2time
      t = dup_time.genstrtotime(timestr.upper())
    File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 278, in genstrtotime
      return override_curtime - intstringtoseconds(timestr)
    File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 190, in intstringtoseconds
      error()
    File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 181, in error
      raise TimeException(bad_interval_string % interval_string)
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xee in position 15: ordinal not in range(128)

  Duplicity version: 0.6.23-1ubuntu5
  Deja-dup version: 32.0-0ubuntu1
  Python version: 32.0-0ubuntu1
  OS version: ubuntu 14.10

  Sorry I do not know how to extract the exact command line deja-dup
  uses to call duplicity.

  Philippe

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: duplicity 0.6.23-1ubuntu5
  ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
  Uname: Linux 3.16.0-25-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.7-0ubuntu8
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Wed Dec 10 21:05:07 2014
  SourcePackage: duplicity
  UpgradeStatus: Upgraded to utopic on 2014-11-14 (26 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/1401245/+subscriptions


Follow ups

References