duplicity crashes when I attempt a restore operation

Mark Terner via Duplicity-talk <[email protected]>
Newsgroups gmane.comp.sysutils.backup.duplicity.general
Message-ID <CAAEM=oLiRfWZ0FC6ngdSrOSrx-4Mi+4FoVreUfuKmiWRq8LgTw@mail.gmail.com>
I am currently using duplicity 3.0.4 to backup my files and save them on a
network file server.

The *backup* process appears to be working -- i.e. I can see that backup
files are being saved on the file server.

However, when I attempt to *restore* the backup files, duplicity responds
by having python raise an AssertionError.

I even tried backing up the files to another directory on the *same*
computer I'm backing up -- again the backup process appeared
to work, but the restore process crashes.

Can anyone offer any suggestions?


Thanks,
Mark
---------------------------------------------

Note:
          I've attached a text file containing the error messages produced
when I attempt the restore operation.
         There are two sets of error messages contained -- the first set
shows the error messages which occur
         when I attempt to restore from the file server, and the second set
shows the error messages which occur
         when I attempt to restore from a local directory.

         Also, the computer I'm backing up is running Ubuntu 24.04.02 and
the file server is running Ubuntu 16.04.
         When backing up the files with duplicity, I've tried using sftp
and also ftp -- the backup process appears to work
         for both sftp and ftp, but the restore process always crashes,
regardless of whether I use sftp or ftp.

_______________________________________________
Duplicity-talk mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
duplicity_3.0.4_sftp_restore_error_messages.txt (text/plain, 4.9 KB)
"First Error Message:"

sudo FTP_PASSWORD=XXXXXXXXX duplicity  sftp://[email protected]/uploads/donna-backups /home/donna --no-encryption 
[sudo] password for donna: 
Starting deprecation of python 3.8 support. Support for python 3.8. will finally removed with the release of 3.14.  For details see https://devguide.python.org/versions/
No valid action found. Will imply 'restore' because url source was given and target is a local path.
Synchronizing remote metadata to local cache...
Deleting local /root/.cache/duplicity/348dd6b58f61c68fe67ed4b85f123f51/duplicity-full-signatures.20250221T212347Z.sigtar.gz (not authoritative at backend).
Deleting local /root/.cache/duplicity/348dd6b58f61c68fe67ed4b85f123f51/duplicity-full.20250221T212347Z.manifest (not authoritative at backend).
Copying duplicity-full-signatures.20250221T214454Z.sigtar.gz to local cache.
Copying duplicity-full.20250221T214454Z.manifest to local cache.
Last full backup date: Fri Feb 21 15:44:54 2025
Traceback (innermost last):
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/__main__.py", line 62, in dup_run
    with_tempdir(main)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/__main__.py", line 53, in with_tempdir
    fn()
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 1614, in main
    do_backup(action)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 1695, in do_backup
    restore(col_stats)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 859, in restore
    if not patchdir.Write_ROPaths(config.local_path, restore_get_patched_rop_iter(col_stats)):
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/patchdir.py", line 578, in Write_ROPaths
    ITR(ropath.index, ropath)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/lazy.py", line 360, in __call__
    self.process_w_branch(index, branch, args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/lazy.py", line 317, in process_w_branch
    robust.check_common_error(branch.on_error, branch.start_process, args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/robust.py", line 40, in check_common_error
    return function(*args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/patchdir.py", line 612, in start_process
    assert index == (), index
 AssertionError: (b'.cache',)

================================================================================================================================================================

"Second Error Message:"


sudo duplicity  file:///usr/local/backups/donna-backups /home/donna --no-encryption 
[sudo] password for donna: 
Starting deprecation of python 3.8 support. Support for python 3.8. will finally removed with the release of 3.14.  For details see https://devguide.python.org/versions/
No valid action found. Will imply 'restore' because url source was given and target is a local path.
Synchronizing remote metadata to local cache...
Deleting local /root/.cache/duplicity/1720eedf0a1dd1ee2fc0d1433e7339ec/duplicity-full-signatures.20250221T055923Z.sigtar.gz (not authoritative at backend).
Deleting local /root/.cache/duplicity/1720eedf0a1dd1ee2fc0d1433e7339ec/duplicity-full.20250221T055923Z.manifest (not authoritative at backend).
Copying duplicity-full-signatures.20250221T214454Z.sigtar.gz to local cache.
Copying duplicity-full.20250221T214454Z.manifest to local cache.
Last full backup date: Fri Feb 21 15:44:54 2025
Traceback (innermost last):
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/__main__.py", line 62, in dup_run
    with_tempdir(main)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/__main__.py", line 53, in with_tempdir
    fn()
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 1614, in main
    do_backup(action)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 1695, in do_backup
    restore(col_stats)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/dup_main.py", line 859, in restore
    if not patchdir.Write_ROPaths(config.local_path, restore_get_patched_rop_iter(col_stats)):
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/patchdir.py", line 578, in Write_ROPaths
    ITR(ropath.index, ropath)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/lazy.py", line 360, in __call__
    self.process_w_branch(index, branch, args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/lazy.py", line 317, in process_w_branch
    robust.check_common_error(branch.on_error, branch.start_process, args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/robust.py", line 40, in check_common_error
    return function(*args)
  File "/snap/duplicity/524/lib/python3.8/site-packages/duplicity/patchdir.py", line 612, in start_process
    assert index == (), index
 AssertionError: (b'.cache',)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.