Re: Issues after deleting .cache/duplicity

Nuno Teixeira via Duplicity-talk <[email protected]> Sun, 16 Nov 2025 14:50:39 +0000
Newsgroups gmane.comp.sysutils.backup.duplicity.general
Message-ID <CAFDf7U+hGFf=oavVGMsWAvz-e_CXTdT3x5yELkm+N3BrPd7Cng@mail.gmail.com>
--===============6165890406026030816==
Content-Type: multipart/alternative; boundary="0000000000005690b50643b75bb4"

--0000000000005690b50643b75bb4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Kenneth,

I did take a look at issue901 and you have it very well summarized in a
comment from 2 days ago:

" The only way I have been able to reproduce this is by setting up like
this:

   - full
   - clear local cache, ~/.cache/duplicity (very much not advised)
   - inc, collection-status, or other action that requires looking at the
   manifest."


I will keep an eye on that issue.

Thanks,

Kenneth Loafman <[email protected]> escreveu (domingo, 16/11/2025 =C3=A0(=
s)
13:43):

> Hi,
>
> Deleting the cache is not advised at all.  We use the local manifest file
> to save having to ask for the passphrase to decrypt the remote manifest,
> so, if a full is done the local manifest exists and can be used to do
> collection-status, etc..
>
> Please add your message to issue901
> <https://gitlab.com/duplicity/duplicity/-/issues/901> as a comment and
> track us there.  I'm trying to find a way to work around this issue, but
> for now, don't delete the local cache, or roll back to 3.0.5.1.
>
> ...Thanks,
> ...Ken
>
> On Sun, Nov 16, 2025 at 6:24=E2=80=AFAM Nuno Teixeira via Duplicity-talk =
<
> [email protected]> wrote:
>
>> Hello,
>>
>> Having some problems on a fresh full backup and collection-status before
>> and after deleting .cache/duplicity dir.
>> Tests are be doing with sftp backend.
>>
>> % rm -r .cache/duplicity
>> rm: .cache/duplicity: No such file or directory
>> % duplicity full --ssh-askpass /home/FILES sftp://<SERVER>/duplicity-TES=
T2
>> Password for 'xxxxxxx':
>> Last full backup date: none
>> GnuPG passphrase for decryption:
>> Retype passphrase for decryption to confirm:
>> --------------[ Backup Statistics ]--------------
>> StartTime 1763295115.53 (Sun Nov 16 12:11:55 2025)
>> EndTime 1763295121.11 (Sun Nov 16 12:12:01 2025)
>> ElapsedTime 5.58 (5.58 seconds)
>> SourceFiles 407
>> SourceFileSize 129772148 (124 MB)
>> NewFiles 407
>> NewFileSize 129772148 (124 MB)
>> DeletedFiles 0
>> ChangedFiles 0
>> ChangedFileSize 0 (0 bytes)
>> ChangedDeltaSize 0 (0 bytes)
>> DeltaEntries 407
>> RawDeltaSize 129771740 (124 MB)
>> TotalDestinationSizeChange 126104757 (120 MB)
>> Errors 0
>> -------------------------------------------------
>>
>> % duplicity collection-status --ssh-askpass
>> sftp://<SERVER>/duplicity-TEST2
>> Password for 'xxxxxx':
>> Last full backup date: Sun Nov 16 12:11:47 2025
>> Collection Status
>> -----------------
>> Connecting with backend: BackendWrapper
>> Archive dir:
>> /home/nunotex/.cache/duplicity/1e858504fe8185732be9aeb3d36f09ad
>>
>> Found 0 secondary backup chain(s).
>>
>> Found primary backup chain with matching signature chain:
>> -------------------------
>> Chain start time: Sun Nov 16 12:11:47 2025
>> Chain end time: Sun Nov 16 12:11:47 2025
>> Number of contained backup sets: 1
>> Total number of contained volumes: 1
>>  Type of backup set:                            Time:      Num volumes:
>>                 Full         Sun Nov 16 12:11:47 2025                 1
>> -------------------------
>> No orphaned or incomplete backup sets found.
>>
>> % rm -r .cache/duplicity
>> % duplicity collection-status --ssh-askpass
>> sftp://<SERVER>/duplicity-TEST2
>> Password for 'xxxxxxxx':
>> Error processing remote file
>> (duplicity-full.20251116T121147Z.manifest.gpg): GPG Failed, see log belo=
w:
>> =3D=3D=3D=3D=3D Begin GnuPG log =3D=3D=3D=3D=3D
>> gpg: AES256.CFB encrypted data
>> gpg: gcry_kdf_derive failed: Invalid data
>> gpg: encrypted with 1 passphrase
>> gpg: decryption failed: Bad session key
>> =3D=3D=3D=3D=3D End GnuPG log =3D=3D=3D=3D=3D
>>
>> Any clues? I think same happens to restore cmd but I need more testing.
>>
>> Thanks,
>>
>> --
>> Nuno Teixeira
>> FreeBSD UNIX:  <[email protected]>   Web:  https://FreeBSD.org
>> _______________________________________________
>> Duplicity-talk mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>

