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

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s3cmd put works well, but s3sync is failing for me  (Read 4904 times)
tnine
Newbie
*
Posts: 1


View Profile
« 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
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 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. 
Logged
diego
Newbie
*
Posts: 1


View Profile
« Reply #2 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
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!