duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] assertion fails on any operation (assert len(chain_


From: edgar . soldin
Subject: Re: [Duplicity-talk] assertion fails on any operation (assert len(chain_list) == 2)
Date: Mon, 25 Oct 2010 21:38:06 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

What always worked for me is manually rolling back the backup repository to a 
working state. It is a workaround, but for sure will work.

Simply delete all incrementals up to the broken one (or simply move them to a 
trash folder on the backend). The next run should succeed again.

.. good luck ede/duply.net

On 25.10.2010 21:25, Andrew Pimlott wrote:
I've gotten my backup into a state where any operation results in where
anything I try (including cleanup) results in this assertion firing, in
duplicity/collections.py, line 913 (version 0.6.09 in Debian).

This followed a succession of failed backups over the past two tries.
(These failures were due to problems with Cloud Files.)  In all cases,
the backup command was:

duplicity --archive-dir=/var/cache/duplicity --name<NAME>  --full-if-older-than 4W 
--exclude-other-filesystems --exclude-globbing-filelist /root/backup/exclude.duplicity 
--volsize 250 / cf+http://<BUCKET>

day 1:
Reading globbing filelist /root/backup/exclude.duplicity
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Thu Sep 23 10:00:10 2010
Last full backup is too old, forcing full backup
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
2): sslerror: The write operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
3): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
4): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
5): sslerror: The read operation timed out
Giving up uploading 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' after 5 
attempts
BackendException: Error uploading 
'duplicity-full.20101022T100002Z.vol5.difftar.gpg'

day 2:
Reading globbing filelist /root/backup/exclude.duplicity
Local and Remote metadata are synchronized, no sync needed.
Last full backup left a partial set, restarting.
Last full backup date: Fri Oct 22 10:00:02 2010
RESTART: Volumes 5 to 5 failed to upload before termination.
         Restarting backup at volume 5.
Restarting after volume 4, file 
home/andrew/stable_api/data/datapooling/1908/tmx.zip, block 56
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
2): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol5.difftar.gpg' failed (attempt 
3): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol8.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol15.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol36.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol56.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full.20101022T100002Z.vol59.difftar.gpg' failed (attempt 
1): sslerror: The read operation timed out
Upload of 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' failed 
(attempt 1): sslerror: The read operation timed out
Upload of 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' failed 
(attempt 2): sslerror: The read operation timed out
Upload of 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' failed 
(attempt 3): sslerror: The read operation timed out
Upload of 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' failed 
(attempt 4): sslerror: The read operation timed out
Upload of 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' failed 
(attempt 5): sslerror: The read operation timed out
Giving up uploading 'duplicity-full-signatures.20101022T100002Z.sigtar.gpg' 
after 5 attempts
BackendException: Error uploading 
'duplicity-full-signatures.20101022T100002Z.sigtar.gpg'

day 3:
Reading globbing filelist /root/backup/exclude.duplicity
Local and Remote metadata are synchronized, no sync needed.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1251, in<module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1244, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1149, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.5/site-packages/duplicity/collections.py", line 687, 
in set_values
    backup_chains)
  File "/usr/lib/python2.5/site-packages/duplicity/collections.py", line 700, 
in set_matched_chain_pair
    sig_chains = sig_chains and self.get_sorted_chains(sig_chains)
  File "/usr/lib/python2.5/site-packages/duplicity/collections.py", line 913, 
in get_sorted_chains
    assert len(chain_list) == 2
AssertionError

I debugged just far enough into duplicity to see that when the assertion
fires, there are three elements in chain_list:

local: [duplicity-full-signatures.20101022T100002Z.sigtar.part]
local: [duplicity-full-signatures.20101022T100002Z.sigtar.gpg]
remote: [duplicity-full-signatures.20101022T100002Z.sigtar.gpg]

If I look into my local cache, I see both files:

duplicity-full-signatures.20101022T100002Z.sigtar.gpg
duplicity-full-signatures.20101022T100002Z.sigtar.part

It seems the problem is that duplicity didn't properly handle a failure
during failure recovery (on day 2).  Can someone explain exactly what
happened?  What can I do here?  Should I delete one of the local files?
(which one?)

Andrew

_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

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