Kazuhiro Suzuki wrote: > Hi Henrik, Hi All
> > It seems http proxy option[1] is needed to specify your Riak CS node > instead of the endpoint option. Could you try to use it? > Although you might already know, there is a good docs[2] which > explains how Riak CS can interact with S3 clients. > > [1]: > http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html#proxy > [2]: > http://docs.basho.com/riakcs/latest/cookbooks/configuration/Configuring-Riak-CS/#Proxy-vs-Direct-Configuration Going back to developers it seems they use something called Flyssystem, which has v2 and v3 adapters http://flysystem.thephpleague.com/adapter/aws-s3-v2/ So I have solved my problem for now, by using the flysystem v2 adapter, with something like: use Aws\S3\S3Client; use League\Flysystem\AwsS3v2\AwsS3Adapter; use League\Flysystem\Filesystem; $client = S3Client::factory([ 'key' => AWS_KEY, 'secret' => AWS_SECRET_KEY, 'region' => 'local', 'endpoint' => 'http://s3.amazonaws.com:8080', ]); - and also catching the s3.amazonaws.com DNS with DNSmasq and sending requests to the Riak CS. I will of course look into the proxy parts too, and refine this with a better named endpoint. Thank you for input, Riak CS proved to be easier to get up than expected. Best regards Henrik > > Thanks, > Kaz > > On Thu, Aug 6, 2015 at 3:43 PM, Kota Uenishi <k...@basho.com> wrote: >> Henrik, >> Thank you for trying Riak CS. Besides, current status of v4 >> authentication is not yet GA, not all features implemented, and only >> partially tested with boto (Python AWS library). I'm not sure what's >> going on in your cluster, but can you find any error or warning logs >> simaltenously happning your 500? >> >> On Tue, Aug 4, 2015 at 7:14 PM, Henrik Lund Kramshøj <h...@krugercorp.dk> >> wrote: >>> Hi There >>> >>> I am researching self-hosted alternatives to S3, and found Riak CS. >>> Setup was OK, and I currently can access the server fine with s3cmd >>> >>> Unfortunately I cannot make it work with AWS SDK PHP version 3, since it >>> uses signature version 4. >>> >>> I have done lots of trial and error, using PHP >>> define('AWS_KEY', 'xxx'); >>> define('AWS_SECRET_KEY', 'xxx'); >>> $client = new S3Client([ >>> 'credentials' => [ >>> 'key' => AWS_KEY, >>> 'secret' => AWS_SECRET_KEY >>> ], >>> 'region' => 'local', >>> 'version' => '2006-03-01', >>> 'endpoint' => '172.xx.x.xx:8080', >>> // 'signature_version' => 'v4' >>> ]); >>> >>> signature_version can only be v4 or anonymous. >>> >>> What is the expectation with v4 requests? >>> >>> I did find the option, auth_v4_enabled: >>> root@riaks2:/etc/riak-cs# cat advanced.config >>> [ >>> {riak_cs, [ >>> %% {auth_v4_enabled, true} >>> ]} >>> ]. >>> >>> but it ends up in error 500 >>> ""<h1>Internal Server Error</h1>"" >>> >>> Do I need more configuration, or is it not ready. >>> >>> >>> >>> root@riaks2:/etc/riak-cs# lsb_release -a >>> No LSB modules are available. >>> Distributor ID: Ubuntu >>> Description: Ubuntu 14.04.2 LTS >>> Release: 14.04 >>> Codename: trusty >>> root@riaks2:/etc/riak-cs# dpkg -l | egrep "riak|stanchion" >>> ii riak 2.0.5-1 >>> amd64 Riak is a distributed data store >>> ii riak-cs 2.0.1-1 >>> amd64 Riak CS >>> ii stanchion 2.0.0-1 >>> amd64 Request Serialization Application >>> >>> Best regards >>> >>> Henrik >>> -- >>> Henrik Lund Kramshøj, Follower of the Great Way of Unix >>> internet samurai cand.scient CISSP >>> h...@krugercorp.dk +45 2678 1919 >>> >>> _______________________________________________ >>> riak-users mailing list >>> riak-users@lists.basho.com >>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> >> >> -- >> Kota UENISHI / @kuenishi >> Basho Japan KK >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > -- Henrik Lund Kramshøj, Follower of the Great Way of Unix internet samurai cand.scient CISSP h...@krugercorp.dk +45 2678 1919 _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com