Skip to content

Instantly share code, notes, and snippets.

@colindensem
Created December 14, 2011 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colindensem/1478292 to your computer and use it in GitHub Desktop.
Save colindensem/1478292 to your computer and use it in GitHub Desktop.
RIAK conn problem
[{boss, [
{applications, [talk_mountains]},
{db_host, "192.168.1.178"},
{db_port, 8087},
{db_adapter, riak},
{db_database, 'tm_dev'},
{log_dir, "log"},
{server, mochiweb},
{port, 8001},
{session_adapter, mock},
{session_key, "_boss_session"},
{session_exp_time, 525600}
]},
{ talk_mountains, [
{base_url, "/"}
]}
].
=ERROR REPORT==== 14-Dec-2011::20:14:14 ===
** Generic server <0.71.0> terminating
** Last message in was {tcp_closed,#Port<0.1479>}
** When Server state == {state,"192.168.1.178",8087,false,false,undefined,
undefined,
{[],[]},
1,[],infinity,100}
** Reason for termination ==
** disconnected
=CRASH REPORT==== 14-Dec-2011::20:14:14 ===
crasher:
initial call: riakc_pb_socket:init/1
pid: <0.71.0>
registered_name: []
exception exit: disconnected
in function gen_server:terminate/6
ancestors: [riakpool_connection_sup,riakpool_sup,<0.67.0>]
messages: []
links: [<0.69.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 489
neighbours:
=ERROR REPORT==== 14-Dec-2011::20:14:14 ===
** Generic server boss_db terminating
** Last message in was {find,book,[],all,0,id,str_ascending}
** When Server state == {state,boss_db_adapter_riak,undefined,[],
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
false,60,db,0}
** Reason for termination ==
** {{badmatch,{ok,{error,disconnected}}},
[{boss_db_adapter_riak,find,7},
{boss_db_controller,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
=CRASH REPORT==== 14-Dec-2011::20:14:14 ===
crasher:
initial call: boss_db_controller:init/1
pid: <0.63.0>
registered_name: boss_db
exception exit: {{badmatch,{ok,{error,disconnected}}},
[{boss_db_adapter_riak,find,7},
{boss_db_controller,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:terminate/6
ancestors: [boss_db_sup,boss_web,boss_sup,<0.58.0>]
messages: []
links: [<0.62.0>,<0.466.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 24
reductions: 545
neighbours:
neighbour: [{pid,<0.466.0>},
{registered_name,re_cache},
{initial_call,{erlang,apply,2}},
{current_function,{inflector,re_cache_loop,1}},
{ancestors,[]},
{messages,[]},
{links,[<0.63.0>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,377},
{stack_size,4},
{reductions,154}]
=SUPERVISOR REPORT==== 14-Dec-2011::20:14:14 ===
Supervisor: {local,riakpool_connection_sup}
Context: child_terminated
Reason: disconnected
Offender: [{pid,<0.71.0>},
{name,connections},
{mfargs,{riakc_pb_socket,start_link,undefined}},
{restart_type,temporary},
{shutdown,brutal_kill},
{child_type,worker}]
=SUPERVISOR REPORT==== 14-Dec-2011::20:14:14 ===
Supervisor: {local,boss_db_sup}
Context: child_terminated
Reason: {{badmatch,{ok,{error,disconnected}}},
[{boss_db_adapter_riak,find,7},
{boss_db_controller,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,<0.63.0>},
{name,db_controller},
{mfargs,
{boss_db_controller,start_link,
[[{adapter,boss_db_adapter_riak},
{cache_enable,false},
{shards,[]},
{db_database,tm_dev},
{db_host,"192.168.1.178"},
{db_port,8087}]]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=ERROR REPORT==== 14-Dec-2011::20:14:14 ===
{{{badmatch,{ok,{error,disconnected}}},
[{boss_db_adapter_riak,find,7},
{boss_db_controller,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]},
{gen_server,call,[boss_db,{find,book,[],all,0,id,str_ascending},30000]}}
=ERROR REPORT==== 14-Dec-2011::20:14:14 ===
GET /home/list [talk_mountains] 500 10ms
=SUPERVISOR REPORT==== 14-Dec-2011::20:14:14 ===
Supervisor: {local,riakpool_sup}
Context: child_terminated
Reason: normal
Offender: [{pid,<0.70.0>},
{name,riakpool},
{mfargs,{riakpool,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 14-Dec-2011::20:14:14 ===
supervisor: {local,riakpool_sup}
started: [{pid,<0.468.0>},
{name,riakpool_connection_sup},
{mfargs,{riakpool_connection_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,supervisor}]
=PROGRESS REPORT==== 14-Dec-2011::20:14:14 ===
supervisor: {local,riakpool_sup}
started: [{pid,<0.469.0>},
{name,riakpool},
{mfargs,{riakpool,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 14-Dec-2011::20:14:14 ===
supervisor: {local,boss_db_sup}
started: [{pid,<0.467.0>},
{name,db_controller},
{mfargs,
{boss_db_controller,start_link,
[[{adapter,boss_db_adapter_riak},
{cache_enable,false},
{shards,[]},
{db_database,tm_dev},
{db_host,"192.168.1.178"},
{db_port,8087}]]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=ERROR REPORT==== 14-Dec-2011::20:16:11 ===
** Generic server <0.3199.20> terminating
** Last message in was {tcp,#Port<0.89757>,
[23|
<<10,181,1,131,108,0,0,0,3,104,2,100,0,6,105,
110,112,117,116,115,104,4,100,0,6,109,111,100,
102,117,110,100,0,11,114,105,97,107,95,115,
101,97,114,99,104,100,0,13,109,97,112,114,101,
100,95,115,101,97,114,99,104,108,0,0,0,2,107,
0,5,98,111,111,107,115,106,106,104,2,100,0,5,
113,117,101,114,121,108,0,0,0,1,104,4,100,0,6,
114,101,100,117,99,101,104,3,100,0,6,109,111,
100,102,117,110,100,0,17,114,105,97,107,95,
107,118,95,109,97,112,114,101,100,117,99,101,
100,0,15,114,101,100,117,99,101,95,105,100,
101,110,116,105,116,121,100,0,4,110,111,110,
101,100,0,4,116,114,117,101,106,104,2,100,0,7,
116,105,109,101,111,117,116,98,0,0,234,96,106,
18,27,97,112,112,108,105,99,97,116,105,111,
110,47,120,45,101,114,108,97,110,103,45,98,
105,110,97,114,121>>]}
** When Server state == {state,#Port<0.89757>,
{riak_client,'riak@192.168.1.178',
<<6,219,218,32>>},
undefined,undefined}
** Reason for termination ==
** {{badmatch,{error,{lucene_parse,"syntax error before: "}}},
[{riak_search_client,parse_query,3},
{riak_search,mapred_search,3},
{riak_kv_pb_socket,process_message,2},
{riak_kv_pb_socket,handle_info,2},
{gen_server2,handle_msg,7},
{proc_lib,init_p_do_apply,3}]}
=CRASH REPORT==== 14-Dec-2011::20:16:11 ===
crasher:
initial call: gen:init_it/6
pid: <0.3199.20>
registered_name: []
exception exit: {{badmatch,{error,{lucene_parse,"syntax error before: "}}},[{riak_search_client,parse_query,3},{riak_search,mapred_search,3},{riak_kv_pb_socket,process_message,2},{riak_kv_pb_socket,handle_info,2},{gen_server2,handle_msg,7},{proc_lib,init_p_do_apply,3}]}
in function gen_server2:terminate/6
in call from proc_lib:init_p_do_apply/3
ancestors: [riak_kv_pb_socket_sup,riak_kv_sup,<0.134.0>]
messages: []
links: [<0.137.0>,#Port<0.89757>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 24
reductions: 521
neighbours:
=SUPERVISOR REPORT==== 14-Dec-2011::20:16:11 ===
Supervisor: {local,riak_kv_pb_socket_sup}
Context: child_terminated
Reason: {{badmatch,{error,{lucene_parse,"syntax error before: "}}},[{riak_search_client,parse_query,3},{riak_search,mapred_search,3},{riak_kv_pb_socket,process_message,2},{riak_kv_pb_socket,handle_info,2},{gen_server2,handle_msg,7},{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,<0.3199.20>},{name,undefined},{mfa,{riak_kv_pb_socket,start_link,[]}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment