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

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

[rdiff-backup-users] IOError on missing file


From: Chris Wilson
Subject: [rdiff-backup-users] IOError on missing file
Date: Sun, 21 Jan 2007 14:08:44 +0000 (GMT)

Hi all,

This error suddenly appeared in one of my daily backups:

Previous backup seems to have failed, regressing destination now.
Regressing to Fri Jan 19 01:00:15 2007
Regressing file tmp/.6200.3c4f1
Warning: Could not restore file /mnt/tmp/aidworld-rdiff/tmp/.6200.3c4f1!

A regular file was indicated by the metadata, but could not be constructed from existing increments because last increment had type None. Instead of the actual file's data, an empty length file will be created. This error is probably caused by data loss in the rdiff-backup destination directory, or a bug in rdiff-backup

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 285,
    in Main
    take_action(rps)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 255,
    in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 299,
    in Backup
    backup_final_init(rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 396,
    in backup_final_init
    checkdest_if_necessary(rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 911,
    in checkdest_if_necessary
    dest_rp.conn.regress.Regress(dest_rp)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/regress.py", line
    70, in Regress
    for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line
    285, in __call__
    last_branch.fast_process(*args)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/regress.py", line
    232, in fast_process
    if rf.metadata_rorp.isreg(): self.restore_orig_regfile(rf)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/regress.py", line
    260, in restore_orig_regfile
    rf.mirror_rp.write_from_fileobj(rf.get_restore_fp())
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 977,
    in write_from_fileobj
    outfp = self.open("wb", compress = compress)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 957,
    in open
    else: return open(self.path, mode)

IOError: [Errno 2] No such file or directory: '/mnt/tmp/aidworld-rdiff/tmp/.6200.3c4f1'

Now I can't back up that machine any more. It seems that the missing file should only have caused a warning, but then rdiff-backup tries to access it and fails, which causes it to die.

I could touch the missing file, but does anyone have a better idea?

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 |





reply via email to

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