Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2012-10-21 Thread Sai kee Wong
Thanks for the reply.

Yes I did check the related pages.  And I tried to use the Python version
2.6 which I assume should not suffer from the problem.  But it does suffer.
At that time, I was using Mac OS 10.6 which is assumed to be 64 bits.
Until recently, test was done with Mac OS 10.8 with Python 2.7, still the
same problem.  So I made the fix.

B.Rgds

SK

On 21 Oct 2012, at 6:28 AM, Joe Steele wrote:

 It looks like you were encountering the python bug identified here:
 
 http://bugs.python.org/issue1747858
 
 Before their fix, the uid was being converted to a (32 bit) signed int, 
 which, as you have noted, isn't big enough.  After the fix, the uid is 
 converted to a long.  I don't know anything about Mac OS X, but on linux, a 
 long is either 32 bits or 64 bits, depending on the architecture.  Their fix 
 should obviously work on 64 bit systems.  (And on 32 bit systems, it's 
 probably unlikely that you will encounter 32 bit uids anyway.)
 
 It also looks like their fix was implemented in python v2.5.3+, so I am a 
 little puzzled as to why you were experiencing problems with the versions of 
 python that you mention, if indeed you are using a 64 bit version.
 
 In any case, it looks like you found a fix that works for you.
 
 --Joe
 
 
 On 10/17/2012 9:43 AM, Sai kee Wong wrote:
 After the orignal post, there is no feedback.  Recently, I tried to fix
 the problem.  I didn't know any about Python, started debugging by inserting
 print statement.  Figured out in the Mac, some times it has file with uid
 and gid set to 4294967294 (nobody).  It seems Python doesn't accept unsigned
 32-bits.  And it crashed when calling the os.chown() with this high value.
 
 I don't know how to make the os.chown() to accept unsigned int instead of
 signed 32-bits int.  So I searched the web and add a function to change
 too big value to -ve, in this case is -2.  Then it works.  As in previous
 posts, somebodies asked similar questions and got no helpful response;
 I published the solution here such that if anyone is suffering from the 
 problem
 can adopt the fix.
 
 Also, please remind me if I am doing something wrong.
 
 Thanks !
 
 SK
 
 Fix:
 
 After installed the rdiff-backup 1.3.3, find the file rpath.py
 In Mac, it is in
 
 /Library/Python/2.7/site-packages/rdiff_backup/rpath.py
 
 At line 977, the line was
 
 else: os.chown(self.path, uid, gid)
 
 change it to
 
 else: os.chown(self.path, int32(uid), int32(gid))
 
 At line 46, add following
 
 def int32(x):
 if x0x:
 raise OverflowError
 if x0x7FFF:
 x=int(0x1-x)
 if x2147483648:
 return -x
 else:
 return -2147483648
 return x
 
 On 11 Apr 2011, at 9:04 AM, Sai kee Wong wrote:
 
 I'm new to the rdiff-backup
 
 I'm running Mac OS 10.6.6, installed the rdiff-backup 1.3.3 and tried
 to backup 110GB of data, at around 60GB, it stopped with following error:
 
 Exception 'signed integer is greater than maximum' raised of class 'type 
 'exceptions.OverflowError'':
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, 
 in error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, 
 in Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, 
 in take_action
elif action == backup: Backup(rps[0], rps[1])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 348, 
 in Backup
backup.Mirror(rpin, rpout)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 38, 
 in Mirror
DestS.patch(dest_rpath, source_diffiter)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 240, 
 in patch
ITR(diff.index, diff)
  File /Library/Python/2.6/site-packages/rdiff_backup/rorpiter.py, line 
 281, in __call__
last_branch.fast_process(*args)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 533, 
 in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 563, 
 in patch_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 180, 
 in copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 977, 
 in chown
else: os.chown(self.path, uid, gid)
 
 Traceback (most recent call last):
  File /usr/local/bin/rdiff-backup, line 30, in module
rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, 
 in error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, 
 in Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, 
 in take_action
elif action == backup: Backup(rps[0], rps[1])
  File 

Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2012-10-20 Thread Joe Steele

It looks like you were encountering the python bug identified here:

