S3Sync.net

General Category => Closed Bugs => Topic started by: knitter on April 06, 2007, 01:33:18 AM



Title: Error when trying to use cool --progress feature! :)
Post by: knitter on April 06, 2007, 01:33:18 AM
When I try to use --progress with 1.1.2 I get the following:

/usr/lib/ruby/1.8/delegate.rb:158:in `method_missing': undefined method `length' for nil:S3sync::ProgressStream (NoMethodError)
        from /usr/lib/ruby/1.8/net/http.rb:1533:in `send_request_with_body'
        from /usr/lib/ruby/1.8/net/http.rb:1522:in `exec'
        from /usr/lib/ruby/1.8/net/http.rb:1045:in `_HTTPStremaing_request'
        from ./HTTPStreaming.rb:45:in `request'
        from ./S3_s3sync_mod.rb:50:in `make_request'
        from ./S3.rb:152:in `put'
        from ./s3try.rb:57:in `send'
        from ./s3try.rb:57:in `S3try'
        from ./s3sync.rb:499:in `updateFrom'
        from ./s3sync.rb:370:in `main'
        from ./s3sync.rb:690

Actual command line is:

    ./s3sync.rb --progress -v /data/share/Backups/file.gz my.bucket.prefix:

I'm on Debian running Ruby 1.8.5:

# dpkg -l | grep -i ruby
ii  libopenssl-ruby               1.0.0+ruby1.8.2-1          OpenSSL interface for Ruby
ii  libopenssl-ruby1.8            1.8.5-4                    OpenSSL interface for Ruby 1.8
ii  libruby1.8                    1.8.5-4                    Libraries necessary to run Ruby 1.8
ii  ruby1.8                       1.8.5-4                    Interpreter of object-oriented scripting lan
#

Hope that helps ya out!  Can't wait to try the progress feature!!  :D



Title: Re: Error when trying to use cool --progress feature! :)
Post by: ferrix on April 08, 2007, 08:35:49 PM
OK I've not seen that exact error, but one thing I notice is that you're trying to sync a single file .. which I think still has some problems.  The local argument should be a directory for best results.  You can put a trailing slash to indicate only files *in* that directory, but I don't think a bare file argument works.

Having said that, if that doesn't fix the problem then let me know (along with new command line and updated error message, if any)


Title: Re: Error when trying to use cool --progress feature! :)
Post by: ferrix on June 03, 2007, 12:06:55 AM
the NoMethodError stuff should be fixed in 1.1.3