lejarrag
Newbie
Posts: 16
|
|
« on: May 18, 2010, 02:52:26 PM » |
|
I installed the latest versions of Ruby and of s3sync, set the environment variables, etc. I am using Ruby 1.9.1 installed with rubyinstaller-1.9.1-p378-rc2. When I try to run the simplest command I can think about, namely,
> s3cmd.rb listbuckets
I get that the constant "SimpleDelegator" in HTTPStreaming.rb is uninitialized, more precisely,
C:/s3sync/HTTPStreaming.rb:53:in '<module:S3sync>': uninitialized constant S3sync::SimpleDelegator <NameError>
I can't copy and paste the output with this machine (or redirect it to a file), but essentially what is happening is that line 13 in s3cmd.rb calls s3try.rb, and line 23 in this script calls HTTPStreaming.rb, and there the process gets stuck.
This problem has nothing to do with listbuckets: if I just enter
> s3cmd.rb
I get the same result.
Out of curiosity, I tried
> s3sync.rb
and I got that, in line, 23 a file md5 is required that is nowhere to be found. I think that in the past I used to get some help with the syntax when I entered this command.
I would appreciate some clarification on these questions. I didn't have any problem when I was running s3sync on Linux.
|
|
|
Logged
|
|
|
|
ferrix
|
|
« Reply #1 on: May 19, 2010, 03:56:41 PM » |
|
I'm not sure if anyone got it working with the 1.9 ruby branch. One of these days I'm going to get around to a rewrite that won't require ruby.
|
|
|
Logged
|
|
|
|
lejarrag
Newbie
Posts: 16
|
|
« Reply #2 on: May 19, 2010, 08:51:28 PM » |
|
Thanks for your answer. I'll try the "venerable" version of s3sync with an older version of Ruby. It used to work fine in Linux in the old days.
|
|
|
Logged
|
|
|
|
ferrix
|
|
« Reply #3 on: May 20, 2010, 07:33:48 AM » |
|
Newest s3sync works with ruby 1.8.x.
|
|
|
Logged
|
|
|
|
lejarrag
Newbie
Posts: 16
|
|
« Reply #4 on: May 20, 2010, 04:21:44 PM » |
|
I tried Ruby 1.8.6 from ruby-installer-1.8.6-p398-rc2 and both the "venerable" and the last version of s3sync and it doesn't work. For instance with
> ruby s3cmd.rb listbuckets
I get
S3 command failed list_all_my_buckets With result 400 Bad Request
If I try to do a simple operation with s3sync.rb itself, I not only get the 400 Bad Request, but complains about the code having undefined methods or whatever.
I wonder if anyone is having s3sync working on Windows XP and, in that case, what particular installer of Ruby they are using. I think I used to have it working with Windows XP a couple of years ago, but unfortunately I decided not to keep the code and binaries--since everything is evolving for the better and those are freely available online, Hah, Hah.
|
|
|
Logged
|
|
|
|
ferrix
|
|
« Reply #5 on: May 20, 2010, 09:37:51 PM » |
|
I have ruby 1.8.6, and use it on Windows 7.
|
|
|
Logged
|
|
|
|
lejarrag
Newbie
Posts: 16
|
|
« Reply #6 on: May 20, 2010, 10:30:32 PM » |
|
Well, maybe I am doing something wrong or Ruby on Windows is not very reliable. Thank you anyway.
|
|
|
Logged
|
|
|
|
lejarrag
Newbie
Posts: 16
|
|
« Reply #7 on: May 29, 2010, 04:51:48 PM » |
|
It seems to work fine in Windows with Ruby 1.8.6. I had made a mistake when entering my keys. I don't think it works so well with Ruby 1.9.1, but Ruby 1.8.6 is still readily available. Thank you again for your help and for this great software.
|
|
|
Logged
|
|
|
|
|