http://bugs.python.org/issue1747858

Before their fix, the uid was being converted to a (32 bit) signed int, 
which, as you have noted, isn't big enough.  After the fix, the uid is 
converted to a long.  I don't know anything about Mac OS X, but on 
linux, a long is either 32 bits or 64 bits, depending on the 
architecture.  Their fix should obviously work on 64 bit systems.  (And 
on 32 bit systems, it's probably unlikely that you will encounter 32 bit 
uids anyway.)


It also looks like their fix was implemented in python v2.5.3+, so I am 
a little puzzled as to why you were experiencing problems with the 
versions of python that you mention, if indeed you are using a 64 bit 
version.


In any case, it looks like you found a fix that works for you.

--Joe


On 10/17/2012 9:43 AM, Sai kee Wong wrote:

After the orignal post, there is no feedback.  Recently, I tried to fix
the problem.  I didn't know any about Python, started debugging by inserting
print statement.  Figured out in the Mac, some times it has file with uid
and gid set to 4294967294 (nobody).  It seems Python doesn't accept unsigned
32-bits.  And it crashed when calling the os.chown() with this high value.

I don't know how to make the os.chown() to accept unsigned int instead of
signed 32-bits int.  So I searched the web and add a function to change
too big value to -ve, in this case is -2.  Then it works.  As in previous
posts, somebodies asked similar questions and got no helpful response;
I published the solution here such that if anyone is suffering from the problem
can adopt the fix.

Also, please remind me if I am doing something wrong.

Thanks !

SK

Fix:

After installed the rdiff-backup 1.3.3, find the file rpath.py
In Mac, it is in

/Library/Python/2.7/site-packages/rdiff_backup/rpath.py

At line 977, the line was

 else: os.chown(self.path, uid, gid)

change it to

 else: os.chown(self.path, int32(uid), int32(gid))

At line 46, add following

def int32(x):
 if x0x:
 raise OverflowError
 if x0x7FFF:
 x=int(0x1-x)
 if x2147483648:
 return -x
 else:
 return -2147483648
 return x

On 11 Apr 2011, at 9:04 AM, Sai kee Wong wrote:


I'm new to the rdiff-backup

I'm running Mac OS 10.6.6, installed the rdiff-backup 1.3.3 and tried
to backup 110GB of data, at around 60GB, it stopped with following error:

Exception 'signed integer is greater than maximum' raised of class 'type 
'exceptions.OverflowError'':
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, in 
error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, in 
Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, in 
take_action
elif action == backup: Backup(rps[0], rps[1])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 348, in 
Backup
backup.Mirror(rpin, rpout)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 38, in 
Mirror
DestS.patch(dest_rpath, source_diffiter)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 240, in 
patch
ITR(diff.index, diff)
  File /Library/Python/2.6/site-packages/rdiff_backup/rorpiter.py, line 281, 
in __call__
last_branch.fast_process(*args)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 533, in 
fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 563, in 
patch_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 180, in 
copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 977, in 
chown
else: os.chown(self.path, uid, gid)

Traceback (most recent call last):
  File /usr/local/bin/rdiff-backup, line 30, in module
rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, in 
error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, in 
Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, in 
take_action
elif action == backup: Backup(rps[0], rps[1])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 348, in 
Backup
backup.Mirror(rpin, rpout)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 38, in 
Mirror
DestS.patch(dest_rpath, source_diffiter)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 240, in 
patch
ITR(diff.index, diff)
  File /Library/Python/2.6/site-packages/rdiff_backup/rorpiter.py, line 281, 
in __call__
last_branch.fast_process(*args)
  File 

Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2012-10-17 Thread Sai kee Wong
After the orignal post, there is no feedback.  Recently, I tried to fix
the problem.  I didn't know any about Python, started debugging by inserting
print statement.  Figured out in the Mac, some times it has file with uid
and gid set to 4294967294 (nobody).  It seems Python doesn't accept unsigned
32-bits.  And it crashed when calling the os.chown() with this high value.

I don't know how to make the os.chown() to accept unsigned int instead of
signed 32-bits int.  So I searched the web and add a function to change
too big value to -ve, in this case is -2.  Then it works.  As in previous
posts, somebodies asked similar questions and got no helpful response;
I published the solution here such that if anyone is suffering from the problem
can adopt the fix.

