S3Sync.net

General Category => Questions => Topic started by: denix on January 31, 2008, 09:46:55 AM



Title: 302 errors, causing failure
Post by: denix on January 31, 2008, 09:46:55 AM
Hi,

Everything's been working fine for a while, but this morning my backup failed with the following error:

Code:
S3 command failed:
list_bucket max-keys 200 prefix admin/admin/New Docs and Labels/WWS2000 V2.6/cd design/ delimiter /
With result 302 Found
S3 ERROR: #<Net::HTTPFound:0x8560934>
./s3sync.rb:289:in `+': can't convert nil into Array (TypeError)
        from ./s3sync.rb:289:in `s3TreeRecurse'
        from ./s3sync.rb:332:in `s3TreeRecurse'
        from ./s3sync.rb:313:in `each'
        from ./s3sync.rb:313:in `s3TreeRecurse'
        from ./s3sync.rb:332:in `s3TreeRecurse'
        from ./s3sync.rb:313:in `each'
        from ./s3sync.rb:313:in `s3TreeRecurse'
        from ./s3sync.rb:332:in `s3TreeRecurse'
         ... 9 levels...
        from ./thread_generator.rb:76:in `initialize'
        from ./s3sync.rb:266:in `new'
        from ./s3sync.rb:266:in `main'
        from ./s3sync.rb:724

I've re-run the backup, but the same thing happened, although in a different place:

Code:
S3 command failed:
list_bucket max-keys 200 prefix admin/admin delimiter /
With result 302 Found
S3 ERROR: #<Net::HTTPFound:0xb7a65e34>
./s3sync.rb:289:in `+': can't convert nil into Array (TypeError)
        from ./s3sync.rb:289:in `s3TreeRecurse'
        from ./s3sync.rb:345:in `main'
        from ./thread_generator.rb:79:in `call'
        from ./thread_generator.rb:79:in `initialize'
        from ./thread_generator.rb:76:in `new'
        from ./thread_generator.rb:76:in `initialize'
        from ./s3sync.rb:266:in `new'
        from ./s3sync.rb:266:in `main'
        from ./s3sync.rb:724

I've updated to the latest s3sync, but that didn't help.

Any ideas?


Title: Re: 302 errors, causing failure
Post by: ferrix on January 31, 2008, 06:17:43 PM
I don't know any case where AWS issues 302's.  Are you using --ssl?  If not, maybe some proxy is trying to redirect you.