OK, I got past the uninitialized constant issue.
I had to modify HTTPStreaming.rb and add:
require 'delegate'
before the reference to SimpleDelegator.
Perhaps the distributed source could be patched so that others don't run into this?
However, that did not solve my problems. I still get 403 permission denied errors whenever I try and use s3cmd.rb.
The problem is not with my access key and secret key--those are there and correct.
The problem is also not with the time on this machine....I wrote a little test script using the right_aws gem and it works fine using the same access key and secret key. The problem appears to be with s3cmd.rb.
Here is some sample output:
% s3cmd.rb list datadir
--------------------
S3 command failed:
list_bucket [{"prefix"=>"", "max-keys"=>100}, {}]
With result 403 Forbidden
/local/s3sync/s3cmd.rb:142:in `s3cmdMain': undefined method `is_truncated' for nil:NilClass (NoMethodError)
from /local/s3sync/s3cmd.rb:245:in `<main>'
I'm not clear if the error listed is the cause or the effect of the 403 error.
Other commands (put, listbuckets) give me a 403 error without any runtime errors. For example:
% s3cmd.rb listbuckets
S3 command failed:
list_all_my_buckets []
With result 403 Forbidden
Could there be some other issue with s3cmd.rb not working with the latest version of ruby?
I tried using the older version (pre-EU bucket support) and had the same issue.
Thanks
Can anyone help?