Re: Issues after deleting .cache/duplicity

Kenneth Loafman via Duplicity-talk <[email protected]> Sun, 16 Nov 2025 07:43:26 -0600
Newsgroups gmane.comp.sysutils.backup.duplicity.general
Message-ID <CAD-_Ma0dgekAaUwGePZbaew1xjAjhrVijLLSUMSdrA9P+WXtHg@mail.gmail.com>
--===============6061695336887399924==
Content-Type: multipart/alternative; boundary="000000000000fa683c0643b66af5"

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

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-TEST=
2
> 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-TES=
T2
> 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-TES=
T2
> Password for 'xxxxxxxx':
> Error processing remote file
> (duplicity-full.20251116T121147Z.manifest.gpg): GPG Failed, see log below=
:
> =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
>

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

<div dir=3D"ltr"><div>Hi,</div><div><br></div>Deleting the cache is not adv=
ised at all.=C2=A0 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 l=
ocal manifest 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/duplic=
ity/duplicity/-/issues/901">issue901</a>=C2=A0as a comment and track us the=
re.=C2=A0 I&#39;m trying to find a way to work around this issue, but for n=
ow, don&#39;t delete the local cache, or roll back to 3.0.5.1.</div><div><b=
r></div><div>...Thanks,</div><div>...Ken</div></div><br><div class=3D"gmail=
_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun,=
 Nov 16, 2025 at 6:24=E2=80=AFAM Nuno Teixeira via Duplicity-talk &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p=
x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=
=3D"ltr"><div dir=3D"ltr"><div>Hello,<br><br></div><div>Having some problem=
s on a fresh full backup and collection-status before and after deleting .c=
ache/duplicity dir.</div><div>Tests are be doing with sftp backend.</div><d=
iv><br></div><div>% rm -r .cache/duplicity<br>rm: .cache/duplicity: No such=
 file or directory<br>% duplicity full --ssh-askpass /home/FILES sftp://&lt=
;SERVER&gt;/duplicity-TEST2<br>Password for &#39;xxxxxxx&#39;:<br>Last full=
 backup date: none<br>GnuPG passphrase for decryption:<br>Retype passphrase=
 for decryption to confirm:<br>--------------[ Backup Statistics ]---------=
-----<br>StartTime 1763295115.53 (Sun Nov 16 12:11:55 2025)<br>EndTime 1763=
295121.11 (Sun Nov 16 12:12:01 2025)<br>ElapsedTime 5.58 (5.58 seconds)<br>=
SourceFiles 407<br>SourceFileSize 129772148 (124 MB)<br>NewFiles 407<br>New=
FileSize 129772148 (124 MB)<br>DeletedFiles 0<br>ChangedFiles 0<br>ChangedF=
ileSize 0 (0 bytes)<br>ChangedDeltaSize 0 (0 bytes)<br>DeltaEntries 407<br>=
RawDeltaSize 129771740 (124 MB)<br>TotalDestinationSizeChange 126104757 (12=
0 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/nunot=
ex/.cache/duplicity/1e858504fe8185732be9aeb3d36f09ad<br><br>Found 0 seconda=
ry backup chain(s).<br><br>Found primary backup chain with matching signatu=
re chain:<br>-------------------------<br>Chain start time: Sun Nov 16 12:1=
1:47 2025<br>Chain end time: Sun Nov 16 12:11:47 2025<br>Number of containe=
d backup sets: 1<br>Total number of contained volumes: 1<br>=C2=A0Type of b=
ackup 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 volumes:<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 or incom=
plete backup sets found.</div><div><br></div><div>% rm -r .cache/duplicity<=
br>% duplicity collection-status --ssh-askpass sftp://&lt;SERVER&gt;/duplic=
ity-TEST2<br>Password for &#39;xxxxxxxx&#39;:<br>Error processing remote fi=
le (duplicity-full.20251116T121147Z.manifest.gpg): GPG Failed, see log belo=
w:<br>=3D=3D=3D=3D=3D Begin GnuPG log =3D=3D=3D=3D=3D<br>gpg: AES256.CFB en=
crypted data<br>gpg: gcry_kdf_derive failed: Invalid data<br>gpg: encrypted=
 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"></div>Any =
clues? I think same happens to restore cmd but I need more testing.<br><br>=
</div><div>Thanks,</div><div dir=3D"ltr"><br><div><span class=3D"gmail_sign=
ature_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><d=
iv><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>

--000000000000fa683c0643b66af5--


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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRHVwbGljaXR5
LXRhbGsgbWFpbGluZyBsaXN0CkR1cGxpY2l0eS10YWxrQG5vbmdudS5vcmcKaHR0cHM6Ly9saXN0
cy5ub25nbnUub3JnL21haWxtYW4vbGlzdGluZm8vZHVwbGljaXR5LXRhbGsK

--===============6061695336887399924==--