rdiff-backup-users
[Top][All Lists]
Advanced

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

Re: [rdiff-backup-users] trying to restart rdiff-backup after failure wi


From: Athanasios Dousis
Subject: Re: [rdiff-backup-users] trying to restart rdiff-backup after failure without deleting entire mirror
Date: Thu, 12 Feb 2009 18:15:23 -0600
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Andrew,

Thank you for pointing this out.  I removed the old rdiff-backup using
apt-get, and I reinstalled v1.2.6.  I restarted rdiff-backup using the
command:

/usr/bin/rdiff-backup --exclude /home/shared --exclude-other-filesystems
/home /backup/home

but I still get:
--
Found interrupted initial backup. Removing...
Exception ''NoneType' object has no attribute 'set_sha1'' raised of
class 'exceptions.AttributeError':
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
324, in Main
    take_action(rps)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
346, in Backup
    backup.Mirror(rpin, rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
232, in patch
    ITR(diff.index, diff)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 281, in __call__
    last_branch.fast_process(*args)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
529, in fast_process
    if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
556, in patch_to_temp
    elif not self.patch_diff_to_temp(basis_rp, diff_rorp, new):
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
594, in patch_diff_to_temp
    self.CCPP.update_hash(diff_rorp.index, report.sha1_digest)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
475, in update_hash
    self.get_source_rorp(index).set_sha1(sha1sum)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 30, in ?
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
304, in error_check_Main
    try: Main(arglist)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
324, in Main
    take_action(rps)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
346, in Backup
    backup.Mirror(rpin, rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
232, in patch
    ITR(diff.index, diff)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 281, in __call__
    last_branch.fast_process(*args)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
529, in fast_process
    if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
556, in patch_to_temp
    elif not self.patch_diff_to_temp(basis_rp, diff_rorp, new):
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
594, in patch_diff_to_temp
    self.CCPP.update_hash(diff_rorp.index, report.sha1_digest)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line
475, in update_hash
    self.get_source_rorp(index).set_sha1(sha1sum)
AttributeError: 'NoneType' object has no attribute 'set_sha1'
--

I then deleted /usr/bin/rdiff-backup and
/usr/lib/python2.4/site-packages/rdiff-backup/ and installed v1.2.6
again, with the same error.  I also deleted the contents of the
rdiff-backup-data directory and tried again, with the same error. I then tried to rsync the contents of my /home and /backup/home
directories using:

/usr/bin/rsync -avz --one-file-system --exclude='/home/shared' --delete
/home /backup

and then I retried rdiff-backup using:

/usr/bin/rdiff-backup --exclude /home/shared --exclude-other-filesystems
/home /backup/home

I still get the same error. How can I be sure that I've deleted or overwritten all the old rdiff-backup files? Any other suggestions?

Many thanks,
Nasos

Andrew Ferguson wrote:

On Feb 9, 2009, at 2:09 PM, Athanasios Dousis wrote:

Jakob,

Thank you again for your help. I installed rdiff-backup v1.2.6 as instructed, cleared the rdiff-backup-data directory using 'rm -Rf', and re-ran rdiff-backup

/usr/bin/rdiff-backup --exclude /home/shared --exclude-other-filesystems /home /backup/home

but I get the following python messages:

--
Found interrupted initial backup. Removing...
Exception ''NoneType' object has no attribute 'set_sha1'' raised of class 'exceptions.AttributeError':


Ahtanasios,

The old version is still installed and is being called instead of the new version. It looks like you have multiple versions of rdiff-backup intermingled in your python directories.


Andrew








reply via email to

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