GPG Failed: bad session key
Hello,
I have successfully done backup on my network hdd, but now I cannot do another backup nor list files. When I try to list files I get:
$ duplicity -v9 list-current-files file://
Using archive dir: /home/dan/
Using backup name: 7c6d0f64aee92a7
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Main action: list-current
=======
duplicity 0.7.06 (December 07, 2015)
Args: /usr/bin/duplicity -v9 list-current-files file://
Linux 530uarch 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64
/usr/bin/python2 2.7.11 (default, Mar 3 2016, 11:00:04)
[GCC 5.3.0]
=======
Synchronizing remote metadata to local cache...
PASSPHRASE variable not set, asking user.
GnuPG passphrase:
Copying duplicity-
Using temporary directory /tmp/duplicity-
Registering (mktemp) temporary file /tmp/duplicity-
Registering (mktemp) temporary file /tmp/duplicity-
Releasing lockfile /home/dan/
Removing still remembered temporary file /tmp/duplicity-
Removing still remembered temporary file /tmp/duplicity-
GPG error detail: Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
sync_
File "/usr/bin/
copy_
File "/usr/bin/
gpg.
File "/usr/lib/
new_block = block_iter.next()
File "/usr/bin/
self.
File "/usr/lib/
assert not self.fileobj.
File "/usr/lib/
self.
File "/usr/lib/
raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
and when trying to do a backup:
smecpi backup_scripts # PASSPHRASE=
Using archive dir: /root/.
Using backup name: 33fae63ea4bf4bc
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Reading globbing filelist bckp_excl.txt
Main action: inc
=======
duplicity 0.7.06 (December 07, 2015)
Args: /usr/bin/duplicity -v9 --exclude-
Linux smecpi 4.1.19-5-ARCH #1 Tue Mar 15 19:59:09 MDT 2016 armv6l
/usr/bin/python2 2.7.11 (default, Mar 6 2016, 12:21:48)
[GCC 5.3.0]
=======
Using temporary directory /tmp/duplicity-
Registering (mkstemp) temporary file /tmp/duplicity-
Temp has 251637760 available, backup will use approx 34078720.
Reading results of 'rsync -e 'ssh -oBatchMode=yes' sarch:/
Local and Remote metadata are synchronized, no sync needed.
Reading results of 'rsync -e 'ssh -oBatchMode=yes' sarch:/
344 files exist on backend
4 files exist in cache
Extracting backup chains from list of files: [u'duplicity-
... (shortedned for readability)
...
File duplicity-
Found backup chain [Thu Mar 17 12:18:54 2016]-[Thu Mar 17 12:18:54 2016]
Last full backup date: Thu Mar 17 12:18:54 2016
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /root/.
Found 0 secondary backup chains.
Found primary backup chain with matching signature chain:
-------
Chain start time: Thu Mar 17 12:18:54 2016
Chain end time: Thu Mar 17 12:18:54 2016
Number of contained backup sets: 1
Total number of contained volumes: 342
Type of backup set: Time: Num volumes:
-------
No orphaned or incomplete backup sets found.
Registering (mktemp) temporary file /tmp/duplicity-
Reading results of 'rsync -e 'ssh -oBatchMode=yes' sarch:/
Releasing lockfile /root/.
Removing still remembered temporary file /tmp/duplicity-
Removing still remembered temporary file /tmp/duplicity-
GPG error detail: Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
check_
File "/usr/bin/
last_
File "/usr/lib/
remote_manifest = self.get_
File "/usr/lib/
manifest_buffer = self.backend.
File "/usr/lib/
assert not fin.close()
File "/usr/lib/
assert not self.fileobj.
File "/usr/lib/
self.
File "/usr/lib/
raise GPGError(msg)
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
$ gpg --version
gpg (GnuPG) 2.1.11
libgcrypt 1.6.5
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Other backups works fine. Thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Hnyk Daniel
- Solved:
- Last query:
- Last reply: