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: Mon, 09 Feb 2009 13:09:26 -0600
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

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': 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'
--

Any suggestions?

Thanks,
Nasos

address@hidden wrote:
------------------------------

Message: 2
Date: Fri, 06 Feb 2009 18:55:14 +0100
From: Jakob Unterwurzacher <address@hidden>
Subject: Re: [rdiff-backup-users] trying to restart rdiff-backup after
        failure without deleting entire mirror
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1

Athanasios Dousis schrieb:
Maarten, Jakob,

Thanks for your quick responses and suggestions.  I'm using v1.1.5 in
Ubuntu 6.06.2 with kernel 2.6.21 on an Intel Xeon system.  I have python
2.4 installed.

When I delete the rdiff-backup-data directory and then try the force
argument as such:

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

I get the following message:

---


[...]

---

How do I empty the rdiff-backup-data directory without deleting it?
Also, do you have any further suggestions for how to fix my situation?

Thanks and kind regards,
Nasos

Your backup directory is /backup/home, so to empty
/backup/home/rdiff-backup-data you would run:
 rm -Rf /backup/home/rdiff-backup-data/*
But i doubt that this will help when deleting the whole directory
doesn't help.

Your rdiff-backup version is really old, the problem you are seeing
might be fixed already.
I would try to upgrade rdiff-backup to the latest version. Compiling it
yourself is straight-forward:

You need to install a few packages:
 apt-get librsync-dev python-dev gcc
Then you download
http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.6.tar.gz
extract it, change to the extracted directory and run
 python setup.py install
That's it...

Then empty the rdiff-backup-data folder and try again. Report back if
rdiff-backup still crashes!

HTH
Jakob




reply via email to

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