Also, please remind me if I am doing something wrong.

Thanks !

SK

Fix:

After installed the rdiff-backup 1.3.3, find the file rpath.py
In Mac, it is in

/Library/Python/2.7/site-packages/rdiff_backup/rpath.py

At line 977, the line was

else: os.chown(self.path, uid, gid)

change it to

else: os.chown(self.path, int32(uid), int32(gid))

At line 46, add following

def int32(x):
if x0x:
raise OverflowError
if x0x7FFF:
x=int(0x1-x)
if x2147483648:
return -x
else:
return -2147483648
return x

On 11 Apr 2011, at 9:04 AM, Sai kee Wong wrote:

 I'm new to the rdiff-backup
 
 I'm running Mac OS 10.6.6, installed the rdiff-backup 1.3.3 and tried
 to backup 110GB of data, at around 60GB, it stopped with following error:
 
 Exception 'signed integer is greater than maximum' raised of class 'type 
 'exceptions.OverflowError'':
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, in 
 error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, in 
 Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, in 
 take_action
elif action == backup: Backup(rps[0], rps[1])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 348, in 
 Backup
backup.Mirror(rpin, rpout)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 38, in 
 Mirror
DestS.patch(dest_rpath, source_diffiter)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 240, 
 in patch
ITR(diff.index, diff)
  File /Library/Python/2.6/site-packages/rdiff_backup/rorpiter.py, line 281, 
 in __call__
last_branch.fast_process(*args)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 533, 
 in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 563, 
 in patch_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 180, in 
 copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 977, in 
 chown
else: os.chown(self.path, uid, gid)
 
 Traceback (most recent call last):
  File /usr/local/bin/rdiff-backup, line 30, in module
rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 306, in 
 error_check_Main
try: Main(arglist)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 326, in 
 Main
take_action(rps)
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 282, in 
 take_action
elif action == backup: Backup(rps[0], rps[1])
  File /Library/Python/2.6/site-packages/rdiff_backup/Main.py, line 348, in 
 Backup
backup.Mirror(rpin, rpout)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 38, in 
 Mirror
DestS.patch(dest_rpath, source_diffiter)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 240, 
 in patch
ITR(diff.index, diff)
  File /Library/Python/2.6/site-packages/rdiff_backup/rorpiter.py, line 281, 
 in __call__
last_branch.fast_process(*args)
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 533, 
 in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File /Library/Python/2.6/site-packages/rdiff_backup/backup.py, line 563, 
 in patch_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 180, in 
 copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File /Library/Python/2.6/site-packages/rdiff_backup/rpath.py, line 977, in 
 chown
else: os.chown(self.path, uid, gid)
 OverflowError: signed integer is greater than maximum
 
 Believe it should be problem with the 64 bits OS. Tried python 2.6.1 
 and 2.6.6 both give above error. Tried also 2.7.1 but gives
 Segmentation fault
 
 Search through the rdiff-backup-users Archives but couldn't find
 any cue to solve the problem.
 
 Thanks in advance for 

Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2010-10-14 Thread Thomas fake Jakobi
hi,

manual reply to this: 
http://www.mail-archive.com/rdiff-backup-users@nongnu.org/msg04953.html

 But then there's http://bugs.python.org/issue6873, which indicates
 that perhaps lchown still has the problem in the released Python
 versions.  If you can figure out how to reproduce it outside of
 rdiff-backup the Python team would be grateful :)

you won't be able to. the code fixed in python is duplicated in rdiff-backup's 
cmodule.c, without the fix, if HAVE_LCHOWN is defined (which it probably is in 
these cases).

to replicate the fix you mentioned at 
http://svn.python.org/view/python/trunk/Modules/posixmodule.c?r1=77007r2=77006pathrev=77007
 you have to apply the attached patch to rdiff-backup.

this fixed the OverflowError on lchown for me.

regards,

fake

P.S.: in case of replies, please CC me, as i am not subscribed to the list.



