S3Sync.net
February 02, 2014, 01:38:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s3 403 error when using s3sync.rb  (Read 3999 times)
rhevelo
Newbie
*
Posts: 5


View Profile
« on: December 14, 2007, 01:54:49 PM »

Strange problem with s3sync. 

Code:
$ ./s3cmd.rb --ssl listbuckets
Drop1
Drop2

$./s3ync.rb -r --ssl /Drop1/ mybucket:/Drop1
S3 command failed:
list_bucket max-keys 200 prefix /Drop1 delimiter /
With result 403 Forbidden
S3 ERROR: #<Net::HTTPForbidden:0x50f208>
./s3sync.rb:286:in `+': can't convert nil into Array (TypeError)
from ./s3sync.rb:286:in `s3TreeRecurse'
from ./s3sync.rb:342: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:263:in `new'
from ./s3sync.rb:263:in `main'
from ./s3sync.rb:721

The obvious being bad credentials but the s3cmd works fine.  If I export the credentials and remove the .yml file the error remains the same and s3cmd still works properly.

Any ideas?
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 on: December 14, 2007, 07:01:58 PM »

Try ./s3ync.rb -r --ssl /Drop1/ mybucket:Drop1
Logged
rhevelo
Newbie
*
Posts: 5


View Profile
« Reply #2 on: December 14, 2007, 08:52:14 PM »

Same error, Thanks
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #3 on: December 15, 2007, 10:12:09 AM »

So you can list that bucket using s3cmd and the same creds?
Logged
rhevelo
Newbie
*
Posts: 5


View Profile
« Reply #4 on: December 15, 2007, 01:46:24 PM »

yes

Code:
$ruby s3cmd.rb list Drop1
--------------------
Test.png


Thanks


Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #5 on: December 16, 2007, 07:50:45 PM »

I am totally stumped.
If you want to temporarily grant me
<--------
access to your test bucket I can try and repro the problem here.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!