Title: s3cmd put works well, but s3sync is failing for me Post by: tnine on February 09, 2008, 06:42:14 PM Hi all,
I'm testing out the s3 tools, and the cmd tool works great. I'm running on Cent OS 5.1. I fire up a terminal, and export my environment variables via the following. export AWS_ACCESS_KEY_ID="foo" export AWS_SECRET_ACCESS_KEY="bar" Then I can execute the following command, and everything works great. ./s3cmd.rb put 01rekf0mgfa5v6h5ktg2.backup:README.txt README.txt However, when I try the s3sync below, I receive the following error. Any ideas? My key does have a '+' character in it. $ ./s3sync.rb -r /usr/local/backup/upload/ rekf0mgfa5v6h5ktg2.backup:/projects S3 command failed: list_bucket max-keys 200 prefix /projects delimiter / With result 404 Not Found S3 ERROR: #<Net::HTTPNotFound:0xb7d4a730> ./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 Title: Re: s3cmd put works well, but s3sync is failing for me Post by: ferrix on February 10, 2008, 09:19:51 AM Remove / between : and projects
$ ./s3sync.rb -r /usr/local/backup/upload/ rekf0mgfa5v6h5ktg2.backup:projects and thanks for including command line. Title: Re: s3cmd put works well, but s3sync is failing for me Post by: diego on September 26, 2008, 02:42:19 PM Hello all,
I'm trying the bellow comand and it is returning the same error: ruby s3sync.rb -r --ssl --delete /home/diego/test_s3sync/ mybucket:backup or ruby s3sync.rb -r --ssl --delete /home/diego/test_s3sync/ mybucket:backup/ or ruby s3sync.rb -r --ssl --delete /home/diego/test_s3sync/ mybucket:/backup all return the error S3 command failed: list_bucket max-keys 200 prefix backup delimiter / With result 403 Forbidden S3 ERROR: #<Net::HTTPForbidden:0xb7d641a8> s3sync.rb:290:in `+': can't convert nil into Array (TypeError) from s3sync.rb:290:in `s3TreeRecurse' from s3sync.rb:346: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:267:in `new' from s3sync.rb:267:in `main' from s3sync.rb:735 someone have any idea? Regards, Diego |