Comment 27 for bug 681002

Revision history for this message
Pedro Salgueiro (pds) wrote :

Having the same problem in Ubuntu 12.04 with duplicity 0.6.18.
It presents a GPG error, but if I try to decrypt the file manually with with the following command, it works ok:

gpg --output manifest --decrypt duplicity-full.20120326T100344Z.manifest.gpg

Here is the log of running duplicity in the command line with the the follwoing arguments:
/usr/bin/duplicity --verbosity info list-current-files --gio smb://xpto@foo/backups/

Main action: list-current
================================================================================
duplicity 0.6.18 (February 29, 2012)
Args: /usr/bin/duplicity --verbosity info list-current-files --gio smb://psalgueiro@licoroso/backups/
Linux pds-laptop 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64
/usr/bin/python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3]
================================================================================
Synchronizing remote metadata to local cache...
PASSPHRASE variable not set, asking user.
GnuPG passphrase:
Copying duplicity-full-signatures.20120703T083354Z.sigtar.gpg to local cache.
Using temporary directory /tmp/duplicity-XXDtVy-tempdir
Writing /tmp/duplicity-XXDtVy-tempdir/mktemp-0Ewuy_-1
GPG error detail: Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1403, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1396, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1272, in main
    sync_archive(decrypt)
  File "/usr/bin/duplicity", line 1072, in sync_archive
    copy_to_local(fn)
  File "/usr/bin/duplicity", line 1019, in copy_to_local
    gpg.GzipWriteFile(src_iter, tdp.name, size=sys.maxint)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 372, in GzipWriteFile
    new_block = block_iter.next(min(128*1024, bytes_to_go))
  File "/usr/bin/duplicity", line 1002, in next
    self.fileobj.close()
  File "/usr/lib/python2.7/dist-packages/duplicity/dup_temp.py", line 222, in close
    assert not self.fileobj.close()
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 239, in close
    self.gpg_failed()
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 206, in gpg_failed
    raise GPGError, msg
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: block_filter 0x1817cc0: read error (size=10507,a->size=10507)
gpg: [don't know]: invalid packet (ctb=1d)
gpg: onepass_sig with unknown version 116
gpg: mdc_packet with invalid encoding
gpg: decryption failed: invalid packet
gpg: [don't know]: invalid packet (ctb=25)
gpg: block_filter: pending bytes!
===== End GnuPG log =====