1.1.1: carbonfile errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

1.1.1: carbonfile errors

Blair Zajac
Hello,

Trying to backup an 10.3 OS X box to a Ubuntu Linux box (both running
rdiff-backup 1.1.1) I get the attached error.  If I supply the --no-carbonfile
command line option, then I don't get the error.

Regards,
Blair

--
Blair Zajac, Ph.D.
<[hidden email]>
Subversion and Orca training and consulting
http://www.orcaware.com/svn/

-----------------------------------------------------------------
Detected abilities for source (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Mac OS X style resource forks                On
  Mac OS X Finder information                  On
-----------------------------------------------------------------
Extended attributes not supported by filesystem at 01/rdiff-backup-data/rdiff-backup.tmp.0
ACLs not supported by filesystem at 01/rdiff-backup-data/rdiff-backup.tmp.0
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Extended filenames                           On
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             On
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Exception 'global name 'self' is not defined' raised of class 'exceptions.NameError':
  File "/sw/lib/python2.4/site-packages/rdiff_backup/robust.py", line 32, in check_common_error
    try: return function(*args)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 961, in append
    return self.__class__(self.conn, self.base, self.index + (ext,))
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 703, in __init__
    else: self.setdata()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 728, in setdata
    if self.lstat(): self.conn.rpath.setdata_local(self)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1235, in setdata_local
    rpath.data['carbonfile'] = carbonfile_get(rpath)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1242, in carbonfile_get
    fsobj = FSSpec(self.path)

Sending back exception global name 'self' is not defined of type exceptions.NameError:
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 333, in answer_request
    result = apply(eval(request.function_string), argument_list)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 479, in readfromid
    if length is None: return cls.vfiles[id].read()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 302, in read
    if not self.addtobuffer(): break
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 325, in addtobuffer
    try: currentobj = self.iter.next()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 166, in get_sigs
    for src_rorp, dest_rorp in cls.CCPP:
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 306, in next
    source_rorp, dest_rorp = self.iter.next()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 92, in Collate2Iters
    try: relem1 = riter1.next()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 382, in next
    while not type: type, data = self._get()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 414, in _get
    if not self.buf: self.buf += self.file.read()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 512, in read
    return self.connection.VirtualFile.readfromid(self.id, length)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 444, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 366, in reval
    if isinstance(result, Exception): raise result

Sending back exception global name 'self' is not defined of type exceptions.NameError:
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 333, in answer_request
    result = apply(eval(request.function_string), argument_list)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/backup.py", line 215, in patch
    for diff in rorpiter.FillInIter(source_diffiter, dest_rpath):
  File "/usr/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 169, in FillInIter
    first_rp = rpiter.next() # StopIteration gets passed upwards
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 382, in next
    while not type: type, data = self._get()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 414, in _get
    if not self.buf: self.buf += self.file.read()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 512, in read
    return self.connection.VirtualFile.readfromid(self.id, length)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 444, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 366, in reval
    if isinstance(result, Exception): raise result

Executing ssh -C orca1-internal rdiff-backup --server
Unable to import module xattr.
Extended attributes not supported on filesystem at 01
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at 01
Starting mirror 01 to 01
Sending back exception global name 'self' is not defined of type exceptions.NameError:
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 333, in answer_request
    result = apply(eval(request.function_string), argument_list)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 479, in readfromid
    if length is None: return cls.vfiles[id].read()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 302, in read
    if not self.addtobuffer(): break
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 325, in addtobuffer
    try: currentobj = self.iter.next()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rorpiter.py", line 342, in next
    next_elem = self.iter.next()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/selection.py", line 132, in Iterate_fast
    try: rpath, val = diryield_stack[-1].next()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/selection.py", line 120, in diryield
    rpath.append, (filename,))
  File "/sw/lib/python2.4/site-packages/rdiff_backup/robust.py", line 32, in check_common_error
    try: return function(*args)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 961, in append
    return self.__class__(self.conn, self.base, self.index + (ext,))
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 703, in __init__
    else: self.setdata()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 728, in setdata
    if self.lstat(): self.conn.rpath.setdata_local(self)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1235, in setdata_local
    rpath.data['carbonfile'] = carbonfile_get(rpath)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1242, in carbonfile_get
    fsobj = FSSpec(self.path)