rdiff-cmodule-lchown.patch
Description: Binary data
___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2010-01-20 Thread R. David Murray
On Sat, 16 Jan 2010 18:11:56 +0100, Michel Le Cocq miconof80.l...@gmail.com 
wrote:
   File /usr/local/lib/python2.6/site-packages/rdiff_backup/rpath.py,
   line 973, in chown
 try: self.conn.C.lchown(self.path, uid, gid)
 OverflowError: signed integer is greater than maximum
 
 Michel Le Cocq a écrit:
  
  Andrew Ferguson-4 wrote:
   
   
   On Jan 5, 2009, at 4:00 PM, Brad Beyenhof wrote:
   
   Backing up from the 64-bit system works fine, and two of the
   directories I'm backing up from the 32-bit system are fine as well.
   However, one directory reports OverflowError: signed integer is
   greater than maximum and quits partway through the backup. The
   terminal output with the default verbosity is below; I can attach a
   log with a higher verbosity if requested.
   
   
   Hi Brad,
   
   This is a known problem that is due to a bug in Python. The Python bug  
   has been fixed in their SVN, and was slated to be a part of 2.5.3, so  
   it should be included in the latest Python releases: 2.5.4, 2.6.1, and  
   3.0. Try upgrading your Python to 2.5.4 or 2.6.1.
   
   Here is some more information about the problem:
   
   https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/245844
   http://bugs.python.org/issue1747858

But then there's http://bugs.python.org/issue6873, which indicates
that perhaps lchown still has the problem in the released Python
versions.  If you can figure out how to reproduce it outside of
rdiff-backup the Python team would be grateful :)

--
R. David Murray  www.bitdance.com
Business Process Automation - Network/Server Management - Routers/Firewalls


___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2010-01-17 Thread Michel Le Cocq
I'm building a virtual machine like my save server.

I tried rdiff-backup-devel-1.3.3 and rdiff-backup-1.2.8,1 on this
virtual host and I've got the same error

So I did :

$ pkg_add gcc45
$ pkg_add -r librsync
$ wget 
http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8.tar.gz
$ tar -zxvf rdiff-backup-1.2.8.tar.gz 
$ cd rdiff-backup-1.2.8
$ cp ../cmodule.c .
$ python setup.py install --prefix=~/ 
--librsync-dir=/usr/local/include/librsync.h
--librsync-dir=/usr/local/include/librsync.h
running install
running build
running build_py
running build_ext
building 'rdiff_backup._librsync' extension
cc -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t
-DTHREAD_STACK_SIZE=0x2 -fno-strict-aliasing -fPIC
-I/usr/local/include/librsync.h/include -
I/usr/local/include/python2.6 -c _librsyncmodule.c -o
build/temp.freebsd-8.0-RELEASE-amd64-2.6/_librsyncmodule.o
cc1: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
error: command 'cc' failed with exit status 1

I think I missed something

--
Michel  
 
Andrew Ferguson a écrit:
 Ooops. That one is rdiff-backup's fault.
 
 Replace the file cmodule.c with the one attached and re-compile.
 
 


 
 
 
 
 On Jan 16, 2010, at 12:11 PM, Michel Le Cocq wrote:
 Here is the complete Traceback :
 
 [r...@sauvelipn2009 ~]# rdiff-backup --force -v3 --print-statistics
 --force /mnt/users_lipn/export/vol01/jc
 /backup/Lipn/users_backup1/export/jc
 Exception 'signed integer is greater than maximum' raised of class
 'type 'exceptions.OverflowError'':
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 304, in error_check_Main
try: Main(arglist)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 324, in Main
take_action(rps)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 280, in take_action
elif action == backup: Backup(rps[0], rps[1])
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 346, in Backup
backup.Mirror(rpin, rpout)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 232, in patch
ITR(diff.index, diff)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/rorpiter.py,
  line 281, in __call__
last_branch.fast_process(*args)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 529, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 553, in patch_to_temp
result = self.patch_snapshot_to_temp(diff_rorp, new)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 578, in patch_snapshot_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/rpath.py,
  line 180, in copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/rpath.py,
  line 973, in chown
