Failed to boot aestratum_client for reason {{shutdown, <...>}}

Hi everyone,

I get this error when I try to run the Aestratum:

ubuntu@aeternity-pool:~ cd aestratum_client ubuntu@aeternity-pool:~/aestratum_client make console
./rebar3 as local shell
===> Verifying dependencies…
===> Analyzing applications…
===> Compiling aestratum_client
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]

Eshell V12.1.5 (abort with ^G)
1> 08:53:00.394 [debug] Lager installed handler lager_console_backend into lager_event
08:53:00.409 [debug] Lager installed handler {lager_file_backend,“log/error.log”} into lager_event
08:53:00.411 [debug] Lager installed handler error_logger_lager_h into error_logger
08:53:00.412 [debug] Lager installed handler {lager_file_backend,“log/aeminer_pow_cuckoo.log”} into aeminer_lager_event
08:53:00.413 [debug] Lager installed handler {lager_file_backend,“log/aestratum_client.log”} into aestratum_client_lager_event
08:53:00.808 [info] Searching for config file aestratum_client.{json,yaml} in directory /home/ubuntu/aestratum_client
08:53:00.808 [info] Reading config file /home/ubuntu/aestratum_client/aestratum_client.yaml
08:53:00.834 [info] validation: “/home/ubuntu/aestratum_client/aestratum_client.yaml”, result: [{ok,#{<<“connection”>> => #{<<“host”>> => <<“localhost”>>,<<“port”>> => 9999,<<“req_retries”>> => 3,<<“req_timeout”>> => 15,<<“transport”>> => <<“tcp”>>},<<“miners”>> => [#{<<“edge_bits”>> => 29,<<“exec”>> => <<“mean29-generic”>>,<<“exec_group”>> => <<“aecuckoo”>>,<<“extra_args”>> => <<>>,<<“hex_enc_hdr”>> => false,<<“repeats”>> => 100}],<<“user”>> => #{<<“account”>> => <<“ak_DummyPubKeyDoNotEverUse999999999999999999999999999”>>,<<“worker”>> => <<“worker1”>>}}}]
08:53:00.834 [info] Set config (aestratum_client): ‘$user_config’ = [{<<“connection”>>,[{<<“host”>>,<<“localhost”>>},{<<“port”>>,9999},{<<“req_retries”>>,3},{<<“req_timeout”>>,15},{<<“transport”>>,<<“tcp”>>}]},{<<“miners”>>,[{<<“edge_bits”>>,29},{<<“exec”>>,<<“mean29-generic”>>},{<<“exec_group”>>,<<“aecuckoo”>>},{<<“extra_args”>>,<<>>},{<<“hex_enc_hdr”>>,false},{<<“repeats”>>,100}]},{<<“user”>>,[{<<“account”>>,<<“ak_DummyPubKeyDoNotEverUse999999999999999999999999999”>>},{<<“worker”>>,<<“worker1”>>}]}]
08:53:00.834 [info] Set config (aestratum_client): ‘$user_map’ = #{<<“connection”>> => #{<<“host”>> => <<“localhost”>>,<<“port”>> => 9999,<<“req_retries”>> => 3,<<“req_timeout”>> => 15,<<“transport”>> => <<“tcp”>>},<<“miners”>> => [#{<<“edge_bits”>> => 29,<<“exec”>> => <<“mean29-generic”>>,<<“exec_group”>> => <<“aecuckoo”>>,<<“extra_args”>> => <<>>,<<“hex_enc_hdr”>> => false,<<“repeats”>> => 100}],<<“user”>> => #{<<“account”>> => <<“ak_DummyPubKeyDoNotEverUse999999999999999999999999999”>>,<<“worker”>> => <<“worker1”>>}}
08:53:00.834 [info] Set config (aestratum_client): connection_host = <<“localhost”>>
08:53:00.834 [info] Set config (aestratum_client): connection_port = 9999
08:53:00.834 [info] Set config (aestratum_client): connection_req_retries = 3
08:53:00.835 [info] Set config (aestratum_client): connection_req_timeout = 15
08:53:00.835 [info] Set config (aestratum_client): connection_transport = <<“tcp”>>
08:53:00.835 [info] Set config (aestratum_client): miners_edge_bits = 29
08:53:00.835 [info] Set config (aestratum_client): miners_exec = <<“mean29-generic”>>
08:53:00.835 [info] Set config (aestratum_client): miners_exec_group = <<“aecuckoo”>>
08:53:00.835 [info] Set config (aestratum_client): miners_extra_args = <<>>
08:53:00.835 [info] Set config (aestratum_client): miners_hex_enc_hdr = false
08:53:00.835 [info] Set config (aestratum_client): miners_repeats = 100
08:53:00.835 [info] Set config (aestratum_client): user_account = <<“ak_DummyPubKeyDoNotEverUse999999999999999999999999999”>>
08:53:00.835 [info] Set config (aestratum_client): user_worker = <<“worker1”>>
===> Booted runtime_tools
===> Booted sasl
===> Booted syntax_tools
===> Booted compiler
===> Booted goldrush
===> Booted lager
===> Booted yamerl
===> Failed to boot aestratum_client for reason {{shutdown,
{failed_to_start_child,
aestratum_client_handler,
{{badmatch,
{error,
econnrefused}},
[{aestratum_client_handler,
init,1,
[{file,
“/home/ubuntu/aestratum_client/src/aestratum_client_handler.erl”},
{line,66}]},
{gen_server,
init_it,2,
[{file,
“gen_server.erl”},
{line,423}]},
{gen_server,
init_it,6,
[{file,
“gen_server.erl”},
{line,390}]},
{proc_lib,
init_p_do_apply,
3,
[{file,
“proc_lib.erl”},
{line,
226}]}]}}},
{aestratum_client_app,
start,
[normal,]}}
08:53:00.851 [error] Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 3,req_timeout => 15000,socket_opts => …,…},…}) at undefined exit with reason no match of right hand value {error,econnrefused} in aestratum_client_handler:init/1 line 66 in context start_error
08:53:00.851 [error] CRASH REPORT Process <0.353.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,aestratum_client_handler,{{badmatch,{error,econnrefused}},[{aestratum_client_handler,init,1,[{file,"/home/ubuntu/aestratum_client/src/aestratum_client_handler.erl"},{line,66}]},{gen_server,init_it,2,[{file,“gen_server.erl”},{line,423}]},{gen_server,init_it,6,[{file,“gen_server.erl”},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}}},{aestratum_client_app,start,[normal,]}} in application_master:init/4 line 142
08:53:00.851 [info] Application aestratum_client exited with reason: {{shutdown,{failed_to_start_child,aestratum_client_handler,{{badmatch,{error,econnrefused}},[{aestratum_client_handler,init,1,[{file,"/home/ubuntu/aestratum_client/src/aestratum_client_handler.erl"},{line,66}]},{gen_server,init_it,2,[{file,“gen_server.erl”},{line,423}]},{gen_server,init_it,6,[{file,“gen_server.erl”},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}}},{aestratum_client_app,start,[normal,]}}
08:53:00.851 [info] Application aestratum_lib exited with reason: stopped
08:53:00.851 [info] Application aeminer exited with reason: stopped
08:53:00.851 [info] Application aecuckooprebuilt exited with reason: stopped
08:53:00.851 [info] Application aecuckoo exited with reason: stopped
08:53:00.851 [info] Application enacl exited with reason: stopped
08:53:00.851 [info] Application base58 exited with reason: stopped
08:53:00.851 [info] Application jesse exited with reason: stopped
08:53:00.851 [info] Application rfc3339 exited with reason: stopped
08:53:00.851 [info] Application jsx exited with reason: stopped
08:53:00.887 [debug] Lager installed handler lager_backend_throttle into lager_event

Could anyone help me figure this out? Thanks in advance! :slight_smile:

2 Likes