abrt 1.0.6 detected a crash. architecture: x86_64 cmdline: /usr/bin/python /usr/bin/rdiff-backup -l /media/disk/rdiff-backup component: rdiff-backup executable: /usr/bin/rdiff-backup kernel: 2.6.32.8-48.rc2.fc12.x86_64 package: rdiff-backup-1.2.8-3.fc12 release: Fedora release 12 (Constantine) backtrace ----- Summary: TBff5a9edb Main.py:907:checkdest_need_check:AssertionError: Found too many current_mirror incs! Traceback (most recent call last): File "/usr/bin/rdiff-backup", line 30, in <module> rdiff_backup.Main.error_check_Main(sys.argv[1:]) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main try: Main(arglist) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 324, in Main take_action(rps) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 286, in take_action elif action == "list-increments": ListIncrements(rps[0]) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 713, in ListIncrements restore_check_backup_dir(restore_root) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 645, in restore_check_backup_dir result = checkdest_need_check(mirror_root) File "/usr/lib64/python2.6/site-packages/rdiff_backup/Main.py", line 907, in checkdest_need_check assert len(curmir_incs) == 2, "Found too many current_mirror incs!" AssertionError: Found too many current_mirror incs! Local variables in innermost frame: curmirroot: <rdiff_backup.rpath.RPath instance at 0x7f67124bd518> curmir_incs: [<rdiff_backup.rpath.RPath instance at 0x7f67124ca170>, <rdiff_backup.rpath.RPath instance at 0x7f67124ca5f0>, <rdiff_backup.rpath.RPath instance at 0x7f67124caea8>, <rdiff_backup.rpath.RPath instance at 0x7f67124cb2d8>] dest_rp: <rdiff_backup.rpath.RPath instance at 0x7f67124bd560> filename: 'session_statistics.2009-10-28T21:00:01+01:00.data' How to reproduce ----- 1. Backup data 2. rdiff-backup -l /path/to/backup 3.
Created attachment 394702 [details] File: backtrace
This only happens to backup folder that i have rsynced to another hard drive. Exactly same folder gives me list of backups when issuing rdiff-backup -l. Backups on external drives are added with rsync every week.
This error is often when you have a backup running and run another one and they step on each other. If you run a 'rdiff-backup --force --check-destination-dir /path/to/backup' and then check it does it show correctly now? Also, is the problem backup dir on another filesystem type from the one you rsynced it from?
After running 'rdiff-backup --force --check-destination-dir /path/to/backup' i have same error. I am pretty sure that only one rdiff-backup was running. Filesystems are same, ext4, only difference is failing one is encrypted.
ok, Can you attach "session_statistics.2009-10-28T21:00:01+01:00.data" file from the backup? If you do a 'rsync -n' between the good repo and the bad one, what changes does it show?
Created attachment 395238 [details] session_statistics
[michal@michal-junior]~% rsync -n ~/Dokumenty/backup/rdiff-backup /media/disk/rdiff-backup/ skipping directory rdiff-backup Output does not look right to me. Shouldn`t it print something?
Sorry, you have to specify at least -a also. Try: rsync -n -a -v ~/Dokumenty/backup/rdiff-backup/ /media/disk/rdiff-backup/
Would you like me to paste results here? It is a long list.
No need. I wanted to see if your two repos were identical or not. it seems not. Perhaps something went wrong with the initial rsync? You were not rsyncing it while it was doing a backup were you? Can you try rsyncing it over again and see if it finishes cleanly and then try listing again?
Ok, even though i just run rsync -av, dry-run (-n option) showed a bunch of files. Nope, i never rsync while doing backup. I`ll try to remove whole backup from my encrypted drive and rsync it fresh new, then create todays backup and rsync it.
1. Deleted backup from encrypted drive (bad one). 2. Rsynced backup over again. 3. Run backup and then rsynced changes After running rsync -nav it does not show any results, so directories match. [michal@localhost]~% rdiff-backup -l /media/disk/rdiff-backup Fatal Error: Previous backup to /media/disk/rdiff-backup seems to have failed. Rerun rdiff-backup with --check-destination-dir option to revert directory to state before unsuccessful session. [michal@localhost]~% rdiff-backup --check-destination-dir /media/disk/rdiff-backup [michal@localhost]~% rdiff-backup -l /media/disk/rdiff-backup Found 79 increments: increments.2009-08-23T21:58:04+02:00.dir Sun Aug 23 21:58:04 2009 increments.2009-08-23T22:04:15+02:00.dir Sun Aug 23 22:04:15 2009 increments.2009-08-23T23:05:29+02:00.dir Sun Aug 23 23:05:29 2009 increments.2009-08-23T23:10:22+02:00.dir Sun Aug 23 23:10:22 2009 increments.2009-08-23T23:16:34+02:00.dir Sun Aug 23 23:16:34 2009 increments.2009-08-23T23:20:01+02:00.dir Sun Aug 23 23:20:01 2009 increments.2009-08-23T23:24:06+02:00.dir Sun Aug 23 23:24:06 2009 increments.2009-08-24T00:09:02+02:00.dir Mon Aug 24 00:09:02 2009 increments.2009-08-24T09:10:56+02:00.dir Mon Aug 24 09:10:56 2009 increments.2009-08-24T10:23:14+02:00.dir Mon Aug 24 10:23:14 2009 increments.2009-08-24T10:43:23+02:00.dir Mon Aug 24 10:43:23 2009 increments.2009-08-25T09:00:02+02:00.dir Tue Aug 25 09:00:02 2009 increments.2009-08-26T09:00:03+02:00.dir Wed Aug 26 09:00:03 2009 increments.2009-08-28T09:00:02+02:00.dir Fri Aug 28 09:00:02 2009 increments.2009-08-29T09:00:02+02:00.dir Sat Aug 29 09:00:02 2009 increments.2009-08-30T09:00:02+02:00.dir Sun Aug 30 09:00:02 2009 increments.2009-08-31T09:00:02+02:00.dir Mon Aug 31 09:00:02 2009 increments.2009-09-07T13:32:32+02:00.dir Mon Sep 7 13:32:32 2009 increments.2009-09-09T09:00:02+02:00.dir Wed Sep 9 09:00:02 2009 increments.2009-09-10T13:47:11+02:00.dir Thu Sep 10 13:47:11 2009 increments.2009-09-10T22:49:29+02:00.dir Thu Sep 10 22:49:29 2009 increments.2009-09-11T09:00:03+02:00.dir Fri Sep 11 09:00:03 2009 increments.2009-09-15T09:00:02+02:00.dir Tue Sep 15 09:00:02 2009 increments.2009-09-16T09:00:03+02:00.dir Wed Sep 16 09:00:03 2009 increments.2009-09-18T09:00:02+02:00.dir Fri Sep 18 09:00:02 2009 increments.2009-09-22T09:00:02+02:00.dir Tue Sep 22 09:00:02 2009 increments.2009-09-29T09:00:03+02:00.dir Tue Sep 29 09:00:03 2009 increments.2009-09-30T09:00:02+02:00.dir Wed Sep 30 09:00:02 2009 increments.2009-10-02T09:00:02+02:00.dir Fri Oct 2 09:00:02 2009 increments.2009-10-03T09:00:02+02:00.dir Sat Oct 3 09:00:02 2009 increments.2009-10-06T09:00:02+02:00.dir Tue Oct 6 09:00:02 2009 increments.2009-10-10T09:00:02+02:00.dir Sat Oct 10 09:00:02 2009 increments.2009-10-11T09:00:03+02:00.dir Sun Oct 11 09:00:03 2009 increments.2009-10-14T21:00:03+02:00.dir Wed Oct 14 21:00:03 2009 increments.2009-10-15T21:00:01+02:00.dir Thu Oct 15 21:00:01 2009 increments.2009-10-16T21:00:03+02:00.dir Fri Oct 16 21:00:03 2009 increments.2009-10-19T21:00:03+02:00.dir Mon Oct 19 21:00:03 2009 increments.2009-10-20T21:00:02+02:00.dir Tue Oct 20 21:00:02 2009 increments.2009-10-22T21:00:02+02:00.dir Thu Oct 22 21:00:02 2009 increments.2009-10-25T15:23:07+01:00.dir Sun Oct 25 15:23:07 2009 increments.2009-10-25T21:00:02+01:00.dir Sun Oct 25 21:00:02 2009 increments.2009-10-26T21:00:02+01:00.dir Mon Oct 26 21:00:02 2009 increments.2009-10-27T21:00:02+01:00.dir Tue Oct 27 21:00:02 2009 increments.2009-10-28T21:00:01+01:00.dir Wed Oct 28 21:00:01 2009 increments.2009-10-29T21:00:03+01:00.dir Thu Oct 29 21:00:03 2009 increments.2009-11-01T21:00:02+01:00.dir Sun Nov 1 21:00:02 2009 increments.2009-11-03T21:00:01+01:00.dir Tue Nov 3 21:00:01 2009 increments.2009-11-04T21:00:03+01:00.dir Wed Nov 4 21:00:03 2009 increments.2009-11-06T21:00:02+01:00.dir Fri Nov 6 21:00:02 2009 increments.2009-11-08T21:00:03+01:00.dir Sun Nov 8 21:00:03 2009 increments.2009-11-09T21:00:03+01:00.dir Mon Nov 9 21:00:03 2009 increments.2009-11-10T21:00:02+01:00.dir Tue Nov 10 21:00:02 2009 increments.2009-11-11T21:00:02+01:00.dir Wed Nov 11 21:00:02 2009 increments.2009-11-12T21:00:02+01:00.dir Thu Nov 12 21:00:02 2009 increments.2009-11-13T21:00:03+01:00.dir Fri Nov 13 21:00:03 2009 increments.2009-11-15T21:00:02+01:00.dir Sun Nov 15 21:00:02 2009 increments.2009-11-19T21:00:29+01:00.dir Thu Nov 19 21:00:29 2009 increments.2009-11-29T13:42:46+01:00.dir Sun Nov 29 13:42:46 2009 increments.2009-12-14T09:10:58+01:00.dir Mon Dec 14 09:10:58 2009 increments.2009-12-14T13:52:41+01:00.dir Mon Dec 14 13:52:41 2009 increments.2010-01-03T12:05:53+01:00.dir Sun Jan 3 12:05:53 2010 increments.2010-01-10T20:00:02+01:00.dir Sun Jan 10 20:00:02 2010 increments.2010-01-11T20:00:02+01:00.dir Mon Jan 11 20:00:02 2010 increments.2010-01-15T20:00:01+01:00.dir Fri Jan 15 20:00:01 2010 increments.2010-01-16T20:00:02+01:00.dir Sat Jan 16 20:00:02 2010 increments.2010-01-18T20:00:02+01:00.dir Mon Jan 18 20:00:02 2010 increments.2010-01-19T20:00:02+01:00.dir Tue Jan 19 20:00:02 2010 increments.2010-01-23T20:00:02+01:00.dir Sat Jan 23 20:00:02 2010 increments.2010-01-24T20:00:02+01:00.dir Sun Jan 24 20:00:02 2010 increments.2010-01-25T20:00:02+01:00.dir Mon Jan 25 20:00:02 2010 increments.2010-02-02T20:00:01+01:00.dir Tue Feb 2 20:00:01 2010 increments.2010-02-05T20:00:02+01:00.dir Fri Feb 5 20:00:02 2010 increments.2010-02-06T20:00:01+01:00.dir Sat Feb 6 20:00:01 2010 increments.2010-02-07T20:00:03+01:00.dir Sun Feb 7 20:00:03 2010 increments.2010-02-13T20:00:02+01:00.dir Sat Feb 13 20:00:02 2010 increments.2010-02-14T20:00:02+01:00.dir Sun Feb 14 20:00:02 2010 increments.2010-02-16T20:00:02+01:00.dir Tue Feb 16 20:00:02 2010 increments.2010-02-17T20:00:01+01:00.dir Wed Feb 17 20:00:01 2010 increments.2010-02-19T20:00:02+01:00.dir Fri Feb 19 20:00:02 2010 Current mirror: Sat Feb 20 20:00:02 2010 [michal@localhost]~% rdiff-backup -l ~/Dokumenty/backup/rdiff-backup Found 80 increments: increments.2009-08-23T21:58:04+02:00.dir Sun Aug 23 21:58:04 2009 increments.2009-08-23T22:04:15+02:00.dir Sun Aug 23 22:04:15 2009 increments.2009-08-23T23:05:29+02:00.dir Sun Aug 23 23:05:29 2009 increments.2009-08-23T23:10:22+02:00.dir Sun Aug 23 23:10:22 2009 increments.2009-08-23T23:16:34+02:00.dir Sun Aug 23 23:16:34 2009 increments.2009-08-23T23:20:01+02:00.dir Sun Aug 23 23:20:01 2009 increments.2009-08-23T23:24:06+02:00.dir Sun Aug 23 23:24:06 2009 increments.2009-08-24T00:09:02+02:00.dir Mon Aug 24 00:09:02 2009 increments.2009-08-24T09:10:56+02:00.dir Mon Aug 24 09:10:56 2009 increments.2009-08-24T10:23:14+02:00.dir Mon Aug 24 10:23:14 2009 increments.2009-08-24T10:43:23+02:00.dir Mon Aug 24 10:43:23 2009 increments.2009-08-25T09:00:02+02:00.dir Tue Aug 25 09:00:02 2009 increments.2009-08-26T09:00:03+02:00.dir Wed Aug 26 09:00:03 2009 increments.2009-08-28T09:00:02+02:00.dir Fri Aug 28 09:00:02 2009 increments.2009-08-29T09:00:02+02:00.dir Sat Aug 29 09:00:02 2009 increments.2009-08-30T09:00:02+02:00.dir Sun Aug 30 09:00:02 2009 increments.2009-08-31T09:00:02+02:00.dir Mon Aug 31 09:00:02 2009 increments.2009-09-07T13:32:32+02:00.dir Mon Sep 7 13:32:32 2009 increments.2009-09-09T09:00:02+02:00.dir Wed Sep 9 09:00:02 2009 increments.2009-09-10T13:47:11+02:00.dir Thu Sep 10 13:47:11 2009 increments.2009-09-10T22:49:29+02:00.dir Thu Sep 10 22:49:29 2009 increments.2009-09-11T09:00:03+02:00.dir Fri Sep 11 09:00:03 2009 increments.2009-09-15T09:00:02+02:00.dir Tue Sep 15 09:00:02 2009 increments.2009-09-16T09:00:03+02:00.dir Wed Sep 16 09:00:03 2009 increments.2009-09-18T09:00:02+02:00.dir Fri Sep 18 09:00:02 2009 increments.2009-09-22T09:00:02+02:00.dir Tue Sep 22 09:00:02 2009 increments.2009-09-29T09:00:03+02:00.dir Tue Sep 29 09:00:03 2009 increments.2009-09-30T09:00:02+02:00.dir Wed Sep 30 09:00:02 2009 increments.2009-10-02T09:00:02+02:00.dir Fri Oct 2 09:00:02 2009 increments.2009-10-03T09:00:02+02:00.dir Sat Oct 3 09:00:02 2009 increments.2009-10-06T09:00:02+02:00.dir Tue Oct 6 09:00:02 2009 increments.2009-10-10T09:00:02+02:00.dir Sat Oct 10 09:00:02 2009 increments.2009-10-11T09:00:03+02:00.dir Sun Oct 11 09:00:03 2009 increments.2009-10-14T21:00:03+02:00.dir Wed Oct 14 21:00:03 2009 increments.2009-10-15T21:00:01+02:00.dir Thu Oct 15 21:00:01 2009 increments.2009-10-16T21:00:03+02:00.dir Fri Oct 16 21:00:03 2009 increments.2009-10-19T21:00:03+02:00.dir Mon Oct 19 21:00:03 2009 increments.2009-10-20T21:00:02+02:00.dir Tue Oct 20 21:00:02 2009 increments.2009-10-22T21:00:02+02:00.dir Thu Oct 22 21:00:02 2009 increments.2009-10-25T15:23:07+01:00.dir Sun Oct 25 15:23:07 2009 increments.2009-10-25T21:00:02+01:00.dir Sun Oct 25 21:00:02 2009 increments.2009-10-26T21:00:02+01:00.dir Mon Oct 26 21:00:02 2009 increments.2009-10-27T21:00:02+01:00.dir Tue Oct 27 21:00:02 2009 increments.2009-10-28T21:00:01+01:00.dir Wed Oct 28 21:00:01 2009 increments.2009-10-29T21:00:03+01:00.dir Thu Oct 29 21:00:03 2009 increments.2009-11-01T21:00:02+01:00.dir Sun Nov 1 21:00:02 2009 increments.2009-11-03T21:00:01+01:00.dir Tue Nov 3 21:00:01 2009 increments.2009-11-04T21:00:03+01:00.dir Wed Nov 4 21:00:03 2009 increments.2009-11-06T21:00:02+01:00.dir Fri Nov 6 21:00:02 2009 increments.2009-11-08T21:00:03+01:00.dir Sun Nov 8 21:00:03 2009 increments.2009-11-09T21:00:03+01:00.dir Mon Nov 9 21:00:03 2009 increments.2009-11-10T21:00:02+01:00.dir Tue Nov 10 21:00:02 2009 increments.2009-11-11T21:00:02+01:00.dir Wed Nov 11 21:00:02 2009 increments.2009-11-12T21:00:02+01:00.dir Thu Nov 12 21:00:02 2009 increments.2009-11-13T21:00:03+01:00.dir Fri Nov 13 21:00:03 2009 increments.2009-11-15T21:00:02+01:00.dir Sun Nov 15 21:00:02 2009 increments.2009-11-19T21:00:29+01:00.dir Thu Nov 19 21:00:29 2009 increments.2009-11-29T13:42:46+01:00.dir Sun Nov 29 13:42:46 2009 increments.2009-12-14T09:10:58+01:00.dir Mon Dec 14 09:10:58 2009 increments.2009-12-14T13:52:41+01:00.dir Mon Dec 14 13:52:41 2009 increments.2010-01-03T12:05:53+01:00.dir Sun Jan 3 12:05:53 2010 increments.2010-01-10T20:00:02+01:00.dir Sun Jan 10 20:00:02 2010 increments.2010-01-11T20:00:02+01:00.dir Mon Jan 11 20:00:02 2010 increments.2010-01-15T20:00:01+01:00.dir Fri Jan 15 20:00:01 2010 increments.2010-01-16T20:00:02+01:00.dir Sat Jan 16 20:00:02 2010 increments.2010-01-18T20:00:02+01:00.dir Mon Jan 18 20:00:02 2010 increments.2010-01-19T20:00:02+01:00.dir Tue Jan 19 20:00:02 2010 increments.2010-01-23T20:00:02+01:00.dir Sat Jan 23 20:00:02 2010 increments.2010-01-24T20:00:02+01:00.dir Sun Jan 24 20:00:02 2010 increments.2010-01-25T20:00:02+01:00.dir Mon Jan 25 20:00:02 2010 increments.2010-02-02T20:00:01+01:00.dir Tue Feb 2 20:00:01 2010 increments.2010-02-05T20:00:02+01:00.dir Fri Feb 5 20:00:02 2010 increments.2010-02-06T20:00:01+01:00.dir Sat Feb 6 20:00:01 2010 increments.2010-02-07T20:00:03+01:00.dir Sun Feb 7 20:00:03 2010 increments.2010-02-13T20:00:02+01:00.dir Sat Feb 13 20:00:02 2010 increments.2010-02-14T20:00:02+01:00.dir Sun Feb 14 20:00:02 2010 increments.2010-02-16T20:00:02+01:00.dir Tue Feb 16 20:00:02 2010 increments.2010-02-17T20:00:01+01:00.dir Wed Feb 17 20:00:01 2010 increments.2010-02-19T20:00:02+01:00.dir Fri Feb 19 20:00:02 2010 increments.2010-02-20T20:00:02+01:00.dir Sat Feb 20 20:00:02 2010 Current mirror: Wed Feb 24 21:36:08 2010 [michal@localhost]~% One most recent backup had to be removed by running --check-destination-dir even though both directories matched.
Quite odd. I assume the source directory was finished with that last backup when you rsynced it? I'm at a loss to understand why it would call the last one incomplete when it should be correct. ;(
Yes sir, it was finished. Too bad, if you need anymore info please let me know.
ok, so the bug here is that you do a full rsync of a clean backup and it's not showing as clean? I can try and report this upstream and see what they can make of it I guess.
Yes, that is what is happening. Please do that.
Upstream points out the obvious thing I missed here: You have to use '--delete' with rsync. "What's happening is that rdiff-backup has a current_mirror file that marks the last successful backup. When it completes a backup, it deletes the current_mirror file for the previous backup, so there still only one current_mirror file. When you run rsync, it copies the new current_mirror file over from the source, but doesn't remove the old current_mirror file from the destination. This results in multiple current_mirror files, which confuses rdiff-backup." So, if you use --delete it should work as you expect. Can you confirm?
I confirm that. This fixes a problem. Thank you
Excellent. :) Sorry I didn't spot that sooner...