Lee,
That looks like a legitimate permissions issue during the multipart upload
initiation. Perhaps check the Riak CS logs for any errors or clues and verify
you do have proper ACL permissions for the bucket you are attempting to upload
to. We don't use that function in our testing so there could be a bug with it
I'm not aware of. I would also try a multipart upload with s3cmd or another
similar tool and determine if that that works to narrow the focus.
Kelly
On April 7, 2014 at 4:45:19 PM, Lee Sylvester (lee.sylves...@gmail.com) wrote:
Hi Kelly,
I’ve got Riak CS working with erlcloud, so thanks for that. It would have
taken a lot longer without your help. However, I wanted to change from using
erlcloud:put_object to using erlcloud:put_multipart_object. However, when I
make the change, I get the following error:
{error,
{error,
{aws_error,
{http_error,403,[],
"AccessDeniedAccess Denied/tmp-files/test.png"}},
[{erlcloud_s3,s3_request,9,[{file,"src/erlcloud_s3.erl"},{line,899}]},
{erlcloud_s3,s3_xml_request,8,
[{file,"src/erlcloud_s3.erl"},{line,834}]},
{erlcloud_s3,put_multipart_object,6,
[{file,"src/erlcloud_s3.erl"},{line,662}]},
{builder_web_fileupload_resource,process_post,2,
[{file,"src/builder_web_fileupload_resource.erl"},{line,43}]},
{webmachine_resource,resource_call,3,
[{file,"src/webmachine_resource.erl"},{line,186}]},
{webmachine_resource,do,3,
[{file,"src/webmachine_resource.erl"},{line,142}]},
{webmachine_decision_core,resource_call,1,
[{file,"src/webmachine_decision_core.erl"},{line,48}]},
{webmachine_decision_core,decision,1,
[{file,"src/webmachine_decision_core.erl"},{line,486}]}]}}
I tried adding an acl item to the Options list, but that didn’t seem to help.
Do you have any idea what may be causing this?
Thanks,
Lee
On 1 Apr 2014, at 16:11, Kelly McLaughlin <ke...@basho.com> wrote:
Lee,
The erlcloud usage in the riak_test test modules might be easier to follow.
Take a look at ./riak_test/tests/object_get_test.erl for a simple example. Also
take a look at setup/2 in ./riak_test/src/rtcs.erl to see how the erlcloud
configuration record is created. Hope that helps.
Kelly
On March 31, 2014 at 11:47:52 AM, Lee Sylvester (lee.sylves...@gmail.com) wrote:
Hi Kelly,
Thank you for the information. I took a look at the client test, but as it
uses an FSM, the continuous looping gave me a headache :-) Is there a simpler
test that demos this? If not, can you highlight the lines that make the calls
to Riak CS etc? That part evades me.
Thanks,
Lee
On 31 Mar 2014, at 16:09, Kelly McLaughlin <ke...@basho.com> wrote:
Lee,
We have a fork of erlcloud (https://github.com/basho/erlcloud) we use for
testing and it can be made to work with your Riak CS cluster with relatively
little pain. Look in the riak_cs repo under client_tests/erlang/ercloud_eqc.erl
for some example usage. You'll probably want to set the proxy host and port and
perhaps the host name if you're not using the default "s3.amazonaws.com".
Kelly
On March 31, 2014 at 8:44:03 AM, Lee Sylvester (lee.sylves...@gmail.com) wrote:
Hi guys,
I’m setting up my own Riak CS cluster and wanted to know what the best way to
interact with that cluster would be from an Erlang app? I’ve taken a look at
ErlCloud, but it seems I’d need to butcher it to get it to work with a custom
cluster (not Amazon’s setup).
Thanks,
Lee
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com