--=20
Nuno Teixeira
FreeBSD UNIX:  <[email protected]>   Web:  https://FreeBSD.org

--0000000000005690b50643b75bb4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello Kenneth,<br><br></div>I did take a look at issu=
e901 and you have it very well summarized in a comment from 2 days ago:<br>=
<br>&quot; The only way I have been able to reproduce this is by setting up=
 like this:<ul dir=3D"auto"><li>full</li><li>clear local cache, <code>~/.ca=
che/duplicity</code> (very much not advised)</li><li>inc, collection-status=
, or other action that requires looking at the manifest.&quot;</li></ul><di=
v><br></div><div>I will keep an eye on that issue.<br><br></div><div>Thanks=
,</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">Kenneth Loafman &lt;<a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a>&gt; escreveu (domingo, 16/11/2025 =C3=A0(s=
) 13:43):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d=
ir=3D"ltr"><div>Hi,</div><div><br></div>Deleting the cache is not advised a=
t all.=C2=A0 We use the local manifest file to save having to ask for the p=
assphrase to decrypt the remote manifest, so, if a full is done the local m=
anifest exists and can be used to do collection-status, etc..<div><br></div=
><div>Please add your message to <a href=3D"https://gitlab.com/duplicity/du=
plicity/-/issues/901" target=3D"_blank">issue901</a>=C2=A0as a comment and =
track us there.=C2=A0 I&#39;m trying to find a way to work around this issu=
e, but for now, don&#39;t delete the local cache, or roll back to 3.0.5.1.<=
/div><div><br></div><div>...Thanks,</div><div>...Ken</div></div><br><div cl=
ass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Nov 16, 2=
025 at 6:24=E2=80=AFAM Nuno Teixeira via Duplicity-talk &lt;<a href=3D"mail=
to:[email protected]" target=3D"_blank">[email protected]</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><d=
iv dir=3D"ltr"><div dir=3D"ltr"><div>Hello,<br><br></div><div>Having some p=
roblems on a fresh full backup and collection-status before and after delet=
ing .cache/duplicity dir.</div><div>Tests are be doing with sftp backend.</=
div><div><br></div><div>% rm -r .cache/duplicity<br>rm: .cache/duplicity: N=
o such file or directory<br>% duplicity full --ssh-askpass /home/FILES sftp=
://&lt;SERVER&gt;/duplicity-TEST2<br>Password for &#39;xxxxxxx&#39;:<br>Las=
t full backup date: none<br>GnuPG passphrase for decryption:<br>Retype pass=
phrase for decryption to confirm:<br>--------------[ Backup Statistics ]---=
-----------<br>StartTime 1763295115.53 (Sun Nov 16 12:11:55 2025)<br>EndTim=
e 1763295121.11 (Sun Nov 16 12:12:01 2025)<br>ElapsedTime 5.58 (5.58 second=
s)<br>SourceFiles 407<br>SourceFileSize 129772148 (124 MB)<br>NewFiles 407<=
br>NewFileSize 129772148 (124 MB)<br>DeletedFiles 0<br>ChangedFiles 0<br>Ch=
angedFileSize 0 (0 bytes)<br>ChangedDeltaSize 0 (0 bytes)<br>DeltaEntries 4=
07<br>RawDeltaSize 129771740 (124 MB)<br>TotalDestinationSizeChange 1261047=
57 (120 MB)<br>Errors 0<br>------------------------------------------------=
-</div><div><br></div><div>% duplicity collection-status --ssh-askpass sftp=
://&lt;SERVER&gt;/duplicity-TEST2<br>Password for &#39;xxxxxx&#39;:<br>Last=
 full backup date: Sun Nov 16 12:11:47 2025<br>Collection Status<br>-------=
