S3Sync.net

General Category => Report Bugs => Topic started by: A.Skwar on August 17, 2008, 03:56:36 AM



Title: Can't set group: `chown': bignum too big to convert into `long' (RangeError)
Post by: A.Skwar on August 17, 2008, 03:56:36 AM
Hi.

For the first time, I'm trying to sync something from one of my buckets to my local system using s3sync.rb. Up to now, I just uploaded stuff using s3sync.

But now I get this:

Code:
./s3sync.rb:683:in `chown': bignum too big to convert into `long' (RangeError)
from ./s3sync.rb:683:in `send'
from ./s3sync.rb:683:in `updateFrom'
from ./s3sync.rb:393:in `main'
from ./s3sync.rb:735

I'd say that this is related to the closed bug “Owner ID is incorrect (http://s3sync.net/forum/index.php?topic=86.0)”.

Using jets3t, I see the following "Metadata":

  • group: 4294967294
  • owner: 10001
  • permissions: 33204
I synced the file from a Linux system onto S3. On the Linux system, the source was NFS mounted and the file belonged to group "nogroup". I don't use cygwin. So it's not Cygwin related.

I see that problem with s3sync 1.2.6.

The patch from “Owner ID is incorrect (http://s3sync.net/forum/index.php?topic=86.0)” did not work for me, because my GID is not -1 (ie. 0xFFFFFFFF), but -2 (ie. 0xFFFFFFFF - 1).

I'll attach a patch which fixes this problem (for me). It's against s3sync.rb from s3sync 1.2.6.

Cheers,
Alexander