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

 
 

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

Submitter:  Guru Evi <guruevi>
Submitted:  Fri 18 Jan 2008 02:13:35 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-30 owsla StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2008-01-26 owsla StatusNone Need Info
    2008-01-18 guruevi Carbon-Copy- Added guruevi

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code