exception: invalid literal for long()

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

exception: invalid literal for long()

Alastair Rankine
Hi,

Backing up MacOS X client to FreeBSD server, both using rdiff-backup  
1.1.5, got an "invalid literal for long()" exception.

Any ideas appreciated.


alastair $ rdiff-backup -v5 --override-chars-to-quote '' --include-
globbing-filelist backup-includes . claude::/home/backup/al2book/
alastair/
Executing ssh -C claude rdiff-backup --server
Unable to import module xattr.
Extended attributes not supported on filesystem at .
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at .
-----------------------------------------------------------------
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
-----------------------------------------------------------------
Unable to import module xattr.
Extended attributes not supported on filesystem at /home/backup/
al2book/alastair/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /home/backup/al2book/alastair/
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                    Off
   High-bit permissions                         Off
   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
-----------------------------------------------------------------
Reading globbing filelist backup-includes
Starting increment operation . to /home/backup/al2book/alastair

[snip]

Incrementing mirror file /home/backup/al2book/alastair/Library/
Cookies/Cookies.plist
Sending back exception invalid literal for long(): 108253f824 of type  
exceptions.ValueError:
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 335, in answer_request
     result = apply(eval(request.function_string), argument_list)
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 483, in readfromid
     if length is None: return cls.vfiles[id].read()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 302, in read
     if not self.addtobuffer(): break
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 325, in addtobuffer
     try: currentobj = self.iter.next()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 166, in get_sigs
     for src_rorp, dest_rorp in cls.CCPP:
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 306, in next
     source_rorp, dest_rorp = self.iter.next()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
rorpiter.py", line 100, in Collate2Iters
     try: relem2 = riter2.next()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
metadata.py", line 271, in iterate
     try: yield self.record_to_object(record)
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
metadata.py", line 190, in Record2RORP
     elif field == "ModTime": data_dict['mtime'] = long(data)

Sending back exception invalid literal for long(): 108253f824 of type  
exceptions.ValueError:
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 335, in answer_request
     result = apply(eval(request.function_string), argument_list)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 483, in readfromid
     if length is None: return cls.vfiles[id].read()
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 302, in read
     if not self.addtobuffer(): break
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 325, in addtobuffer
     try: currentobj = self.iter.next()
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 103, in get_diffs
     for dest_sig in dest_sigiter:
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 382, in next
     while not type: type, data = self._get()
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 414, in _get
     if not self.buf: self.buf += self.file.read()
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 516, in read
     return self.connection.VirtualFile.readfromid(self.id, length)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 448, in __call__
     return apply(self.connection.reval, (self.name,) + args)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 370, in reval
     if isinstance(result, Exception): raise result

Sending back exception invalid literal for long(): 108253f824 of type  
exceptions.ValueError:
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 335, in answer_request
     result = apply(eval(request.function_string), argument_list)
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 227, in patch_and_increment
     for diff in rorpiter.FillInIter(source_diffiter, dest_rpath):
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
rorpiter.py", line 177, in FillInIter
     for rp in rpiter:
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 382, in next
     while not type: type, data = self._get()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
iterfile.py", line 414, in _get
     if not self.buf: self.buf += self.file.read()
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 516, in read
     return self.connection.VirtualFile.readfromid(self.id, length)
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 448, in __call__
     return apply(self.connection.reval, (self.name,) + args)
   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 370, in reval
     if isinstance(result, Exception): raise result

Exception 'invalid literal for long(): 108253f824' raised of class  
'exceptions.ValueError':
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 295, in error_check_Main
     try: Main(arglist)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 315, in Main
     take_action(rps)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 271, in take_action
     elif action == "backup": Backup(rps[0], rps[1])
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 334, in Backup
     backup.Mirror_and_increment(rpin, rpout, incdir)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 51, in Mirror_and_increment
     DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 448, in __call__
     return apply(self.connection.reval, (self.name,) + args)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 370, in reval
     if isinstance(result, Exception): raise result

Traceback (most recent call last):
   File "/opt/local/bin/rdiff-backup", line 23, in ?
     rdiff_backup.Main.error_check_Main(sys.argv[1:])
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 295, in error_check_Main
     try: Main(arglist)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 315, in Main
     take_action(rps)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 271, in take_action
     elif action == "backup": Backup(rps[0], rps[1])
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
Main.py", line 334, in Backup
     backup.Mirror_and_increment(rpin, rpout, incdir)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
backup.py", line 51, in Mirror_and_increment
     DestS.patch_and_increment(dest_rpath, source_diffiter, inc_rpath)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 448, in __call__
     return apply(self.connection.reval, (self.name,) + args)
   File "/opt/local/lib/python2.4/site-packages/rdiff_backup/
connection.py", line 370, in reval
     if isinstance(result, Exception): raise result
ValueError: invalid literal for long(): 108253f824
alastair $ Fatal Error: Lost connection to the remote system



_______________________________________________
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: exception: invalid literal for long()

Ben Escoto
>>>>> Alastair Rankine <[hidden email]>
>>>>> wrote the following on Wed, 25 Jan 2006 23:46:39 +1100
> Hi,
>
> Backing up MacOS X client to FreeBSD server, both using rdiff-backup  
> 1.1.5, got an "invalid literal for long()" exception.
>
> Any ideas appreciated.

Looks like a corrupted mirror_metadata file.  (The modtime for one of
the files is '108253f824' instead of a number.)  There is supposed to be
a nicer error message when that happens, and rdiff-backup is supposed to
just skip that file, but there was a bug in the error-catching code.


--
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