After updating to duplicity 7.12 my backups are failing with the message: GPGError: GPG Failed, see log below: ===== Begin GnuPG log ===== gpg: Sorry, we are in batchmode - can't get input ===== End GnuPG log ===== Version-Release number of selected component (if applicable): duplicity-0.7.12-1.fc25.x86_64 How reproducible: 100% Steps to Reproduce: Attempt a backup using a gpg agent: duplicity --gpg-binary /usr/bin/gpg2 \ --use-agent --sign-key <key ID> --encrypt-key <key ID>
I confirmed today that backups again succeed after downgrading to 7.11, so something in my environment disagrees with 7.12
This appears to be fixed in the most recent upstream bzr code.
On which branch?
Sorry, I was building a different bzr branch than I thought I was, so not fixed upstream. I've attached an RFC patch to the upstream bug though. If you have any thoughts on it, let's discuss upstream.
Upstream has committed a fix, bzr revno: 1278 to the 0.7-series branch based on my RFC patch. I've tested the upstream fix, and it makes things work as I expect on my system. I'd be happy to test an updated RPM as well.
Thank you! I'll have builds in koji to test shortly.
I tested before committing, and my deja-dup backup failed with: Traceback (most recent call last): File "/usr/bin/duplicity", line 1546, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 1540, in with_tempdir fn() File "/usr/bin/duplicity", line 1391, in main do_backup(action) File "/usr/bin/duplicity", line 1521, in do_backup check_last_manifest(col_stats) # not needed for full backup File "/usr/bin/duplicity", line 1222, in check_last_manifest last_backup_set.check_manifests() File "/usr/lib64/python2.7/site-packages/duplicity/collections.py", line 199, in check_manifests remote_manifest = self.get_remote_manifest() File "/usr/lib64/python2.7/site-packages/duplicity/collections.py", line 234, in get_remote_manifest manifest_buffer = self.backend.get_data(self.remote_manifest_name) File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 677, in get_data fin = self.get_fileobj_read(filename, parseresults) File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line 671, in get_fileobj_read return tdp.filtered_open_with_delete("rb") File "/usr/lib64/python2.7/site-packages/duplicity/dup_temp.py", line 119, in filtered_open_with_delete fh = FileobjHooked(path.DupPath.filtered_open(self, mode)) File "/usr/lib64/python2.7/site-packages/duplicity/path.py", line 778, in filtered_open return gpg.GPGFile(False, self, gpg_profile) File "/usr/lib64/python2.7/site-packages/duplicity/gpg.py", line 156, in __init__ raise GPGError("Unsupported GNUPG version, %s" % profile.gpg_version) TypeError: not all arguments converted during string formatting
Urgh, that version check wasn't part of my original patch. I should have objected to it post-commit. I can reproduce what you're seeing with GPG 1.4.21. Since this reproduces with the upstream tree, let's take this discussion to the upstream bug so Kenneth gets looped in.
I submitted a fix upstream, and it'd be great to have your feedback.
Sorry for the delay, looks great, but I can't test 100% today. I'll still commit and build.
duplicity-0.7.12-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-26e1afb19f
duplicity-0.7.12-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6a31b796c3
duplicity-0.7.12-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-51e2138254
duplicity-0.7.12-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6a31b796c3
duplicity-0.7.12-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-26e1afb19f
duplicity-0.7.12-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-51e2138254
I've verified that this is fixed on my system and gave karma.
Excellent, thank you!
duplicity-0.7.12-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
duplicity-0.7.12-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
duplicity-0.7.12-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.