Skip to content

Instantly share code, notes, and snippets.

@yunhaom94
Created October 29, 2018 04:24
Show Gist options
  • Save yunhaom94/bab932903c3ca6d572144da00deb46bb to your computer and use it in GitHub Desktop.
Save yunhaom94/bab932903c3ca6d572144da00deb46bb to your computer and use it in GitHub Desktop.
pc2@pc2-VirtualBox:~/FMKe$ rebar3 shell --name fmke@127.0.0.1
===> Verifying dependencies...
===> Plugin meck does not export init/1. It will not be used.
===> Plugin protobuffs does not export init/1. It will not be used.
===> Upgrading riak_pb ({pkg,<<"riak_pb">>,<<"2.3.2">>,
<<"48FFBF66DBB3F136AB9A7134BAC4E496754BAA5EF58C4F50A61326736D996390">>})
===> Version cached at /home/pc2/.cache/rebar3/hex/default/packages/riak_pb-2.3.2.tar is up to date, reusing it
===> Package <<"header_generator">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /home/pc2/.cache/rebar3/hex/default/registry
===> Generating package index...
===> Writing index to /home/pc2/.cache/rebar3/hex/default/packages.idx
===> Plugin header_generator not available. It will not be used.
===> Package <<"eqc_resolver">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Writing registry to /home/pc2/.cache/rebar3/hex/default/registry
===> Generating package index...
===> Writing index to /home/pc2/.cache/rebar3/hex/default/packages.idx
===> Plugin eqc_resolver not available. It will not be used.
===> Compiling riak_pb
===> Compiling riak_client
===> Compiling ranch
===> Compiling goldrush
===> Compiling lager
===> Compiling antidote_pb_codec
===> Compiling antidotec_pb
===> Compiling poolboy
===> Compiling cowboy
===> Compiling jsx
===> Compiling eredis
===> Compiling eredis_cluster
===> Compiling fmke
Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [hipe]
Eshell V10.1 (abort with ^G)
(fmke@127.0.0.1)1> ===> The rebar3 shell is a development tool; to deploy applications in production, consider using releases (http://www.rebar3.org/docs/releases)
00:21:01.121 [info] fmke option 'adapter' read from defaults, set to fmke_pt_adapter
00:21:01.122 [info] fmke option 'connection_pool_size' read from config_file, set to 30
00:21:01.122 [info] fmke option 'database_addresses' read from config_file, set to ["127.0.0.1"]
00:21:01.123 [info] fmke option 'database_ports' read from config_file, set to [8087]
00:21:01.123 [info] fmke option 'http_port' read from config_file, set to 9090
00:21:01.123 [info] fmke option 'target_database' read from config_file, set to riak
00:21:01.123 [info] fmke option 'data_model' read from defaults, set to non_nested
00:21:01.123 [info] fmke option 'optimized_driver' read from defaults, set to true
00:21:01.147 [info] fmke will use the fmke_pt_adapter adapter
===> Booted runtime_tools
===> Booted tools
===> Booted poolboy
===> Booted syntax_tools
===> Booted compiler
===> Booted goldrush
===> Booted lager
===> Booted cowlib
===> Booted ranch
===> Booted cowboy
===> Booted jsx
===> Booted fmke
=ERROR REPORT==== 29-Oct-2018::00:21:29.174058 ===
** Generic server fmke_driver_opt_riak_kv terminating
** Last message in was {create,patient,
[970001,"bz3ZBNz/SH7NrMEE7BMd11QlRrrvmG+EUqw=",
"sD3jDwdWVdccHMrVW2pRhsAi8OsaMPhnzqZwylM="]}
** When Server state == {}
** Reason for termination ==
** {{case_clause,{error,<<"Error no bucket type `<<\"maps\">>`">>}},
[{fmke_driver_opt_riak_kv,check_key,4,
[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,327}]},
{fmke_driver_opt_riak_kv,handle_call,3,
[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,210}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}
** Client fmke_pt_adapter stacktrace
** [{gen,do_call,4,[{file,"gen.erl"},{line,169}]},
{gen_server,call,2,[{file,"gen_server.erl"},{line,211}]},
{fmke_pt_adapter,handle_call,3,
[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_pt_adapter.erl"},
{line,63}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]
00:21:29.174 [error] gen_server fmke_driver_opt_riak_kv terminated with reason: no case clause matching {error,<<"Error no bucket type `<<\"maps\">>`">>} in fmke_driver_opt_riak_kv:check_key/4 line 327
=CRASH REPORT==== 29-Oct-2018::00:21:29.221510 ===
crasher:
initial call: fmke_driver_opt_riak_kv:init/1
pid: <0.829.0>
registered_name: fmke_driver_opt_riak_kv
exception error: no case clause matching {error,
<<"Error no bucket type `<<\"maps\">>`">>}
in function fmke_driver_opt_riak_kv:check_key/4 (/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl, line 327)
in call from fmke_driver_opt_riak_kv:handle_call/3 (/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl, line 210)
in call from gen_server:try_handle_call/4 (gen_server.erl, line 661)
in call from gen_server:handle_msg/6 (gen_server.erl, line 690)
ancestors: [fmke_setup_sup,fmke_sup,<0.810.0>]
message_queue_len: 0
messages: []
links: [<0.827.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 27
reductions: 61870
neighbours:
=SUPERVISOR REPORT==== 29-Oct-2018::00:21:29.236952 ===
supervisor: {local,fmke_setup_sup}
errorContext: child_terminated
reason: {{case_clause,{error,<<"Error no bucket type `<<\"maps\">>`">>}},
[{fmke_driver_opt_riak_kv,check_key,4,
[{file,
"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,327}]},
{fmke_driver_opt_riak_kv,handle_call,3,
[{file,
"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,210}]},
{gen_server,try_handle_call,4,
[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,249}]}]}
offender: [{pid,<0.829.0>},
{id,driver},
{mfargs,{fmke_driver_opt_riak_kv,start,[non_nested]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=ERROR REPORT==== 29-Oct-2018::00:21:29.237459 ===
** Generic server fmke_pt_adapter terminating
** Last message in was {create_patient,970001,
"bz3ZBNz/SH7NrMEE7BMd11QlRrrvmG+EUqw=",
"sD3jDwdWVdccHMrVW2pRhsAi8OsaMPhnzqZwylM="}
** When Server state == fmke_driver_opt_riak_kv
** Reason for termination ==
** {{{{case_clause,{error,<<"Error no bucket type `<<\"maps\">>`">>}},
[{fmke_driver_opt_riak_kv,check_key,4,
[{file,
"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,327}]},
{fmke_driver_opt_riak_kv,handle_call,3,
[{file,
"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},
{line,210}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]},
{gen_server,call,
[fmke_driver_opt_riak_kv,
{create,patient,
[970001,"bz3ZBNz/SH7NrMEE7BMd11QlRrrvmG+EUqw=",
"sD3jDwdWVdccHMrVW2pRhsAi8OsaMPhnzqZwylM="]}]}},
[{gen_server,call,2,[{file,"gen_server.erl"},{line,215}]},
{fmke_pt_adapter,handle_call,3,
[{file,
"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_pt_adapter.erl"},
{line,63}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}
** Client fmke stacktrace
** [{gen,do_call,4,[{file,"gen.erl"},{line,169}]},
{gen_server,call,2,[{file,"gen_server.erl"},{line,211}]},
{fmke,handle_call,3,
[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke.erl"},
{line,79}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]
=SUPERVISOR REPORT==== 29-Oct-2018::00:21:29.242982 ===
supervisor: {<0.835.0>,poolboy_sup}
errorContext: shutdown_error
reason: noproc
offender: [{nb_children,1},
{id,fmke_db_connection},
{mfargs,
{fmke_db_connection,start_link,
[[{client_lib,riakc_pb_socket},
{host,"127.0.0.1"},
{port,8087}]]}},
{restart_type,temporary},
{shutdown,5000},
{child_type,worker}]
=SUPERVISOR REPORT==== 29-Oct-2018::00:21:29.246098 ===
supervisor: {local,fmke_sup}
errorContext: child_terminated
reason: {shutdown,
{gen_server,call,
[fmke_pt_adapter,
{create_patient,970001,
"bz3ZBNz/SH7NrMEE7BMd11QlRrrvmG+EUqw=",
"sD3jDwdWVdccHMrVW2pRhsAi8OsaMPhnzqZwylM="}]}}
offender: [{pid,<0.826.0>},
{id,fmke},
{mfargs,{fmke,start_link,[[fmke_pt_adapter]]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
00:21:29.222 [error] CRASH REPORT Process fmke_driver_opt_riak_kv with 0 neighbours crashed with reason: no case clause matching {error,<<"Error no bucket type `<<\"maps\">>`">>} in fmke_driver_opt_riak_kv:check_key/4 line 327
00:21:29.237 [error] Supervisor fmke_setup_sup had child driver started with fmke_driver_opt_riak_kv:start(non_nested) at <0.829.0> exit with reason no case clause matching {error,<<"Error no bucket type `<<\"maps\">>`">>} in fmke_driver_opt_riak_kv:check_key/4 line 327 in context child_terminated
00:21:29.238 [error] gen_server fmke_pt_adapter terminated with reason: {{{case_clause,{error,<<"Error no bucket type `<<\"maps\">>`">>}},[{fmke_driver_opt_riak_kv,check_key,4,[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},{line,327}]},{fmke_driver_opt_riak_kv,handle_call,3,[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},{line,210}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},{proc_lib,init_p_do_apply,3,[{file,...},...]}]},...} in gen_server:call/2 line 215
00:21:29.245 [error] CRASH REPORT Process fmke_pt_adapter with 0 neighbours exited with reason: {{{case_clause,{error,<<"Error no bucket type `<<\"maps\">>`">>}},[{fmke_driver_opt_riak_kv,check_key,4,[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},{line,327}]},{fmke_driver_opt_riak_kv,handle_call,3,[{file,"/home/pc2/FMKe/_build/default/lib/fmke/src/fmke_driver_opt_riak_kv.erl"},{line,210}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,661}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,690}]},{proc_lib,init_p_do_apply,3,[{file,...},...]}]},...} in gen_server:call/2 line 215
00:21:29.245 [error] Supervisor {<0.835.0>,poolboy_sup} had child fmke_db_connection started with fmke_db_connection:start_link([{client_lib,riakc_pb_socket},{host,"127.0.0.1"},{port,8087}]) at undefined exit with reason noproc in context shutdown_error
00:21:29.246 [error] Supervisor fmke_sup had child fmke started with fmke:start_link([fmke_pt_adapter]) at <0.826.0> exit with reason {shutdown,{gen_server,call,[fmke_pt_adapter,{create_patient,970001,"bz3ZBNz/SH7NrMEE7BMd11QlRrrvmG+EUqw=","sD3jDwdWVdccHMrVW2pRhsAi8OsaMPhnzqZwylM="}]}} in context child_terminated
00:21:29.246 [info] fmke will use the fmke_pt_adapter adapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment