problem with rdiff-backup-0.5.1

Alberto Accomazzi Alberto Accomazzi <aaccomazzi@cfa.harvard.edu>
Fri, 01 Mar 2002 12:23:21 -0500


Hi Ben,

spoke too soon, I guess.  Two other problems:

1) if I run rdiff-backup as a regular user, the script crashes when it
   runs into a file that cannot read.  I thought you had changed the code
   a while back to skip these cases?  

ads_back@adsfore: rdiff-backup /proj/ads/soft /proj/ads-md3/backups/proj/ads/soft
Last backup dated Thu Feb 28 11:14:32 2002 was aborted, but we aren't resuming it.
Exception [Errno 13] Permission denied: '/proj/ads/soft/abs/abs_srv/data/astropersons.lis' raised of class exceptions.IOError
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4353, in patch_and_finalize
    for diff_rorp, dsrp in collated:
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3240, in Collate2Iters
    for relem1 in riter1:
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4260, in diffs
    else: yield RORPIter.diffonce(dest_sig, dsrp)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3288, in diffonce
    diff_rorp = new_rp.getRORPath(1)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2555, in getRORPath
    if include_contents: rorp.setfile(self.open("rb"))
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2501, in open
    return self.conn.open(self.path, mode)

ads_back@adsfore: ls -l /proj/ads/soft/abs/abs_srv/data/astropersons.lis
-rw-r-----   1 gei      ads       1028579 Aug 16  1998 /proj/ads/soft/abs/abs_srv/data/astropersons.lis


2) when I resumed rdiff-backup as root, I was hoping it would go ahead
   and continue where it left off, but instead I get this obscure error
   (this seems to happen at the very first file it is considering):

# rdiff-backup /proj/ads/soft /proj/ads-md3/backups/proj/ads/soft
Resuming aborted backup dated Fri Mar  1 11:52:55 2002
Exception ['rdiff', 'signature', '/proj/ads-md3/backups/proj/ads/soft/abs/abs_srv/DEHTML/.make.state'] exited with value -1 raised of class __main__.RdiffException
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4353, in patch_and_finalize
    for diff_rorp, dsrp in collated:
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3229, in Collate2Iters
    try: relem1 = riter1.next()
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4260, in diffs
    else: yield RORPIter.diffonce(dest_sig, dsrp)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3280, in diffonce
    new_rp))
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 1317, in get_delta_sigfileobj
    sig_tf.write_from_fileobj(sig_fileobj)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2509, in write_from_fileobj
    if fp.close() or outfp.close():
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2570, in close
    result = self.file.close()
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 1453, in close
    raise RdiffException("%s exited with value %d" %

Traceback (most recent call last):
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4991, in ?
    Globals.Main.Main()
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4751, in Main
    self.take_action(rps)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4727, in take_action
    elif self.action == "backup": self.Backup(rps[0], rps[1])
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4784, in Backup
    HighLevel.Mirror(rpin, rpout, 1, RSI)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4196, in Mirror
    DestS.patch_and_finalize(dest_rpath, diffiter, checkpoint)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4363, in patch_and_finalize
    except: cls.handle_last_error(last_dsrp, finalizer)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4353, in patch_and_finalize
    for diff_rorp, dsrp in collated:
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3229, in Collate2Iters
    try: relem1 = riter1.next()
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 4260, in diffs
    else: yield RORPIter.diffonce(dest_sig, dsrp)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 3280, in diffonce
    new_rp))
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 1317, in get_delta_sigfileobj
    sig_tf.write_from_fileobj(sig_fileobj)
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2509, in write_from_fileobj
    if fp.close() or outfp.close():
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 2570, in close
    result = self.file.close()
  File "/proj/ads/soft/utils/bin/rdiff-backup", line 1453, in close
    raise RdiffException("%s exited with value %d" %
__main__.RdiffException: ['rdiff', 'signature', '/proj/ads-md3/backups/proj/ads/soft/abs/abs_srv/DEHTML/.make.state'] exited with value -1

   I checked and made sure that rdiff is in my path and runs ok from the
   command line.  Here are the two files in question:

# ls -l /proj/ads-md3/backups/proj/ads/soft/abs/abs_srv/DEHTML/.make.state
-rw-r--r--   1 ads_back sys         15164 Jan 28  1999 /proj/ads-md3/backups/proj/ads/soft/abs/abs_srv/DEHTML/.make.state
# ls -l /proj/ads/soft/abs/abs_srv/DEHTML/.make.state
-rw-r--r--   1 gei      ads         15164 Jan 28  1999 /proj/ads/soft/abs/abs_srv/DEHTML/.make.state

   Any ideas?


Thanks,


-- Alberto


****************************************************************************
Alberto Accomazzi                          mailto:aaccomazzi@cfa.harvard.edu
NASA Astrophysics Data System                      http://adsabs.harvard.edu
Harvard-Smithsonian Center for Astrophysics        http://cfawww.harvard.edu
60 Garden Street, MS 83, Cambridge, MA 02138 USA   
****************************************************************************