Check that you have your ports correct. ┬áIf you connect your client up to the ring distribution ports you can get these kinds of errors.<div><br></div><div>-mox<br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 10:29 PM, Mikhail Kuznetsov <span dir="ltr"><<a href="mailto:kuznetsov.m.yu@gmail.com" target="_blank">kuznetsov.m.yu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><p style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;font-weight:normal;padding:0px;vertical-align:baseline;clear:both;line-height:18px;text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 1em;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;word-wrap:break-word;border:0px;background-repeat:initial initial;word-spacing:0px">
I deploy a test stand for server app demo for clients. Riak 1.2.0 on debian compiled and run with erlang 15b01. Client uses riak erlang protobuf client 1.2. I have to use only one node with almost default config. For storage backend I use eleveldb_backend (we use second indexing very often). After several dais of mostly standby wiating (demo application showed once in day or two) riak server start dropping connections (erlang pb client is not notified and show that connection is ok). I look at riak log and find that entries:</p>
<p style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;font-weight:normal;padding:0px;vertical-align:baseline;clear:both;line-height:18px;text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 1em;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;word-wrap:break-word;border:0px;background-repeat:initial initial;word-spacing:0px">
2012-09-20 00:10:10.976 [error] <0.803.0>@riak_core_vnode:handle_info:510 296867520082839655260123481645494988367611297792 riak_kv_vnode worker pool crashed {timeout,{gen_server,call,[<0.819.0>,{work,<0.806.0>,{fold,#Fun,#Fun},{raw,59205031,<0.28969.11>}}]}} 2012-09-20 00:10:10.976 [error] <0.862.0>@riak_core_vnode:handle_info:510 365375409332725729550921208179070754913983135744 riak_kv_vnode worker pool crashed {timeout,{gen_fsm,sync_send_event,[<0.866.0>,{checkout,false,5000},5000]}}</p>
<p style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;font-weight:normal;padding:0px;vertical-align:baseline;clear:both;line-height:18px;text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 1em;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;word-wrap:break-word;border:0px;background-repeat:initial initial;word-spacing:0px">
...</p><p style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;font-weight:normal;padding:0px;vertical-align:baseline;clear:both;line-height:18px;text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 1em;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;word-wrap:break-word;border:0px;background-repeat:initial initial;word-spacing:0px">
2012-09-20 00:17:14.234 [error] <0.1645.0> CRASH REPORT Process <0.1645.0> with 0 neighbours exited with reason: {timeout,{gen_fsm,sync_send_event,[<0.1646.0>,{checkout,false,5000},5000]}} in gen_fsm:terminate/7 line 611 2012-09-20 00:17:14.639 [error] <0.2337.0>@riak_api_pb_server:handle_info:171 Unrecognized message {pipe_log,#Ref<0.0.17.19772>,index,{trace,[error],{vnode,{fitting_died,1118962191081472546749696200048404186924073353216}}}} 2012-09-20 00:17:15.106 [error] <0.1596.0> gen_fsm <0.1596.0> in state ready terminated with reason: {timeout,{gen_fsm,sync_send_event,[<0.1597.0>,{checkout,false,5000},5000]}}</p>
<p style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;font-weight:normal;padding:0px;vertical-align:baseline;clear:both;line-height:18px;text-transform:none;font-size:14px;white-space:normal;margin:0px 0px 1em;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;word-wrap:break-word;border:0px;background-repeat:initial initial;word-spacing:0px">
If client make request it gets {error, disconnected}. If we try reconnect it successfully connected and work.</p><p style="border-bottom-width:0px;text-indent:0px;text-align:left;border-style:initial;font-weight:normal;clear:both;line-height:18px;margin-right:0px;font-size:14px;white-space:normal;border-right-width:0px;word-wrap:break-word;border-left-width:0px;word-spacing:0px;padding-left:0px;padding-right:0px;padding-top:0px;letter-spacing:normal;font-variant:normal;font-style:normal;margin-bottom:1em;border-color:initial;padding-bottom:0px;border-top-width:0px;vertical-align:baseline;text-transform:none;margin-left:0px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin-top:0px">
What should I change in config file or tune client connection to make it work stable? I fully understand that ring is good and haproxy can check nodes(and maybe break connection in this case), but I have only one node for riak on demo server and haproxy is not installed. Can you advise something?</p>
<div>
<div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div><div><br></div></div></div></span></div></span></div>
</div>
<br></div><br>_______________________________________________<br>
riak-users mailing list<br>
<a href="mailto:riak-users@lists.basho.com">riak-users@lists.basho.com</a><br>
<a href="http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com" target="_blank">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com</a><br>
<br></blockquote></div><br></div>