No backup chains found / Local and Remote metadata are synchronized, no sync needed - when moving the box

When executing the very last step in “Moving the box” section (as a step in upgrading from 5x to the latest):

The following error is thrown:

root@megliomail:~# sudo -E duplicity restore --force file:///root/backup/encrypted /home/user-data/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Traceback (innermost last):
  File "/usr/bin/duplicity", line 86, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 70, in with_tempdir
    fn()
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1575, in main
    do_backup(action)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1658, in do_backup
    restore(col_stats)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 749, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 771, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 992, in get_backup_chain_at_time
    raise CollectionsError(u"No backup chains found")
 duplicity.dup_collections.CollectionsError: No backup chains found

I guess the most important piece here is the last line in the debug output:

No backup chains found

However, ls -al /root/backup/encrypted/* lists all the backup files.

list of backup files
root@megliomail:~# ls -al /root/backup/encrypted/*
total 743764
drwxr-xr-x 2 root root     16384 May 20 22:10 .
drwxr-xr-x 3 root root      4096 May 20 21:59 ..
-rw-r--r-- 1 root root  31386202 May 20 22:03 duplicity-full-signatures.20230419T174105Z.sigtar.gpg
-rw-r--r-- 1 root root    563511 May 20 22:07 duplicity-full.20230419T174105Z.manifest.gpg
-rw-r--r-- 1 root root 262111567 May 20 22:03 duplicity-full.20230419T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root 262190478 May 20 22:07 duplicity-full.20230419T174105Z.vol2.difftar.gpg
-rw-r--r-- 1 root root  55852275 May 20 22:10 duplicity-full.20230419T174105Z.vol3.difftar.gpg
-rw-r--r-- 1 root root       267 May 20 22:09 duplicity-inc.20230419T174105Z.to.20230420T174105Z.manifest.gpg
-rw-r--r-- 1 root root      6627 May 20 22:09 duplicity-inc.20230419T174105Z.to.20230420T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       269 May 20 22:07 duplicity-inc.20230420T174105Z.to.20230421T174105Z.manifest.gpg
-rw-r--r-- 1 root root     16345 May 20 21:59 duplicity-inc.20230420T174105Z.to.20230421T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       268 May 20 22:03 duplicity-inc.20230421T174105Z.to.20230422T174104Z.manifest.gpg
-rw-r--r-- 1 root root      8187 May 20 22:07 duplicity-inc.20230421T174105Z.to.20230422T174104Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       371 May 20 22:03 duplicity-inc.20230422T174104Z.to.20230423T174109Z.manifest.gpg
-rw-r--r-- 1 root root      9027 May 20 22:03 duplicity-inc.20230422T174104Z.to.20230423T174109Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       309 May 20 22:09 duplicity-inc.20230423T174109Z.to.20230424T174105Z.manifest.gpg
-rw-r--r-- 1 root root      4439 May 20 22:07 duplicity-inc.20230423T174109Z.to.20230424T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       425 May 20 22:09 duplicity-inc.20230424T174105Z.to.20230425T174105Z.manifest.gpg
-rw-r--r-- 1 root root      9642 May 20 22:09 duplicity-inc.20230424T174105Z.to.20230425T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       392 May 20 22:07 duplicity-inc.20230425T174105Z.to.20230426T174105Z.manifest.gpg
-rw-r--r-- 1 root root      5759 May 20 22:07 duplicity-inc.20230425T174105Z.to.20230426T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       399 May 20 22:07 duplicity-inc.20230426T174105Z.to.20230427T174105Z.manifest.gpg
-rw-r--r-- 1 root root     17851 May 20 22:07 duplicity-inc.20230426T174105Z.to.20230427T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       268 May 20 22:03 duplicity-inc.20230427T174105Z.to.20230428T174105Z.manifest.gpg
-rw-r--r-- 1 root root      2957 May 20 22:03 duplicity-inc.20230427T174105Z.to.20230428T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       267 May 20 21:59 duplicity-inc.20230428T174105Z.to.20230429T174105Z.manifest.gpg
-rw-r--r-- 1 root root      6136 May 20 22:03 duplicity-inc.20230428T174105Z.to.20230429T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       267 May 20 22:07 duplicity-inc.20230429T174105Z.to.20230430T174109Z.manifest.gpg
-rw-r--r-- 1 root root      4105 May 20 22:07 duplicity-inc.20230429T174105Z.to.20230430T174109Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       389 May 20 22:07 duplicity-inc.20230430T174109Z.to.20230501T174104Z.manifest.gpg
-rw-r--r-- 1 root root      8896 May 20 22:09 duplicity-inc.20230430T174109Z.to.20230501T174104Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       394 May 20 21:59 duplicity-inc.20230501T174104Z.to.20230502T174105Z.manifest.gpg
-rw-r--r-- 1 root root    655081 May 20 22:09 duplicity-inc.20230501T174104Z.to.20230502T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       357 May 20 22:07 duplicity-inc.20230502T174105Z.to.20230503T174105Z.manifest.gpg
-rw-r--r-- 1 root root      5913 May 20 22:03 duplicity-inc.20230502T174105Z.to.20230503T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       366 May 20 22:07 duplicity-inc.20230503T174105Z.to.20230504T174104Z.manifest.gpg
-rw-r--r-- 1 root root     20935 May 20 22:04 duplicity-inc.20230503T174105Z.to.20230504T174104Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       266 May 20 21:59 duplicity-inc.20230504T174104Z.to.20230505T174105Z.manifest.gpg
-rw-r--r-- 1 root root      5571 May 20 22:03 duplicity-inc.20230504T174104Z.to.20230505T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       266 May 20 22:03 duplicity-inc.20230505T174105Z.to.20230506T174106Z.manifest.gpg
-rw-r--r-- 1 root root      7580 May 20 22:07 duplicity-inc.20230505T174105Z.to.20230506T174106Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       269 May 20 22:10 duplicity-inc.20230506T174106Z.to.20230507T174109Z.manifest.gpg
-rw-r--r-- 1 root root      6961 May 20 21:59 duplicity-inc.20230506T174106Z.to.20230507T174109Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       388 May 20 22:09 duplicity-inc.20230507T174109Z.to.20230508T174105Z.manifest.gpg
-rw-r--r-- 1 root root     10577 May 20 22:03 duplicity-inc.20230507T174109Z.to.20230508T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       269 May 20 22:07 duplicity-inc.20230508T174105Z.to.20230509T174105Z.manifest.gpg
-rw-r--r-- 1 root root      7338 May 20 22:07 duplicity-inc.20230508T174105Z.to.20230509T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       271 May 20 22:04 duplicity-inc.20230509T174105Z.to.20230510T174105Z.manifest.gpg
-rw-r--r-- 1 root root     13396 May 20 22:09 duplicity-inc.20230509T174105Z.to.20230510T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       269 May 20 22:07 duplicity-inc.20230510T174105Z.to.20230511T174106Z.manifest.gpg
-rw-r--r-- 1 root root     16919 May 20 22:03 duplicity-inc.20230510T174105Z.to.20230511T174106Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       397 May 20 22:07 duplicity-inc.20230511T174106Z.to.20230512T174106Z.manifest.gpg
-rw-r--r-- 1 root root      9180 May 20 22:07 duplicity-inc.20230511T174106Z.to.20230512T174106Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       363 May 20 22:03 duplicity-inc.20230512T174106Z.to.20230513T174107Z.manifest.gpg
-rw-r--r-- 1 root root      8851 May 20 22:09 duplicity-inc.20230512T174106Z.to.20230513T174107Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       363 May 20 22:03 duplicity-inc.20230513T174107Z.to.20230514T174110Z.manifest.gpg
-rw-r--r-- 1 root root      6789 May 20 22:03 duplicity-inc.20230513T174107Z.to.20230514T174110Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       375 May 20 22:03 duplicity-inc.20230514T174110Z.to.20230515T174105Z.manifest.gpg
-rw-r--r-- 1 root root      9331 May 20 22:07 duplicity-inc.20230514T174110Z.to.20230515T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       483 May 20 22:07 duplicity-inc.20230515T174105Z.to.20230516T174105Z.manifest.gpg
-rw-r--r-- 1 root root     24755 May 20 22:09 duplicity-inc.20230515T174105Z.to.20230516T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       375 May 20 22:07 duplicity-inc.20230516T174105Z.to.20230517T174105Z.manifest.gpg
-rw-r--r-- 1 root root     17333 May 20 22:03 duplicity-inc.20230516T174105Z.to.20230517T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       266 May 20 21:59 duplicity-inc.20230517T174105Z.to.20230518T174105Z.manifest.gpg
-rw-r--r-- 1 root root     14391 May 20 22:07 duplicity-inc.20230517T174105Z.to.20230518T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root       269 May 20 21:59 duplicity-inc.20230518T174105Z.to.20230519T174105Z.manifest.gpg
-rw-r--r-- 1 root root      4669 May 20 22:07 duplicity-inc.20230518T174105Z.to.20230519T174105Z.vol1.difftar.gpg
-rw-r--r-- 1 root root    111752 May 20 22:03 duplicity-inc.20230519T174105Z.to.20230520T110020Z.manifest.gpg
-rw-r--r-- 1 root root 138680593 May 20 22:09 duplicity-inc.20230519T174105Z.to.20230520T110020Z.vol1.difftar.gpg
-rw-r--r-- 1 root root     56193 May 20 22:03 duplicity-new-signatures.20230419T174105Z.to.20230420T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56173 May 20 22:07 duplicity-new-signatures.20230420T174105Z.to.20230421T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56189 May 20 22:10 duplicity-new-signatures.20230421T174105Z.to.20230422T174104Z.sigtar.gpg
-rw-r--r-- 1 root root     57766 May 20 22:03 duplicity-new-signatures.20230422T174104Z.to.20230423T174109Z.sigtar.gpg
-rw-r--r-- 1 root root     57208 May 20 22:03 duplicity-new-signatures.20230423T174109Z.to.20230424T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     58305 May 20 22:10 duplicity-new-signatures.20230424T174105Z.to.20230425T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56861 May 20 22:03 duplicity-new-signatures.20230425T174105Z.to.20230426T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56870 May 20 22:09 duplicity-new-signatures.20230426T174105Z.to.20230427T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56207 May 20 22:10 duplicity-new-signatures.20230427T174105Z.to.20230428T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56204 May 20 22:07 duplicity-new-signatures.20230428T174105Z.to.20230429T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56200 May 20 21:59 duplicity-new-signatures.20230429T174105Z.to.20230430T174109Z.sigtar.gpg
-rw-r--r-- 1 root root     58322 May 20 22:07 duplicity-new-signatures.20230430T174109Z.to.20230501T174104Z.sigtar.gpg
-rw-r--r-- 1 root root     97293 May 20 22:03 duplicity-new-signatures.20230501T174104Z.to.20230502T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56914 May 20 22:07 duplicity-new-signatures.20230502T174105Z.to.20230503T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     58119 May 20 22:09 duplicity-new-signatures.20230503T174105Z.to.20230504T174104Z.sigtar.gpg
-rw-r--r-- 1 root root     56338 May 20 22:10 duplicity-new-signatures.20230504T174104Z.to.20230505T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56333 May 20 22:07 duplicity-new-signatures.20230505T174105Z.to.20230506T174106Z.sigtar.gpg
-rw-r--r-- 1 root root     56345 May 20 22:04 duplicity-new-signatures.20230506T174106Z.to.20230507T174109Z.sigtar.gpg
-rw-r--r-- 1 root root     58686 May 20 22:09 duplicity-new-signatures.20230507T174109Z.to.20230508T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56335 May 20 22:07 duplicity-new-signatures.20230508T174105Z.to.20230509T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56346 May 20 22:10 duplicity-new-signatures.20230509T174105Z.to.20230510T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56348 May 20 22:03 duplicity-new-signatures.20230510T174105Z.to.20230511T174106Z.sigtar.gpg
-rw-r--r-- 1 root root     57122 May 20 22:07 duplicity-new-signatures.20230511T174106Z.to.20230512T174106Z.sigtar.gpg
-rw-r--r-- 1 root root     56996 May 20 22:09 duplicity-new-signatures.20230512T174106Z.to.20230513T174107Z.sigtar.gpg
-rw-r--r-- 1 root root     58115 May 20 22:09 duplicity-new-signatures.20230513T174107Z.to.20230514T174110Z.sigtar.gpg
-rw-r--r-- 1 root root     58054 May 20 22:07 duplicity-new-signatures.20230514T174110Z.to.20230515T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     59852 May 20 22:10 duplicity-new-signatures.20230515T174105Z.to.20230516T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56852 May 20 21:59 duplicity-new-signatures.20230516T174105Z.to.20230517T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56084 May 20 22:03 duplicity-new-signatures.20230517T174105Z.to.20230518T174105Z.sigtar.gpg
-rw-r--r-- 1 root root     56073 May 20 22:07 duplicity-new-signatures.20230518T174105Z.to.20230519T174105Z.sigtar.gpg
-rw-r--r-- 1 root root   7737729 May 20 22:09 duplicity-new-signatures.20230519T174105Z.to.20230520T110020Z.sigtar.gpg

SOLVED.

First, I tried copying files with using scp. This somehow corrupted (some) files.

Next, I tried to first zip the whole backup folder, and only then send it through scp, then unzip - this worked.

NB. After a successful backup restoration as by the official guide, you SHOULD run the upgrade again - for me it solved the “Something went wrong” message.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.