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

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error when trying to use cool --progress feature! :)  (Read 4508 times)
knitter
Newbie
*
Posts: 3


View Profile
« 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!!  Cheesy

« Last Edit: April 27, 2007, 11:58:08 PM by ferrix » Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


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


(I am greg13070 on AWS forum)


View Profile
« Reply #2 on: June 03, 2007, 12:06:55 AM »

the NoMethodError stuff should be fixed in 1.1.3
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!