rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] UnboundLocalError on Windows XP


From: Mark Hubbard
Subject: [rdiff-backup-users] UnboundLocalError on Windows XP
Date: Fri, 15 May 2009 16:17:17 -0500

Hi all,

Anybody else getting this?  I got this from
rdiff-backup-1.2.8-win32.zip, on Win XP SP2.  I don't think the file
server is the issue since the same destination file share is used to
rdiff-backup my other files and they don't fail.  Evidently it doesn't
like something that's within that one folder I'm trying to back up.

Any insight appreciated.  In the meantime I'll try to narrow it down to
specifically which files it doesn't like, but that could take a while.

I suspect this has to do with length of the path name, especially the
destination path name of the metadata, since it has extra path elements
& long file names automatically generated.  Some of my source data paths
are over 100 chars.  It's hard to tell, but I think the error comes from
some of those.  Windows only supports around 253 chars max.  I don't
have much of a choice of shortening the path to the source files.

Using -v higher than 3 just spews meaningless unrelated error messages
on every file, such as "can't retrieve ACL for xxxx".  So more verbosity
is useless in tracking down the exception that's actually killing the
program.

PS: the message "Found interrupted initial backup. Removing..." makes no
difference; it's only there because this isn't the first attempt.  I can
manually delete the destination folder & still get the same error on the
next attempt.

C:\temp>"C:\Program Files\rdiff-backup\rdiff-backup" -v3 c:\data
\\fileserver\home\h
ubbard\data
Found interrupted initial backup. Removing...
Exception 'local variable 'sd' referenced before assignment' raised of
class '<t
ype 'exceptions.UnboundLocalError'>':
  File "rdiff_backup\Main.pyc", line 304, in error_check_Main
  File "rdiff_backup\Main.pyc", line 324, in Main
  File "rdiff_backup\Main.pyc", line 280, in take_action
  File "rdiff_backup\Main.pyc", line 346, in Backup
  File "rdiff_backup\backup.pyc", line 38, in Mirror
  File "rdiff_backup\backup.pyc", line 232, in patch
  File "rdiff_backup\rorpiter.pyc", line 281, in __call__
  File "rdiff_backup\backup.pyc", line 529, in fast_process
  File "rdiff_backup\backup.pyc", line 559, in patch_to_temp
  File "rdiff_backup\rpath.pyc", line 192, in copy_attribs
  File "rdiff_backup\rpath.pyc", line 1406, in write_win_acl
  File "rdiff_backup\win_acls.pyc", line 240, in rpath_set_win_acl
  File "rdiff_backup\win_acls.pyc", line 169, in write_to_rp
  File "rdiff_backup\win_acls.pyc", line 103, in clear_rp

Traceback (most recent call last):
  File "rdiff-backup", line 30, in <module>
  File "rdiff_backup\Main.pyc", line 304, in error_check_Main
  File "rdiff_backup\Main.pyc", line 324, in Main
  File "rdiff_backup\Main.pyc", line 280, in take_action
  File "rdiff_backup\Main.pyc", line 346, in Backup
  File "rdiff_backup\backup.pyc", line 38, in Mirror
  File "rdiff_backup\backup.pyc", line 232, in patch
  File "rdiff_backup\rorpiter.pyc", line 281, in __call__
  File "rdiff_backup\backup.pyc", line 529, in fast_process
  File "rdiff_backup\backup.pyc", line 559, in patch_to_temp
  File "rdiff_backup\rpath.pyc", line 192, in copy_attribs
  File "rdiff_backup\rpath.pyc", line 1406, in write_win_acl
  File "rdiff_backup\win_acls.pyc", line 240, in rpath_set_win_acl
  File "rdiff_backup\win_acls.pyc", line 169, in write_to_rp
  File "rdiff_backup\win_acls.pyc", line 103, in clear_rp
UnboundLocalError: local variable 'sd' referenced before assignment

C:\temp>

--
Mark Hubbard: address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]