S3Sync.net

General Category => Questions => Topic started by: openedu on August 07, 2008, 06:35:09 PM



Title: error: s3sync/s3sync.rb:286:in `s3TreeRecurse': ... `http_response' for nil
Post by: openedu on August 07, 2008, 06:35:09 PM
I am trying to sync a local directory to a bucket I have created with my s3 account.  Unfortunately ruby crashes with the following error:
Code:
Null stream error: undefined method `owner=' for nil:NilClass
s3sync/s3sync.rb:286:in `s3TreeRecurse': undefined method `http_response' for nil:NilClass (NoMethodError)
        from s3sync/s3sync.rb:346:in `main'
        from /home/red/projects/quiztunes/server/s3sync/thread_generator.rb:79:in `call'
        from /home/red/projects/quiztunes/server/s3sync/thread_generator.rb:79:in `initialize'
        from /home/red/projects/quiztunes/server/s3sync/thread_generator.rb:76:in `new'
        from /home/red/projects/quiztunes/server/s3sync/thread_generator.rb:76:in `initialize'
        from s3sync/s3sync.rb:267:in `new'
        from s3sync/s3sync.rb:267:in `main'
        from s3sync/s3sync.rb:735

this is after executing the following command:

ruby s3sync/s3sync.rb -r --ssl ./music_library/aliased-samples/ :/music-samples


this is using the version I downloaded off the web site tar file, version 1.2.6

any help appreciated!


Title: Re: error: s3sync/s3sync.rb:286:in `s3TreeRecurse': ... `http_response' for nil
Post by: openedu on August 07, 2008, 07:08:04 PM
I determined that the error was that my command was ill-formed

It should have been:
ruby s3sync/s3sync.rb -r --ssl ./music_library/aliased-samples/ music-samples:/

hope this helps the next guy!