Cloud 403在Riak CS中创建管理员用户时禁止

Cloud 403在Riak CS中创建管理员用户时禁止,cloud,storage,riak,cloud-storage,Cloud,Storage,Riak,Cloud Storage,我遵循指导原则,建立了一个匿名用户创建 cat /etc/riak-cs/app.config | grep anonymous_user_creation {anonymous_user_creation, true}, 并使用post请求创建管理员用户: curl-H'内容类型:application/json'\ -X POSThttp://localhost:8080/riak-cs/用户\ --数据“{”电子邮件“:”foobar@example.com“,“名称”:“管理员

我遵循指导原则,建立了一个匿名用户创建

 cat  /etc/riak-cs/app.config  | grep anonymous_user_creation
 {anonymous_user_creation, true},
并使用post请求创建管理员用户:

curl-H'内容类型:application/json'\ -X POST<代码>http://localhost:8080/riak-cs/用户\ --数据“{”电子邮件“:”foobar@example.com“,“名称”:“管理员用户”}”

答案总是这样

<?xml version="1.0" encoding="UTF-8"?><Error><Code>ServiceUnavailable</Code><Message>Please reduce your request rate.</Message><Resource>/riak-cs/user</Resource><RequestId></RequestId></Error>
无论我在请求之间等待多长时间(小时)

其他信息:

检查支柱ip是否正确:

root@q092:~# cat /etc/riak-cs/app.config | grep stanchion
              {stanchion_ip, "127.0.0.1"},
              {stanchion_port, 8085 },
              {stanchion_ssl, false },
              %% the admin credentials specified in the stanchion
root@q092:~# cat /etc/riak-cs/app.config | grep stanchion
              {stanchion_ip, "127.0.0.1"},
              {stanchion_port, 8085 },
              {stanchion_ssl, false },
              %% the admin credentials specified in the stanchion
root@q092:~# cat /etc/stanchion/app.config | grep stanchion
 {stanchion, [
                   {stanchion_ip, "127.0.0.1"},
                   {stanchion_port, 8085 } ,
                                            {"/var/log/stanchion/error.log", error, 10485760, "$D0", 5},
                                            {"/var/log/stanchion/console.log", info, 10485760, "$D0", 5}
          {crash_log, "/var/log/stanchion/crash.log"},
root@q092:~# cat /var/log/stanchion/error.log
平支柱:

root@q092:~# stanchion ping
pong
riak cs错误日志更有趣:

cat /var/log/riak-cs/error.log.0 
2013-06-14 19:41:22.285 [error] <0.131.0> CRASH REPORT Process <0.131.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 19:42:06.562 [error] <0.129.0> CRASH REPORT Process <0.129.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 19:43:55.024 [error] <0.131.0> CRASH REPORT Process <0.131.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 19:43:59.664 [error] <0.131.0> CRASH REPORT Process <0.131.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 20:00:46.381 [error] <0.131.0> CRASH REPORT Process <0.131.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 20:01:14.355 [error] <0.129.0> CRASH REPORT Process <0.129.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 20:02:03.254 [error] <0.131.0> CRASH REPORT Process <0.131.0> with 0 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6 line 320
2013-06-14 21:07:21.845 [error] <0.262.0> Supervisor poolboy_sup had child riak_cs_riakc_pool_worker started with riak_cs_riakc_pool_worker:start_link([{name,{local,bucket_list_pool}},{worker_module,riak_cs_riakc_pool_worker},{size,5},{max_overflow,...},...]) at undefined exit with reason shutdown in context shutdown_error
cat/var/log/riak cs/error.log.0
2013-06-14 19:41:22.285[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 19:42:06.562[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 19:43:55.024[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 19:43:59.664[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 20:00:46.381[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 20:01:14.355[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnrefused}:init_it/6第320行
2013-06-14 20:02:03.254[错误]0个邻居的崩溃报告进程退出,原因为:gen_服务器中的{tcp,econnreference}:init_it/6第320行
2013-06-14 21:07:21.845[错误]主管poolboy_sup让孩子riak_cs_riakc_pool_worker开始使用riak_cs_riakc_pool_worker:start_链接([{name,{local,bucket_list_pool},{worker_模块,riak_cs_riakc_pool_worker},{size,5},{max_overflow,},},},},},},},},},},},},},},},},}在未定义的出口处关闭上下文中出现错误

不幸的是,这个错误有点误导


用户创建是通过stanchion序列化的请求类型之一,当stanchion未运行或配置不正确时,会出现此错误

我和stanchion乒乓球似乎非常密切地遵循指示。还有哪些其他调试信息可用?在Riak CS启动之前,Riak和Stanchion是否都在Riak CS期望的端口上运行和侦听?似乎我错误配置了Riak后端。现在修复了它,感谢您的帮助和信息。{tcp,econnreference}表示某些内容未在预期的位置侦听。您是否已验证Riak正在侦听Riak CS配置为连接到的端口?