[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] decryption failure in duplicity replicate

From: Kenneth Loafman
Subject: Re: [Duplicity-talk] decryption failure in duplicity replicate
Date: Sat, 21 Aug 2021 15:53:34 -0500


You might Google (not Bling)  "gpg: decryption failed: Bad session key".

It seems to have to do with gpg1/gpg2 differences.  You might try on a real Linux system and see if it works.


On Sat, Aug 21, 2021 at 3:38 PM zga9uhnq4g--- via Duplicity-talk <duplicity-talk@nongnu.org> wrote:
I've been using the Debian duplicity package version 0.8.20-1 in Windows Subsystem for Linux on Windows 10 Pro for 8 months to backup "important" windows files to my Microsoft OneDrive account, but it is running low on space so I want to switch my Google Drive account that has 3X space.

When I ran "duplicity replicate"  I got an error saying "gpg: decryption failed: Bad session key", but duplicity didn't exit.  I let it run over night, and finally interrupted it.
# duplicity replicate onedrive://Backup/finance.duplicity-direct gdrive://530054400480-6t6b9ul7l43hh8s1epq6cuehvd3ie2a2.apps.googleusercontent.com/finance.duplicity/?myDriveFolderID=1avphlf2LSwSmib6JaZIQRpXfPrAqsptu
Last full backup date: none
GnuPG passphrase for decryption:
Replicating b'duplicity-full-signatures.20201212T204209Z.sigtar.gpg'.
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====

^CException ignored in: <module 'threading' from '/usr/lib/python3.9/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
Duplicity did create the finance.duplicity folder in Google Drive, but it is empty.

I then ran "duplicity verify" and confirmed I can successfully read the OneDrive backup repository.
# duplicity verify onedrive://Backup/finance.duplicity-direct /mnt/d/home/pcanning/Finance
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Wed Aug 11 02:01:44 2021
GnuPG passphrase for decryption:
Verify complete: 817 files compared, 0 differences found.
Can anyone help me figure out why "duplicity replicate" is failing, and suggest how I might fix it?


Duplicity-talk mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]