Backup fails with gnupg error

Bug #1613844 reported by mannp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Invalid
Undecided
Unassigned

Bug Description

Duplicity version: 0.7.09
Python version: 2.7
OS Distro and version: MacOS via brew
Type of target filesystem: Linux, Windows, other Mac OS ElCapitain

===============================================================================
Using temporary directory /var/folders/dn/mstvc_j51mg20nkxp_r18yxm0000gn/T/duplicity-WVMrtz-tempdir
Temp has 58085330944 available, backup will use approx 482344960.
Local and Remote metadata are synchronized, no sync needed.
Processing local manifest /Users/local/.cache/duplicity/81e3e0c36e658134e7acc24e1a13d235/duplicity-full.20160715T204728Z.manifest (1087995)
Found 1019 volumes in manifest
Processing local manifest /Users/local/.cache/duplicity/81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160715T204728Z.to.20160719T205803Z.manifest (200)
Found 1 volumes in manifest
Processing local manifest /Users/local/.cache/duplicity/81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160719T205803Z.to.20160729T144207Z.manifest (25794)
Found 22 volumes in manifest
Processing local manifest /Users/local/.cache/duplicity/81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160729T144207Z.to.20160729T191603Z.manifest (531)
Found 1 volumes in manifest
Added incremental Backupset (start_time: Fri Jul 15 21:47:28 2016 / end_time: Tue Jul 19 21:58:03 2016)
Added incremental Backupset (start_time: Tue Jul 19 21:58:03 2016 / end_time: Fri Jul 29 15:42:07 2016)
Added incremental Backupset (start_time: Fri Jul 29 15:42:07 2016 / end_time: Fri Jul 29 20:16:03 2016)
Last full backup date: Fri Jul 15 21:47:28 2016
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /Users/local/.cache/duplicity/81e3e0c36e658134e7acc24e1a13d235

Found 0 secondary backup chains.

Found primary backup chain with matching signature chain:
-------------------------
Chain start time: Fri Jul 15 21:47:28 2016
Chain end time: Fri Jul 29 20:16:03 2016
Number of contained backup sets: 4
Total number of contained volumes: 1042
 Type of backup set: Time: Num volumes:
                Full Fri Jul 15 21:47:28 2016 1018
         Incremental Tue Jul 19 21:58:03 2016 1
         Incremental Fri Jul 29 15:42:07 2016 22
         Incremental Fri Jul 29 20:16:03 2016 1
-------------------------
No orphaned or incomplete backup sets found.
Cleanup of temporary directory /var/folders/dn/mstvc_j51mg20nkxp_r18yxm0000gn/T/duplicity-WVMrtz-tempdir failed - this is probably a bug.
GPG error detail: Traceback (most recent call last):
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1546, in <module>
    with_tempdir(main)
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1540, in with_tempdir
    fn()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1391, in main
    do_backup(action)
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1521, in do_backup
    check_last_manifest(col_stats) # not needed for full backup
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1222, in check_last_manifest
    last_backup_set.check_manifests()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/collections.py", line 199, in check_manifests
    remote_manifest = self.get_remote_manifest()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/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/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/backend.py", line 679, in get_data
    assert not fin.close()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/dup_temp.py", line 226, in close
    assert not self.fileobj.close()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpg.py", line 259, in close
    self.gpg_failed()
  File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpg.py", line 226, in gpg_failed
    raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
Traceback (most recent call last):
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1546, in <module>
with_tempdir(main)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1540, in with_tempdir
fn()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1391, in main
do_backup(action)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1521, in do_backup
check_last_manifest(col_stats) # not needed for full backup
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1222, in check_last_manifest
last_backup_set.check_manifests()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/collections.py", line 199, in check_manifests
remote_manifest = self.get_remote_manifest()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/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/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/backend.py", line 677, in get_data
fin = self.get_fileobj_read(filename, parseresults)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/backend.py", line 671, in get_fileobj_read
return tdp.filtered_open_with_delete("rb")
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/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/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/path.py", line 772, in filtered_open
return gpg.GPGFile(False, self, gpg_profile)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpg.py", line 182, in __init__
'logger': self.logger_fp})
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 374, in run
create_fhs, attach_fhs)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 423, in _attach_fork_exec
self._as_child(process, gnupg_commands, args)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 462, in _as_child
os.execvp(command[0], command)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 346, in execvp
_execvpe(file, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 382, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory

===== End GnuPG log =====

GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
Traceback (most recent call last):
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1546, in <module>
with_tempdir(main)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1540, in with_tempdir
fn()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1391, in main
do_backup(action)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1521, in do_backup
check_last_manifest(col_stats) # not needed for full backup
File "/usr/local/Cellar/duplicity/0.7.09/libexec/bin/duplicity", line 1222, in check_last_manifest
last_backup_set.check_manifests()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/collections.py", line 199, in check_manifests
remote_manifest = self.get_remote_manifest()
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/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/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/backend.py", line 677, in get_data
fin = self.get_fileobj_read(filename, parseresults)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/backend.py", line 671, in get_fileobj_read
return tdp.filtered_open_with_delete("rb")
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/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/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/path.py", line 772, in filtered_open
return gpg.GPGFile(False, self, gpg_profile)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpg.py", line 182, in __init__
'logger': self.logger_fp})
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 374, in run
create_fhs, attach_fhs)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 423, in _attach_fork_exec
self._as_child(process, gnupg_commands, args)
File "/usr/local/Cellar/duplicity/0.7.09/libexec/lib/python2.7/site-packages/duplicity/gpginterface.py", line 462, in _as_child
os.execvp(command[0], command)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 346, in execvp
_execvpe(file, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 382, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory

===== End GnuPG log =====

Tags: gnupg
mannp (paul--mann)
description: updated
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1613844] Re: Backup fails with gnupg error
Download full text (23.1 KiB)

The GPG log looks like 'gpg' is missing. Could you check to see if gpg is
in the path?

On Tue, Aug 16, 2016 at 1:50 PM, mannp <email address hidden> wrote:

> ** Description changed:
>
> - Duplicity version
> - Python version
> - OS Distro and version
> - Type of target filesystem: Linux, Windows, other.
> + Duplicity version: 0.7.09
> + Python version: 2.7
> + OS Distro and version: MacOS via brew
> + Type of target filesystem: Linux, Windows, other Mac OS ElCapitain
>
> ============================================================
> ===================
> Using temporary directory /var/folders/dn/mstvc_
> j51mg20nkxp_r18yxm0000gn/T/duplicity-WVMrtz-tempdir
> Temp has 58085330944 available, backup will use approx 482344960.
> Local and Remote metadata are synchronized, no sync needed.
> Processing local manifest /Users/local/.cache/duplicity/
> 81e3e0c36e658134e7acc24e1a13d235/duplicity-full.20160715T204728Z.manifest
> (1087995)
> Found 1019 volumes in manifest
> Processing local manifest /Users/local/.cache/duplicity/
> 81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160715T204728Z.to.20160719T205803Z.manifest
> (200)
> Found 1 volumes in manifest
> Processing local manifest /Users/local/.cache/duplicity/
> 81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160719T205803Z.to.20160729T144207Z.manifest
> (25794)
> Found 22 volumes in manifest
> Processing local manifest /Users/local/.cache/duplicity/
> 81e3e0c36e658134e7acc24e1a13d235/duplicity-inc.20160729T144207Z.to.20160729T191603Z.manifest
> (531)
> Found 1 volumes in manifest
> Added incremental Backupset (start_time: Fri Jul 15 21:47:28 2016 /
> end_time: Tue Jul 19 21:58:03 2016)
> Added incremental Backupset (start_time: Tue Jul 19 21:58:03 2016 /
> end_time: Fri Jul 29 15:42:07 2016)
> Added incremental Backupset (start_time: Fri Jul 29 15:42:07 2016 /
> end_time: Fri Jul 29 20:16:03 2016)
> Last full backup date: Fri Jul 15 21:47:28 2016
> Collection Status
> -----------------
> Connecting with backend: BackendWrapper
> Archive dir: /Users/local/.cache/duplicity/
> 81e3e0c36e658134e7acc24e1a13d235
>
> Found 0 secondary backup chains.
>
> Found primary backup chain with matching signature chain:
> -------------------------
> Chain start time: Fri Jul 15 21:47:28 2016
> Chain end time: Fri Jul 29 20:16:03 2016
> Number of contained backup sets: 4
> Total number of contained volumes: 1042
> - Type of backup set: Time: Num volumes:
> - Full Fri Jul 15 21:47:28 2016 1018
> - Incremental Tue Jul 19 21:58:03 2016 1
> - Incremental Fri Jul 29 15:42:07 2016 22
> - Incremental Fri Jul 29 20:16:03 2016 1
> + Type of backup set: Time: Num volumes:
> + Full Fri Jul 15 21:47:28 2016 1018
> + Incremental Tue Jul 19 21:58:03 2016 1
> + Incremental Fri Jul 29 15:42:07 2016 22
> + Incremental Fri Jul 29 20:16:03 2016 ...

Revision history for this message
mannp (paul--mann) wrote :

Apologies, it seems that the brew update for gnupg has changed, as I reinstalled and it said to add something differant into the path or install gnupg2.

Its been working fine for a month so I did not notice the change.

I have now installed gnupg2 and am able to backup again.

Changed in duplicity:
status: New → Invalid
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.