Discussion:
[Duplicity-talk] Error: /usr/lib/python2.7/getpass.py:83:
Jelle de Jong
2016-03-21 12:05:36 UTC
Permalink
Hello everybody,

I searched the mailing list but could not find a patch for this problem
yet, however I am guessing someone already solved it. Could somebody
direct me to the code patch or otherwise help me out?

debian 8.3
duplicity 0.6.24-1
libpython2.7-stdlib:amd64 2.7.9-2

Info: Duplicity cleanup finished successfully.
Info: Duplicity remove-older-than finished successfully.
Error: Local and Remote metadata are synchronized, no sync needed.
Error: Last full backup date: Fri Dec 18 19:01:53 2015
Error: /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control
echo on the terminal.
Error: passwd = fallback_getpass(prompt, stream)
Error: Warning: Password input may be echoed.
Error: GnuPG passphrase for signing key: Traceback (most recent call last):
Error: File "/usr/bin/duplicity", line 1509, in <module>
Error: with_tempdir(main)
Error: File "/usr/bin/duplicity", line 1503, in with_tempdir
Error: fn()
Error: File "/usr/bin/duplicity", line 1352, in main
Error: do_backup(action)
Error: File "/usr/bin/duplicity", line 1458, in do_backup
Error: globals.gpg_profile.signing_passphrase = get_passphrase(1,
action, True)
Error: File "/usr/bin/duplicity", line 168, in get_passphrase
Error: pass1 = getpass_safe(_("GnuPG passphrase for signing key:")+" ")
Error: File "/usr/bin/duplicity", line 71, in getpass_safe
Error: return getpass.getpass(message)
Error: File "/usr/lib/python2.7/getpass.py", line 83, in unix_getpass
Error: passwd = fallback_getpass(prompt, stream)
Error: File "/usr/lib/python2.7/getpass.py", line 118, in fallback_getpass
Error: return _raw_input(prompt, stream)
Error: File "/usr/lib/python2.7/getpass.py", line 135, in _raw_input
Error: raise EOFError
Error: EOFError
Fatal: Duplicity failed.

Kind regards,

Jelle de Jong
e***@web.de
2016-03-21 12:10:52 UTC
Permalink
Post by Jelle de Jong
Hello everybody,
I searched the mailing list but could not find a patch for this problem
yet, however I am guessing someone already solved it. Could somebody
direct me to the code patch or otherwise help me out?
debian 8.3
duplicity 0.6.24-1
libpython2.7-stdlib:amd64 2.7.9-2
Info: Duplicity cleanup finished successfully.
Info: Duplicity remove-older-than finished successfully.
Error: Local and Remote metadata are synchronized, no sync needed.
Error: Last full backup date: Fri Dec 18 19:01:53 2015
Error: /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control
echo on the terminal.
Error: passwd = fallback_getpass(prompt, stream)
Error: Warning: Password input may be echoed.
Error: File "/usr/bin/duplicity", line 1509, in <module>
Error: with_tempdir(main)
Error: File "/usr/bin/duplicity", line 1503, in with_tempdir
Error: fn()
Error: File "/usr/bin/duplicity", line 1352, in main
Error: do_backup(action)
Error: File "/usr/bin/duplicity", line 1458, in do_backup
Error: globals.gpg_profile.signing_passphrase = get_passphrase(1,
action, True)
Error: File "/usr/bin/duplicity", line 168, in get_passphrase
Error: pass1 = getpass_safe(_("GnuPG passphrase for signing key:")+" ")
Error: File "/usr/bin/duplicity", line 71, in getpass_safe
Error: return getpass.getpass(message)
Error: File "/usr/lib/python2.7/getpass.py", line 83, in unix_getpass
Error: passwd = fallback_getpass(prompt, stream)
Error: File "/usr/lib/python2.7/getpass.py", line 118, in fallback_getpass
Error: return _raw_input(prompt, stream)
Error: File "/usr/lib/python2.7/getpass.py", line 135, in _raw_input
Error: raise EOFError
Error: EOFError
Fatal: Duplicity failed.
smells like duplicity is run by cron but needs the passphrase and tries to get it via terminal, but there is none in cron.

supplying the gpg passphrases needed via env var or gpgagent should resolve this.

..ede/duply.net
Jelle de Jong
2016-03-21 13:16:38 UTC
Permalink
Post by Jelle de Jong
debian 8.3
duplicity 0.6.24-1
libpython2.7-stdlib:amd64 2.7.9-2
Info: Duplicity cleanup finished successfully.
Info: Duplicity remove-older-than finished successfully.
Error: Local and Remote metadata are synchronized, no sync needed.
Error: Last full backup date: Fri Dec 18 19:01:53 2015
Error: /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control
echo on the terminal.
Solved it by exporting SIGN_PASSPHRASE

Kind regards,

Jelle de Jong

Loading...