Bug 1095899 - Error creating password protected backup over DejaDup
Summary: Error creating password protected backup over DejaDup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: duplicity
Version: 20
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Rahul Sundaram
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-08 19:12 UTC by Vladislav Grigoryev
Modified: 2014-05-18 22:55 UTC (History)
4 users (show)

Fixed In Version: duplicity-0.6.24-2.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-18 22:55:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vladislav Grigoryev 2014-05-08 19:12:08 UTC
Description of problem:
Error creating password protected backup over DejaDup to SFTP-server.
Regression in latest release.

Version-Release number of selected component (if applicable):
duplicity-0.6.23-2.fc20.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Create password protected backup over DejaDup to SFTP-server.

Actual results:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1489, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1483, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1332, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1414, in do_backup
    globals.gpg_profile.passphrase = get_passphrase(1, action)
  File "/usr/bin/duplicity", line 168, in get_passphrase
    pass1 = getpass.getpass(_("GnuPG passphrase:")+" ")
  File "/usr/lib64/python2.7/getpass.py", line 83, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib64/python2.7/getpass.py", line 118, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib64/python2.7/getpass.py", line 128, in _raw_input
    prompt = str(prompt)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Additional info:
Regression in duplicity-0.6.23-2.fc20.x86_64.

Workaround:
Downgrade to duplicity-0.6.21-1.fc20.x86_64.

Comment 1 Vladislav Grigoryev 2014-05-08 19:18:21 UTC
Previous release duplicity-0.6.22-5.fc20.x86_64 is also OK.

Comment 2 Rahul Sundaram 2014-05-08 20:32:27 UTC
Would you mind filing this upstream?

https://bugs.launchpad.net/duplicity/+filebug

Thanks

Comment 3 Vladislav Grigoryev 2014-05-09 06:49:40 UTC
https://bugs.launchpad.net/duplicity/+bug/1317763

Comment 4 Klaus Crusius 2014-05-10 10:39:40 UTC
I got the same stack trace with a similar detail message:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 10: ordinal not in range(128)

The backup target was a local exernal disk in my case. To be encrypted as well.

The error happend when LANG=de-DE.utf8 was set, but not with LANG=en_US.utf8 or LANG=C

Comment 5 Sergio Pascual 2014-05-12 08:34:34 UTC
I'm seeing the same thing, backup to a USB drive

Comment 6 Rahul Sundaram 2014-05-12 16:38:37 UTC
Scratch build for Fedora 20

http://koji.fedoraproject.org/koji/taskinfo?taskID=6842839

Please test.  Thanks

Comment 7 Vladislav Grigoryev 2014-05-13 05:23:23 UTC
(In reply to Rahul Sundaram from comment #6)
> http://koji.fedoraproject.org/koji/taskinfo?taskID=6842839

Works for me. Thanks.

Comment 8 Fedora Update System 2014-05-13 13:03:01 UTC
duplicity-0.6.24-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/duplicity-0.6.24-2.fc20

Comment 9 Fedora Update System 2014-05-14 23:57:38 UTC
Package duplicity-0.6.24-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing duplicity-0.6.24-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6356/duplicity-0.6.24-2.fc20
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-05-18 22:55:38 UTC
duplicity-0.6.24-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.