[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Possible python 2.3 dependency?
From: |
Chris Wilson |
Subject: |
Re: [rdiff-backup-users] Possible python 2.3 dependency? |
Date: |
Wed, 31 Aug 2005 09:33:27 +0100 (BST) |
Hi Ben,
Yes, rdiff-backup is meant to only require python 2.2. If you avoided
backing up device files (--exclude-device-files) you wouldn't get the
error you got, so that may be an easy workaround.
Thanks, that worked :-)
Sorry, it appears that I spoke too soon. It works for backups to a remote
machine, but local ones still fail, with the following trace:
Previous backup seems to have failed, regressing destination now.
Exception ''module' object has no attribute 'mknod'' raised of class
'exceptions.AttributeError':
File "/usr/lib/python2.2/site-packages/rdiff_backup/robust.py", line 32, in
check_common_error
try: return function(*args)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 213, in
copy_with_attribs
copy(rpin, rpout, compress)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 101, in
copy
rpout.makedev("c", major, minor)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 1042, in
makedev
try: self.conn.os.mknod(self.path, mode, self.conn.os.makedev(major, minor))
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 282, in
Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 252, in
take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line 302, in
Backup
backup.Mirror_and_increment(rpin, rpout, incdir)
File "/usr/lib/python2.2/site-packages/rdiff_backup/backup.py", line 51, in
Mirror_and_increment
DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
File "/usr/lib/python2.2/site-packages/rdiff_backup/backup.py", line 229, in
patch_and_increment
ITR(diff.index, diff)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rorpiter.py", line 279,
in __call__
last_branch.fast_process(*args)
File "/usr/lib/python2.2/site-packages/rdiff_backup/backup.py", line 611, in
fast_process
inc = self.inc_with_checking(tf, rp, self.get_incrp(index))
File "/usr/lib/python2.2/site-packages/rdiff_backup/backup.py", line 597, in
inc_with_checking
try: inc = increment.Increment(new, old, inc_rp)
File "/usr/lib/python2.2/site-packages/rdiff_backup/increment.py", line 44,
in Increment
else: incrp = makesnapshot(mirror, incpref)
File "/usr/lib/python2.2/site-packages/rdiff_backup/increment.py", line 69,
in makesnapshot
(mirror, snapshotrp, compress)) == 0:
File "/usr/lib/python2.2/site-packages/rdiff_backup/robust.py", line 32, in
check_common_error
try: return function(*args)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 213, in
copy_with_attribs
copy(rpin, rpout, compress)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 101, in
copy
rpout.makedev("c", major, minor)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line 1042, in
makedev
try: self.conn.os.mknod(self.path, mode, self.conn.os.makedev(major, minor))
AttributeError: 'module' object has no attribute 'mknod'
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file
'/mnt/backup/server/rdiff/rdiff-backup-data/file_statistics.2005-08-30T23:59:59+01:00.data.gz', mode
'wb' at 0x8481ea0 0x848316c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file
'/mnt/backup/server/rdiff/rdiff-backup-data/mirror_metadata.2005-08-30T23:59:59+01:00.snapshot.gz',
mode 'wb' at 0x83577e0 0x8499064>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method
GzipFile.__del__ of <gzip open file
'/mnt/backup/server/rdiff/rdiff-backup-data/error_log.2005-08-30T23:59:59+01:00.data.gz', mode 'wb'
at 0x8480d48 0x847dec4>> ignored
This presumably means that this box isn't being backed up (locally) right
now, which is worrying. Any ETA on a fix, before I have to downgrade all
my boxen to 0.12.8 to get my backups working again?
rdiff-backup was run with the following command line:
rdiff-backup --force --exclude-device-files \
--exclude /dev/log \
--exclude /dev/reboot \
... more excludes ... \
--exclude /var/state \
/ /mnt/backup/server/rdiff
rdiff-backup version 1.0.0 on Fedora Core 1, python 2.2.3.
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |