Hello Holger,

If you are modifying `cs_root_host` from the default, it must be set
to the fully qualified domain name (FQDN) of your Riak CS endpoint.
More details on this can be found in the Direct subsection of the
Proxy vs. Direct Riak CS documentation. [0]

If that doesn't resolve the issue, please send over the Riak, Riak CS,
and Stanchion app.config files and any associated log output.

--
Hector

[0] 
http://docs.basho.com/riakcs/latest/cookbooks/configuration/Configuring-Riak-CS/#Proxy-vs-Direct-Configuration

On Tue, Dec 17, 2013 at 6:22 AM, Holger Amberg <[email protected]> wrote:
> Hi,
>
> i am trying to install riak-cs according to your cookbook but i am now stuck
> at the admin user creation. I checked all config files, all ips do match
> against each other. All services responding to ping requests. I have no idea
> at the moment, maybe someone is able to assist me.
>
> cat /etc/riak-cs/app.config | grep anonymous
>               %% specifically dictates letting anonymous users to
>               {anonymous_user_creation, true},
>
> riak ping
> pong
> riak-cs ping
> pong
> stanchion ping
> pong
>
> curl -v -H 'Content-Type: application/json' -X POST
> http://***.22.***.70:8080/riak-cs/user --data
> '{"email":"[email protected]“, "name":"admin"}'
> * About to connect() to ***.22.***.70 port 8080 (#0)
> *   Trying ***.22.***.70...
> * connected
> * Connected to ***.22.***.70 (***.22.***.70) port 8080 (#0)
>> POST /riak-cs/user HTTP/1.1
>> User-Agent: curl/7.26.0
>> Host: ***.22.***.70:8080
>> Accept: */*
>> Content-Type: application/json
>> Content-Length: 58
>>
> * upload completely sent off: 58 out of 58 bytes
> * additional stuff not fine transfer.c:1037: 0 0
> * HTTP 1.1 or later with persistent connection, pipelining supported
> < HTTP/1.1 500 Internal Server Error
> < Vary: Accept
> < Server: Riak CS
> < Location: http://***.22.***.70:8080/riak-cs/user
> < Date: Tue, 17 Dec 2013 11:04:54 GMT
> < Content-Type: text/html
> < Content-Length: 170
> <
> * Connection #0 to host ***.22.***.70 left intact
> <html><head><title>500 Internal Server
> Error</title></head><body><h1>Internal Server Error</h1>The server
> encountered an error while processing this request</body></html>* Closing
> connection #0
>
> Error.log:
>
> 2013-12-17 12:12:02.160 [error] <0.123.0> Lager event handler
> error_logger_lager_h exited with reason
> {'EXIT',{{badmatch,["/riak-cs/user",{error,{error,function_clause,[{riak_cs_json,get,[{error,decode_failed},[{<<"name">>,<<"email">>}]],[{file,"src/riak_cs_json.erl"},{line,62}]},{riak_cs_wm_user,accept_json,2,[{file,"src/riak_cs_wm_user.erl"},{line,117}]},{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_decisio..."},...]},...]}},...]},…}}
>
> Thank you very much!
>
> --
> Holger
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to