SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
2nd Backup fails when using 2 remote targets.
Author Message
Post 2nd Backup fails when using 2 remote targets. 
Hi,

I can't seem to figure out why this happens. It works the first time (no
backup) but the second time round it fails with:

AssertionError: CCPP index out of order

However, if I use the a local directory for the destination target, all
appears well.

I'm using rdiff-backup 0.13.4 from debian backports, and python2.2.


carlton# rdiff-backup --print-statistics --ssh-no-compression
northcote::/home port-melbourne::/rsync/rdiff/northcote/
home
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
Characters needing quoting ''
Ownership changing On
Hard linking On
fsync() directories On
Directory inc permissions On
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
Traceback (most recent call last):
File "/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/Main.py",
line 259, in Main
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/Main.py",
line 229, in take_action
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/Main.py",
line 278, in Backup
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/backup.py",
line 51, in Mirror_and_increment
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 445, in __call__
File
"/home/tretkowski/rdiff-backup/rdiff-backup-0.13.4/debian/rdiff-backup/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 367, in reval
AssertionError: CCPP index out of order: ('claire', '.kde', 'share',
'config', 'kdeglobals') ('valerie', 'work', 'staffdevelopment', 'icams',
'src', 'gcode', 'aos', 'demo', 'icams', 'web', 'CaptureBadDataEntry.gplan')
carlton# Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
Traceback (most recent call last):
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
259, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
227, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 352, in Server
self.get_response(-1)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 314, in get_response
try: req_num, object = self._get()
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 230, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
File "/usr/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
259, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
227, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 352, in Server
self.get_response(-1)
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 314, in get_response
try: req_num, object = self._get()
File "/usr/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 230, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/rsync/rdiff/northcote/home/rdiff-backup-data/file_statistics.2004-12-23T13:50:55+11:00.data.gz',
mode 'wb' at 0x4024cfa0 0x404cb46c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/rsync/rdiff/northcote/home/rdiff-backup-data/error_log.2004-12-23T13:50:55+11:00.data.gz',
mode 'wb' at 0x4022e620 0x404c7c6c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/rsync/rdiff/northcote/home/rdiff-backup-data/mirror_metadata.2004-12-23T13:50:55+11:00.snapshot.gz',
mode 'wb' at 0x402590e0 0x404cb3ac>> ignored


--
Elías López Melbourne Product Centre
System Administrator Level 1 594 Elizabeth Street
Agent Oriented Software Pty. Ltd. Melbourne VIC 3000
ABN: 98 078 321 589 P O Box 639
T: +61 3 9349 5055 Carlton South VIC 3053
F: +61 3 9349 5088 Australia
E: elias.lopez < at > agent-software.com www.agent-software.com

Post 2nd Backup fails when using 2 remote targets. 
Elias Lopez wrote:
Hi,

I can't seem to figure out why this happens. It works the first time (no
backup) but the second time round it fails with:

AssertionError: CCPP index out of order

However, if I use the a local directory for the destination target, all
appears well.

I'm using rdiff-backup 0.13.4 from debian backports, and python2.2.

carlton# rdiff-backup --print-statistics --ssh-no-compression
northcote::/home port-melbourne::/rsync/rdiff/northcote/
home
......
Traceback (most recent call last):
..........
AssertionError: CCPP index out of order: ('claire', '.kde', 'share',
'config', 'kdeglobals') ('valerie', 'work', 'staffdevelopment', 'icams',
'src', 'gcode', 'aos', 'demo', 'icams', 'web', 'CaptureBadDataEntry.gplan')
......

Seems very familiar. how fast are you doing this. I got the same error I
think, when I tired to convert an old backup that used rsync and
hardlinks to rdiff-backup. my script did something like:
for DATE in $(ssh backup.old ls /backup) ; do
rdiff-backup --current-time $DATE --print-statistics \
backup.old::/backup/$DATE backup.new::/backup
done

with each of the old backup sets sorted like
/backup/
2004-08-01/
2004-09-01/
...
2004-11-02/
2004-11-09/
2004-11-14/
2004-11-15/

I had to something with the date, but it kind of worked anyway. I think
i thought it was some temporary error, cause if I did things manually it
kind of worked. But then there could be hours between each time I ran
the new commands. I changed, and ran rdiff from backup.old instead, and
then everythiong went fine.
Have you checked that there is no file left in /tmp on either carlton or
port-melbourne ? (or even northcore)

// faj

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