bugrdiff-backup - Bugs: bug #20342, fails backing up to cifs share...

 
 

bug #20342: fails backing up to cifs share (v1.1.11)

Submitted by:  m read <mstuff>
Submitted on:  Wed 04 Jul 2007 04:44:45 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Andrew Ferguson <owsla>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 28 Jul 2007 08:10:24 PM UTC, comment #3:

Oh I see what's happening. SMB returns EPERM (Not permitted) when you try to create a symlink, but CIFS returns EOPNOTSUPP (Operation not supported) for the same thing. rdiff-backup was correctly handling the first case, but not the second. I have added EOPNOTSUPP to the list of 'benign' errors that yield a non-fatal SpecialFileError during backup. Fixed in CVS.

Andrew Ferguson <owsla>
Project AdministratorIn charge of this item.
Thu 12 Jul 2007 09:48:19 PM UTC, comment #2:

m read --

In the mean time, try mounting as 'smbfs' and not 'cifs'. I have no trouble creating symlinks on a share mounted as smbfs, whereas symlinks fail when the same share is mounted as cifs.

Crazy world.

Andrew Ferguson <owsla>
Project AdministratorIn charge of this item.
Tue 10 Jul 2007 07:15:09 PM UTC, comment #1:

Yes, this error is happening because the destination filesystem (a CIFS share) doesn't support symbolic links. Fortunately, rdiff-backup preserves the symlink information in the mirror_metadata file so they can be recreated on restore.

But for on the backup server, what should rdiff-backup write in its place? A simple marker file?

Andrew Ferguson <owsla>
Project AdministratorIn charge of this item.
Wed 04 Jul 2007 04:44:45 AM UTC, original submission:

rdiff-backup fails backing up to cifs share (v1.1.11)

See below:

[root@morgansmachine ~]# rdiff-backup -V
rdiff-backup 1.1.11
[root@morgansmachine ~]# echo 0 > /proc/fs/cifs/LookupCacheEnabled
[root@morgansmachine ~]# mount -t cifs //MOZSMACHINE/DOCUMENTS /mnt/cifs -o guest [root@morgansmachine ~]# echo 0 > /proc/fs/cifs/LookupCacheEnabled
[root@morgansmachine ~]# ls /mnt/cifs
101_Dalmations Nokia_PC_Suite_682_rel_27_0_eng_web.msi ASNZSISOIEC15018-2005 NU2V1.1WebDemo.exe
ASNZSISOIEC15018-2005.zip Office_2003_Pro.iso
avg75free_432a861.exe On_The_Waterfront
Bosch OpenOffice.org
BT_WS_Demo_installer.exe rdiff-backupTest
DA5SSBvHadfield-relev_law.doc RESEARCH_ASSESSMENT.pdf
desktop.ini sha1sum.exe
Fedora-7-i386 Sunita Kumer let, 25-6-07.odt
fonera_manual.pdf TomasinaStacey(Modified in The GIMP).jpg
IpaqStuff TPAssessmentAndersonRead.doc
MorganReadCV.pdf TPAssessmentAndersonRead.odt
morgansmachine-1.iso Wallace_Gromit
morgansmachineDIFF-1.iso.backup WordTestDocs
My Music Xpro-Win32-1105c.exe
My Pictures
[root@morgansmachine ~]# rdiff-backup / /mnt/cifs/rdiff-backup_morgansmachine
Warning: hard linking not supported by filesystem at /mnt/cifs/rdiff-backup_morgansmachine/rdiff-backup-data
Exception '[Errno 95] Operation not supported' raised of class 'exceptions.OSError':
File "/usr/lib/python2.4/site-packages/rdiff_backup/robust.py", line 32, in check_common_error
try: return function(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 107, in copy
rpout.symlink(rpin.readlink())
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 888, in symlink
self.conn.os.symlink(linktext, self.path)

Exception '[Errno 95] Operation not supported' raised of class 'exceptions.OSError':
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 299, in error_check_Main
try: Main(arglist)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 319, in Main
take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 275, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 341, in Backup
backup.Mirror(rpin, rpout)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 218, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 281, in _call_
last_branch.fast_process(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 515, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 536, in patch_to_temp
result = self.patch_snapshot_to_temp(diff_rorp, new)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 560, in patch_snapshot_to_temp
self.write_special(diff_rorp, new)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 600, in write_special
if robust.check_common_error(eh, rpath.copy, (diff_rorp, new)) == 0:
File "/usr/lib/python2.4/site-packages/rdiff_backup/robust.py", line 32, in check_common_error
try: return function(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 107, in copy
rpout.symlink(rpin.readlink())
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 888, in symlink
self.conn.os.symlink(linktext, self.path)

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 299, in error_check_Main
try: Main(arglist)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 319, in Main
take_action(rps)
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 275, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 341, in Backup
backup.Mirror(rpin, rpout)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 218, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 281, in _call_
last_branch.fast_process(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 515, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 536, in patch_to_temp
result = self.patch_snapshot_to_temp(diff_rorp, new)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 560, in patch_snapshot_to_temp
self.write_special(diff_rorp, new)
File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 600, in write_special
if robust.check_common_error(eh, rpath.copy, (diff_rorp, new)) == 0:
File "/usr/lib/python2.4/site-packages/rdiff_backup/robust.py", line 32, in check_common_error
try: return function(*args)
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 107, in copy
rpout.symlink(rpin.readlink())
File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 888, in symlink
self.conn.os.symlink(linktext, self.path)
OSError: [Errno 95] Operation not supported
[root@morgansmachine ~]#

m read <mstuff>

 

(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 mstuff (Submitted the item)
  •  

    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
    Thu 02 Aug 2007 11:22:34 AM UTCtrickyCarbon-Copy-=>Added tricky
    Sat 28 Jul 2007 08:10:24 PM UTCowslaOpen/ClosedOpen=>Closed
    Tue 10 Jul 2007 07:15:09 PM UTCowslaStatusNone=>Confirmed
      Assigned toNone=>owsla

    Back to the top


    Powered by Savane 3.1-cleanup1