bugrdiff-backup - Bugs: bug #22511, mkdir() called repeatedly on hl_dir

 
 

bug #22511: mkdir() called repeatedly on hl_dir

Submitted by:  None
Submitted on:  Fri 07 Mar 2008 10:03:48 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Jun 2008 05:42:31 PM UTC, comment #1:

Sorry, this is not a bug in rdiff-backup. What has happened is that your filesystem has inappropriately created the file 'hl' before rdiff-backup has asked for it to be created with mkdir(). Thus, I am closing this bug report as invalid.

Given that your paths are of the form '/s3/...', I am assuming you are using the Amazon S3 service in some way. The bug could very well be in the filesystem mechanism you are using to access the S3 service. If you care to get rdiff-backup running on S3, please post details on your setup and diagnostic information to the mailing list.

Andrew Ferguson <owsla>
Project Administrator
Fri 07 Mar 2008 10:03:48 PM UTC, original submission:

Exception '[Errno 17] File exists: '/s3/Linus/rdiff-backup-data/rdiff-backup.tmp.0/hl'' raised of class 'exceptions.OSError':
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 302, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 322, in Main
take_action(rps)
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 278, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/var/lib/python-support/python2.4/rdiff_backup/Main.py", line 332, in Backup
rpout.conn.fs_abilities.backup_set_globals(rpin, force)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 746, in backup_set_globals
dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 150, in init_readwrite
self.set_hardlinks(subdir)
File "/var/lib/python-support/python2.4/rdiff_backup/fs_abilities.py", line 180, in set_hardlinks
hl_dir.mkdir()
File "/var/lib/python-support/python2.4/rdiff_backup/rpath.py", line 894, in mkdir
self.conn.os.mkdir(self.path)

--

Changing line 180 as follows seems to fix:

- hl_dir.mkdir();
+ if not hl_dir.isdir():
+ hl_dir.mkdir()

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by owsla (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Jun 2008 05:42:31 PM UTCowslaStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1