Running Rdiff-backup from Cron
Dave Poirier
poiridav@mail.parkrose.k12.or.us
Wed, 17 Apr 2002 15:35:30 -0700
Thank's for the reply. I'm not too sure what is going on... sometime the Cron job succeeds and other times it doesn't. Here is a full example of the error we're getting. I went ahead and upgraded to the 0.7.2 package and applied Daniel Robbins patch (Thanks!!) hoping that might fix the problem. I run the --test-server and ther response is ok. I'm showing my ignorance but is it some sort of file locking problem?
Error from log file.....
Executing ssh root@parkrose.k12.or.us rdiff-backup --server
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 5719, in ?
Globals.Main.Main()
File "/usr/bin/rdiff-backup", line 5465, in Main
self.take_action(rps)
File "/usr/bin/rdiff-backup", line 5444, in take_action
elif self.action == "backup": self.Backup(rps[0], rps[1])
File "/usr/bin/rdiff-backup", line 5495, in Backup
HighLevel.Mirror_and_increment(rpin, rpout, self.incdir, RSI)
File "/usr/bin/rdiff-backup", line 4831, in Mirror_and_increment
DestS.patch_increment_and_finalize(dest_rpath, diffiter, inc_rpath)
File "/usr/bin/rdiff-backup", line 5047, in patch_increment_and_finalize
except: cls.handle_last_error(dsrp, finalizer, ITR)
File "/usr/bin/rdiff-backup", line 5074, in handle_last_error
if ITR: SaveState.checkpoint_inc_backup(ITR, finalizer, dsrp, 1)
File "/usr/bin/rdiff-backup", line 3090, in checkpoint_inc_backup
state_string),
File "/usr/bin/rdiff-backup", line 2800, in execute
raise exp
AssertionError
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 5719, in ?
Globals.Main.Main()
File "/usr/bin/rdiff-backup", line 5465, in Main
self.take_action(rps)
File "/usr/bin/rdiff-backup", line 5443, in take_action
PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/bin/rdiff-backup", line 1601, in Server
self.get_response(-1)
File "/usr/bin/rdiff-backup", line 1568, in get_response
try: req_num, object = self._get()
File "/usr/bin/rdiff-backup", line 1482, in _get
raise ConnectionReadError("Truncated header string (problem "
__main__.ConnectionReadError: Truncated header string (problem probably originated remotely)