SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Assertion error when restoring files
Author Message
Post Assertion error when restoring files 
Hi,

When restoring files from a backup, I'm getting the following assertion
error:

Processing changed file atsar/atsa31
Regular copying ('atsar', 'atsa31') to logs_1h/atsar/rdiff-backup.tmp.62
Writing file object to logs_1h/atsar/rdiff-backup.tmp.62
Sending back exception (('var', 'log'), ('var', 'log', 'atsar',
'atsa31')) of type exceptions.AssertionError:
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 480, in readfromid
if length is None: return cls.vfiles[id].read()
File "/usr/lib/python2.2/site-packages/rdiff_backup/iterfile.py",
line 285, in read
if not self.addtobuffer(): break
File "/usr/lib/python2.2/site-packages/rdiff_backup/iterfile.py",
line 308, in addtobuffer
try: currentobj = self.iter.next()
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
264, in get_diffs_from_collated
diff = cls.get_diff(mir_rorp, target_rorp)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
277, in get_diff
mir_rorp.setfile(cls.rf_cache.get_fp(expanded_index))
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
363, in get_fp
rf = self.get_rf(index)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
348, in get_rf
if not self.add_rfs(index): return None
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
382, in add_rfs
if Globals.process_uid != 0: self.perm_changer(temp_rf.mirror_rp)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
698, in __call__
assert index > old_index, (index, old_index)

Both sides are running rdiff-backup 0.13.4. Has anyone seen this error
before? Is this a known problem, and is there a workaround?

Regards,

Maarten

Post Assertion error when restoring files 
We get that problem. We've had it since 0.13.2 I think. Not sure what the
solution is. It seems to get into certain directories and then not be able
to get out. To get it working I commented out the assert line. That's not
ideal, but it's been working for us for several months now. My python isn't
good enough to write a fix. :)

Ryan

----- Original Message -----
From: "Maarten Vink / Interstroom" <vink < at > interstroom.nl>
To: <rdiff-backup-users < at > nongnu.org>
Sent: Thursday, September 02, 2004 12:23 AM
Subject: [rdiff-backup-users] Assertion error when restoring files


Hi,

When restoring files from a backup, I'm getting the following assertion
error:

Processing changed file atsar/atsa31
Regular copying ('atsar', 'atsa31') to logs_1h/atsar/rdiff-backup.tmp.62
Writing file object to logs_1h/atsar/rdiff-backup.tmp.62
Sending back exception (('var', 'log'), ('var', 'log', 'atsar', 'atsa31'))
of type exceptions.AssertionError:
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py", line
334, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py", line
480, in readfromid
if length is None: return cls.vfiles[id].read()
File "/usr/lib/python2.2/site-packages/rdiff_backup/iterfile.py", line
285, in read
if not self.addtobuffer(): break
File "/usr/lib/python2.2/site-packages/rdiff_backup/iterfile.py", line
308, in addtobuffer
try: currentobj = self.iter.next()
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
264, in get_diffs_from_collated
diff = cls.get_diff(mir_rorp, target_rorp)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
277, in get_diff
mir_rorp.setfile(cls.rf_cache.get_fp(expanded_index))
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
363, in get_fp
rf = self.get_rf(index)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
348, in get_rf
if not self.add_rfs(index): return None
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
382, in add_rfs
if Globals.process_uid != 0: self.perm_changer(temp_rf.mirror_rp)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
698, in __call__
assert index > old_index, (index, old_index)

Both sides are running rdiff-backup 0.13.4. Has anyone seen this error
before? Is this a known problem, and is there a workaround?

Regards,

Maarten


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki



Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB