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

 
 

bug #22511: mkdir() called repeatedly on hl_dir

Submitter:  None
Submitted:  Fri 07 Mar 2008 10:03:48 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-06-10 owsla StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code