try: self.conn.C.lchown(self.path, uid, gid)
 
 Traceback (most recent call last):
  File /usr/local/bin/rdiff-backup, line 30, in module
rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 304, in error_check_Main
try: Main(arglist)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 324, in Main
take_action(rps)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 280, in take_action
elif action == backup: Backup(rps[0], rps[1])
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/Main.py,
  line 346, in Backup
backup.Mirror(rpin, rpout)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 232, in patch
ITR(diff.index, diff)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/rorpiter.py,
  line 281, in __call__
last_branch.fast_process(*args)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 529, in fast_process
if self.patch_to_temp(mirror_rp, diff_rorp, tf):
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 553, in patch_to_temp
result = self.patch_snapshot_to_temp(diff_rorp, new)
  File
  /usr/local/lib/python2.6/site-packages/rdiff_backup/backup.py,
  line 578, in patch_snapshot_to_temp
rpath.copy_attribs(diff_rorp, new)
  File /usr/local/lib/python2.6/site-packages/rdiff_backup/rpath.py,
  line 180, in copy_attribs
rpout.chown(*rpout.conn.user_group.map_rpath(rpin))
  File 

Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2010-01-17 Thread Adrian Klaver
On Sunday 17 January 2010 10:40:17 am Michel Le Cocq wrote:
 I'm building a virtual machine like my save server.

 I tried rdiff-backup-devel-1.3.3 and rdiff-backup-1.2.8,1 on this
 virtual host and I've got the same error

 So I did :

 $ pkg_add gcc45
 $ pkg_add -r librsync
 $ wget
 http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8.tar.gz
 $ tar -zxvf rdiff-backup-1.2.8.tar.gz
 $ cd rdiff-backup-1.2.8
 $ cp ../cmodule.c .
 $ python setup.py install --prefix=~/
 --librsync-dir=/usr/local/include/librsync.h
 --librsync-dir=/usr/local/include/librsync.h
 running install
 running build
 running build_py
 running build_ext
 building 'rdiff_backup._librsync' extension
 cc -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t
 -DTHREAD_STACK_SIZE=0x2 -fno-strict-aliasing -fPIC
 -I/usr/local/include/librsync.h/include -
 I/usr/local/include/python2.6 -c _librsyncmodule.c -o
 build/temp.freebsd-8.0-RELEASE-amd64-2.6/_librsyncmodule.o
 cc1: internal compiler error: Segmentation fault: 11
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See URL:http://gcc.gnu.org/bugs.html for instructions.
 error: command 'cc' failed with exit status 1

 I think I missed something

 --
 Michel


What version of librsync are you using?  Also is it just a cut and paste error 
or are you specificing the --libsync-dir twice?




-- 
Adrian Klaver
adrian.kla...@gmail.com


___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Re: [rdiff-backup-users] OverflowError: signed integer is greater than maximum

2009-01-06 Thread Andrew Ferguson


On Jan 5, 2009, at 4:00 PM, Brad Beyenhof wrote:


First of all, I really like rdiff-backup. In most cases (all but the
one I'll detail below), it's been great for me.

Searching in the mailing-list archives has led me to believe that
either the operating system version (64- versus 32-bit) or the python
version may be to blame here. The server I'm using as a backup
repository runs 64-bit CentOS 5. I'm using rdiff-backup *from* two
other servers, one with the same OS and one with 32-bit CentOS 4. The
64-bit machines run python 2.4.3, and the 32-bit has python 2.3.4,
which is the highest version in the Cent4 repos.

Backing up from the 64-bit system works fine, and two of the
directories I'm backing up from the 32-bit system are fine as well.
However, one directory reports OverflowError: signed integer is
greater than maximum and quits partway through the backup. The
terminal output with the default verbosity is below; I can attach a
log with a higher verbosity if requested.



Hi Brad,

This is a known problem that is due to a bug in Python. The Python bug  
has been fixed in their SVN, and was slated to be a part of 2.5.3, so  
it should be included in the latest Python releases: 2.5.4, 2.6.1, and  
3.0. Try upgrading your Python to 2.5.4 or 2.6.1.


Here is some more information about the problem:

https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/245844
http://bugs.python.org/issue1747858


Andrew



___
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki