Backup Fails with UnicodeDecodeError in giobackend

Bug #1305403 reported by Trevor Caira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
New
Undecided
Unassigned

Bug Description

When backing up, Deja Dup dies with the following traceback:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1493, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1487, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1336, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1457, in do_backup
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 542, in full_backup
    globals.backend)
  File "/usr/bin/duplicity", line 424, in write_multivol
    (tdp, dest_filename, vol_num)))
  File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 145, in schedule_task
    return self.__run_synchronously(fn, params)
  File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 171, in __run_synchronously
    ret = fn(*params)
  File "/usr/bin/duplicity", line 423, in <lambda>
    async_waiters.append(io_scheduler.schedule_task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num),
  File "/usr/bin/duplicity", line 314, in put
    backend.put(tdp, dest_filename)
  File "/usr/lib/python2.7/site-packages/duplicity/backends/giobackend.py", line 145, in put
    self.copy_file('put', source_file, target_file)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 330, in iterate
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/duplicity/backends/giobackend.py", line 130, in copy_file
    log.Info(_("Writing %s") % target.get_parse_name())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 18: ordinal not in range(128)

If I comment out line 130 in /usr/lib/python2.7/site-packages/duplicity/backends/giobackend.py, I get the following traceback:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1493, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1487, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1336, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1457, in do_backup
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 542, in full_backup
    globals.backend)
  File "/usr/bin/duplicity", line 424, in write_multivol
    (tdp, dest_filename, vol_num)))
  File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 145, in schedule_task
    return self.__run_synchronously(fn, params)
  File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 171, in __run_synchronously
    ret = fn(*params)
  File "/usr/bin/duplicity", line 423, in <lambda>
    async_waiters.append(io_scheduler.schedule_task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num),
  File "/usr/bin/duplicity", line 314, in put
    backend.put(tdp, dest_filename)
  File "/usr/lib/python2.7/site-packages/duplicity/backends/giobackend.py", line 145, in put
    self.copy_file('put', source_file, target_file)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 321, in iterate
    % (n, e.__class__.__name__, str(e)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 38: ordinal not in range(128)

System information:

~$ uname -a
Linux cirno 3.13.8-1-ARCH #1 SMP PREEMPT Tue Apr 1 12:19:51 CEST 2014 x86_64 GNU/Linux

~$ pacman -Q deja-dup
deja-dup 30.0-1

~$ gsettings list-recursively org.gnome.DejaDup
org.gnome.DejaDup backend 'file'
org.gnome.DejaDup delete-after 182
org.gnome.DejaDup exclude-list ['/home/user/.local/share/Trash', '/home/user/.cache', '/home/user/.cabal', '/home/user/.wine/drive_c/windows', '/home/user/.m2/repository', '/home/user/.gradle', '/home/user/.local/share/Steam/ubuntu12_32']
org.gnome.DejaDup full-backup-period 90
org.gnome.DejaDup include-list ['$HOME', '/etc', '/usr']
org.gnome.DejaDup last-backup '2014-04-10T03:20:50.936459Z'
org.gnome.DejaDup last-restore ''
org.gnome.DejaDup last-run '2014-04-10T03:20:50.936459Z'
org.gnome.DejaDup nag-check ''
org.gnome.DejaDup periodic true
org.gnome.DejaDup periodic-period 1
org.gnome.DejaDup prompt-check ''
org.gnome.DejaDup root-prompt true
org.gnome.DejaDup.File icon '. GThemedIcon drive-harddisk-usb drive-harddisk drive'
org.gnome.DejaDup.File name 'ST2000DM001-1CH164: チルノ Backup'
org.gnome.DejaDup.File path '/home/user/deja-dup'
org.gnome.DejaDup.File relpath b''
org.gnome.DejaDup.File short-name 'チルノ Backup'
org.gnome.DejaDup.File type 'volume'
org.gnome.DejaDup.File uuid '69cd73e3-d8e0-47a7-9ae1-6161b4223fa7'
org.gnome.DejaDup.Rackspace container 'cirno'
org.gnome.DejaDup.Rackspace username ''
org.gnome.DejaDup.S3 bucket ''
org.gnome.DejaDup.S3 folder 'cirno'
org.gnome.DejaDup.S3 id ''
org.gnome.DejaDup.U1 folder '/deja-dup/cirno'

Revision history for this message
Michael Terry (mterry) wrote :

These are bug 1313966 and bug 1311176 respectively.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.