Sending back exception global name 'self' is not defined of type exceptions.NameError:
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 333, in answer_request
    result = apply(eval(request.function_string), argument_list)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 479, in readfromid
    if length is None: return cls.vfiles[id].read()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 302, in read
    if not self.addtobuffer(): break
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 325, in addtobuffer
    try: currentobj = self.iter.next()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/backup.py", line 103, in get_diffs
    for dest_sig in dest_sigiter:
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 382, in next
    while not type: type, data = self._get()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/iterfile.py", line 414, in _get
    if not self.buf: self.buf += self.file.read()
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 512, in read
    return self.connection.VirtualFile.readfromid(self.id, length)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 444, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 366, in reval
    if isinstance(result, Exception): raise result

Traceback (most recent call last):
  File "/sw/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/sw/lib/python2.4/site-packages/rdiff_backup/Main.py", line 303, in Main
    take_action(rps)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/Main.py", line 272, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/sw/lib/python2.4/site-packages/rdiff_backup/Main.py", line 326, in Backup
    backup.Mirror(rpin, rpout)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/backup.py", line 38, in Mirror
    DestS.patch(dest_rpath, source_diffiter)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 444, in __call__
    return apply(self.connection.reval, (self.name,) + args)
  File "/sw/lib/python2.4/site-packages/rdiff_backup/connection.py", line 366, in reval
    if isinstance(result, Exception): raise result
NameError: global name 'self' is not defined
Traceback (most recent call last):
  File "/usr/bin/X11/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 303, in Main
    take_action(rps)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 270, in take_action
    connection.PipeConnection(sys.stdin, sys.stdout).Server()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 351, in Server
    self.get_response(-1)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 313, in get_response
    try: req_num, object = self._get()
  File "/usr/lib/python2.4/site-packages/rdiff_backup/connection.py", line 229, in _get
    raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string (problem probably originated remotely)
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method GzipFile.__del__ of <gzip open file '01/rdiff-backup-data/file_statistics.2005-11-05;08422:18:18-08:00.data.gz', mode 'wb' at 0xb7deade8 -0x484b63f4>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in <bound method GzipFile.__del__ of <gzip open file '01/rdiff-backup-data/error_log.2005-11-05;08422:18:18-08:00.data.gz', mode 'wb' at 0xb7deacc8 -0x484babf4>> ignored

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: 1.1.1: carbonfile errors

Ben Escoto
>>>>> Blair Zajac <[hidden email]>
>>>>> wrote the following on Sat, 05 Nov 2005 22:20:33 -0800
>
> Trying to backup an 10.3 OS X box to a Ubuntu Linux box (both
> running rdiff-backup 1.1.1) I get the attached error.  If I supply
> the --no-carbonfile command line option, then I don't get the error.

Try

http://savannah.nongnu.org/cgi-bin/viewcvs/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py.diff?r2=1.95&r1=1.94&diff_format=u

?  Also are you getting any corrupt mirror_metadata errors like Kevin
Horton?


--
Ben Escoto

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 1.1.1: carbonfile errors

Blair Zajac
Ben Escoto wrote:
>>>>>> Blair Zajac <[hidden email]>
>>>>>> wrote the following on Sat, 05 Nov 2005 22:20:33 -0800
>> Trying to backup an 10.3 OS X box to a Ubuntu Linux box (both
>> running rdiff-backup 1.1.1) I get the attached error.  If I supply
>> the --no-carbonfile command line option, then I don't get the error.
>
> Try
>
> http://savannah.nongnu.org/cgi-bin/viewcvs/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py.diff?r2=1.95&r1=1.94&diff_format=u

Yes, that worked.

If I've done previous backups, it'll work to use an existing rdiff-backup now
that carbon file support is added?

> ?  Also are you getting any corrupt mirror_metadata errors like Kevin
> Horton?

I haven't seen any, but I haven't done Mac to Mac backups like Kevin.

BTW, this message was taken out in 1.1.1:

+++ rdiff-backup-1.1.0/rdiff_backup/fs_abilities.py     2005-10-24 19:40:06.0000
00000 -0700
@@ -436,6 +433,9 @@
         def set_carbonfile(self):
                 self.update_triple(self.src_fsa.carbonfile, self.dest_fsa.carbon
file,
                           ('carbonfile_active', 'carbonfile_write', 'carbonfile_
conn'))
+               if self.src_fsa.carbonfile and not Globals.carbonfile_active:
+                       Log("Source may have carbonfile support, but support
defaults to "
+                               "off.\n  Use --carbonfile to enable.", 5)

I think it's a good idea to still warn if --no-carbonfile is used, although
putting this specific code back in doesn't seem to cause a warning if
--no-carbonfile is given.

Regards,
Blair


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki