bugrdiff-backup - Bugs: bug #22048, Permissions exception crashes...

 
 

bug #22048: Permissions exception crashes rdiff-backup (Mac)

Submitted by:  Guru Evi <guruevi>
Submitted on:  Fri 18 Jan 2008 02:13:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
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.

 

Wed 30 Jan 2008 10:05:02 PM UTC, comment #3:

Ok, since you are using the stable version and I can't generate this error in the unstable version, I am going to close this bug. Also, bug #21202 was recently fixed.

The unstable version should be released as a new stable version, 1.2.0 within the next month or so. If the error continues to occur for you with the new version, please feel free to reopen.

Thanks,
Andrew

Andrew Ferguson <owsla>
Project Administrator
Wed 30 Jan 2008 09:31:54 PM UTC, comment #2:

Hi,

I think it might have to do with bug #21202. I changed the permissions for the specific file so I don't think it's going to be an issue anymore (a .tiff, 0 bytes, no permissions) . I am using the 'stable' version of rdiff-backup on an HFS+ filesystem.

Guru Evi <guruevi>
Sat 26 Jan 2008 05:18:24 PM UTC, comment #1:

Hi Guru,

I am not able to reproduce this bug so far. I suspect that you are running rdiff-backup version 1.1.12. Can you try with the most recent version? (Or better still, the CVS version?)

Also, can you specify some more details, please? For example: the permissions on the directory containing the file, the UID running the backup process, and what the permissions on the copied file (the one now on /Destination) are after rdiff-backup fails?

I need to be able to reproduce this bug so that rdiff-backup can make sure to do the right thing in the future.

Thanks,
Andrew

Andrew Ferguson <owsla>
Project Administrator
Fri 18 Jan 2008 02:13:35 PM UTC, original submission:

There is a file in my file system (HFS+ case-sensitive, journaled) without any permissions (000, ls -l shows: ---------)

rdiff-backup -v5 --print-statistics --exclude-globbing-filelist excludes-users --ssh-no-compression --exclude-sockets --exclude-fifos --exclude-device-files root@server::/Source /Destination

Crashes as follows:

Exception '(-5000, 'Insufficient access privileges for operation')' raised of class '<class 'MacOS.Error'>':
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 299, in error_check_Main
try: Main(arglist)
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 319, in Main
take_action(rps)
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 275, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 341, in Backup
backup.Mirror(rpin, rpout)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 218, in patch
ITR(diff.index, diff)
File "/sw/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 281, in _call_
last_branch.fast_process(*args)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 515, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 542, in patch_to_temp
rpath.copy_attribs(diff_rorp, new)
File "/sw/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 174, in copy_attribs
rpout.write_carbonfile(rpin.get_carbonfile())
File "/sw/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 1232, in write_carbonfile
fsobj.FSpSetFInfo(finderinfo)

Traceback (most recent call last):
File "/sw/bin/rdiff-backup", line 23, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 299, in error_check_Main
try: Main(arglist)
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 319, in Main
take_action(rps)
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 275, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/sw/lib/python2.5/site-packages/rdiff_backup/Main.py", line 341, in Backup
backup.Mirror(rpin, rpout)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 218, in patch
ITR(diff.index, diff)
File "/sw/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 281, in _call_
last_branch.fast_process(*args)
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 515, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/sw/lib/python2.5/site-packages/rdiff_backup/backup.py", line 542, in patch_to_temp
rpath.copy_attribs(diff_rorp, new)
File "/sw/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 174, in copy_attribs
rpout.write_carbonfile(rpin.get_carbonfile())
File "/sw/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 1232, in write_carbonfile
fsobj.FSpSetFInfo(finderinfo)
MacOS.Error: (-5000, 'Insufficient access privileges for operation')
Fatal Error: Lost connection to the remote system

Guru Evi <guruevi>

 

(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)
  • -unavailable- added by guruevi (Submitted the item)
  • -unavailable- added by guruevi
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 30 Jan 2008 10:05:02 PM UTCowslaStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Sat 26 Jan 2008 05:18:24 PM UTCowslaStatusNone=>Need Info
    Fri 18 Jan 2008 02:13:35 PM UTCgurueviCarbon-Copy-=>Added guruevi

    Back to the top


    Powered by Savane 3.1-cleanup1