----------<br>Connecting with backend: BackendWrapper<br>Archive dir: /home=
/nunotex/.cache/duplicity/1e858504fe8185732be9aeb3d36f09ad<br><br>Found 0 s=
econdary backup chain(s).<br><br>Found primary backup chain with matching s=
ignature chain:<br>-------------------------<br>Chain start time: Sun Nov 1=
6 12:11:47 2025<br>Chain end time: Sun Nov 16 12:11:47 2025<br>Number of co=
ntained backup sets: 1<br>Total number of contained volumes: 1<br>=C2=A0Typ=
e of backup set: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Time: =C2=A0 =C2=A0 =C2=A0Num volu=
mes:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Full =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 Sun Nov 16 12:11:47 2025 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 1<br>-------------------------<br>No orphaned o=
r incomplete backup sets found.</div><div><br></div><div>% rm -r .cache/dup=
licity<br>% duplicity collection-status --ssh-askpass sftp://&lt;SERVER&gt;=
/duplicity-TEST2<br>Password for &#39;xxxxxxxx&#39;:<br>Error processing re=
mote file (duplicity-full.20251116T121147Z.manifest.gpg): GPG Failed, see l=
og below:<br>=3D=3D=3D=3D=3D Begin GnuPG log =3D=3D=3D=3D=3D<br>gpg: AES256=
.CFB encrypted data<br>gpg: gcry_kdf_derive failed: Invalid data<br>gpg: en=
crypted with 1 passphrase<br>gpg: decryption failed: Bad session key<br>=3D=
=3D=3D=3D=3D End GnuPG log =3D=3D=3D=3D=3D</div><div><br clear=3D"all"></di=
v>Any clues? I think same happens to restore cmd but I need more testing.<b=
r><br></div><div>Thanks,</div><div dir=3D"ltr"><br><div><span class=3D"gmai=
l_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature=
"><div dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><=
div><div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;[email protected]&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div></div></div>
</div>
_______________________________________________<br>
Duplicity-talk mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Duplicity-ta=
[email protected]</a><br>
<a href=3D"https://lists.nongnu.org/mailman/listinfo/duplicity-talk" rel=3D=
"noreferrer" target=3D"_blank">https://lists.nongnu.org/mailman/listinfo/du=
plicity-talk</a><br>
</blockquote></div>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>=
<div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;[email protected]&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div>

--0000000000005690b50643b75bb4--


--===============6165890406026030816==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRHVwbGljaXR5
LXRhbGsgbWFpbGluZyBsaXN0CkR1cGxpY2l0eS10YWxrQG5vbmdudS5vcmcKaHR0cHM6Ly9saXN0
cy5ub25nbnUub3JnL21haWxtYW4vbGlzdGluZm8vZHVwbGljaXR5LXRhbGsK

--===============6165890406026030816==--