Crash w/ duplicity + B2 + Char encoding

Bug #1716240 reported by Leonardo M. N. de Mattos on 2017-09-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Undecided
Unassigned

Bug Description

When trying to retrieve a given files changes duplicity is crashing and returning what seems to be a char encoding issue.

Here is my duplicity script:

#!/bin/bash

PASSPHRASE="XXX"
SIGN_PASSPHRASE=$PASSPHRASE

enc_key="XXXXX"
sign_key="XXXXX"
src="/home/leonardo/mestrado_unicamp/"
dest="b2://MYADDRESSATB2"

# Recover vars
file2recover="Dissertação/Texto/caps/CapX_Resultados_e_Analises.tex"

duplicity --use-agent \
         -v9 \
         --encrypt-key $enc_key \
         --sign-key $sign_key \
         --num-retries 10 \
         --asynchronous-upload \
         --volsize 20 \
         --log-file ./duplicity.log \
         --exclude-filelist over-net-exclude_DUP_mestrado.txt \
         collection-status --file-changed $file2recover \
         $dest

Here is the error output to shell:

Warning, found incomplete backup sets, probably left from aborted session
Last full backup date: Tue Feb 7 08:19:29 2017
Using temporary directory /tmp/duplicity-2r8sKx-tempdir
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1548, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1534, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1383, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1471, in do_backup
    log.PrintCollectionFileChangedStatus(col_stats, globals.file_changed, True)
  File "/usr/lib/python2.7/dist-packages/duplicity/log.py", line 225, in PrintCollectionFileChangedStatus
    Log(unicode(col_stats.get_file_changed_record(filepath)), 8, InfoCode.collection_status, None, force_print)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 1217, in __unicode__
    _("File: %s") % (self.filepath),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

The whole duplicity log is attached to this bug report.

Other informations:
duplicity 0.7.14
Python 2.7.12
OS: Ubuntu 16.04.03
Type of target filesystem: B2 (I don't which FS they use)

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

Other bug subscribers