Aestratum_client can not work properly

It’s very nice to see the Aestratum_client, everything else works fine ,until:

make console

The Aestratum_client is connected with local node, but no miner is working. What should I do?

Regards,

Liu Yang

[email protected]:~/ae/miner/aestratum_client$ netstat -ano|grep 9999
tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 关闭 (0.00/0/0)
tcp 0 0 127.0.0.1:9999 127.0.0.1:57553 ESTABLISHED 保持连接 (6858.28/0/0)
tcp 0 0 127.0.0.1:57553 127.0.0.1:9999 ESTABLISHED 保持连接 (6858.28/0/0)

[email protected]:~/ae/miner/aestratum_client$ cat aestratum_client.yaml
connection:
transport: tcp
host: “localhost”
port: 9999
req_timeout: 60
req_retries: 30
user:
account: “ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”
worker: “worker1”
miners:
- exec: “mean29-generic”
exec_group: “aecuckoo”
extra_args: “”
hex_enc_hdr: false
repeats: 100
edge_bits: 29

[email protected]:~/ae/miner/aestratum_client$ tail -f log/aestratum_client.log
2019-07-16 19:29:19.665 [warning] <0.297.0>@aestratum_client_handler:result:145 socket_send, reason: closed, data: <<"{“id”:0,“jsonrpc”:“2.0”,“method”:“mining.configure”,“params”:[]}\n">>
2019-07-16 19:29:19.665 [critical] <0.297.0>@aestratum_client_session:close_session:376 close_session
2019-07-16 19:29:19.673 [info] <0.304.0>@aestratum_client_handler:init:67 socket_connected, transport: gen_tcp, host: <<“localhost”>>, port: 9999
2019-07-16 19:29:19.673 [info] <0.304.0>@aestratum_client_session:send_configure_req:326 send_configure_req, req: #{id => 0,method => configure,params => [],type => req}
2019-07-16 19:29:19.674 [info] <0.304.0>@aestratum_client_session:recv_rsp:195 recv_configure_rsp, rsp: #{id => 0,method => configure,result => [],type => rsp}
2019-07-16 19:29:19.674 [info] <0.304.0>@aestratum_client_session:send_subscribe_req:336 send_subscribe_req, req: #{host => <<“localhost”>>,id => 1,method => subscribe,port => 9999,session_id => null,type => req,user_agent => <<“aeclient/1.0.0”>>}
2019-07-16 19:29:19.686 [info] <0.304.0>@aestratum_client_session:recv_rsp:199 recv_subscribe_rsp, rsp: #{id => 1,method => subscribe,result => [null,<<“45c9a6fe”>>],type => rsp}
2019-07-16 19:29:19.688 [info] <0.304.0>@aestratum_client_session:send_authorize_req:345 send_authorize_req, req: #{id => 2,method => authorize,password => null,type => req,user => {<<“ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”>>,<<“worker1”>>}}
2019-07-16 19:29:19.692 [info] <0.304.0>@aestratum_client_session:recv_rsp:208 recv_authorize_rsp, rsp: #{id => 2,method => authorize,result => true,type => rsp}
2019-07-16 19:29:19.693 [info] <0.304.0>@aestratum_client_session:recv_ntf:230 recv_set_target_ntf, ntf: #{id => null,method => set_target,target => <<“fffefffffffffffffffffffffffffffffffffffffffffffffffffffffffffc18”>>,type => ntf}
2019-07-16 19:32:46.795 [info] <0.297.0>@aestratum_client_handler:init:67 socket_connected, transport: gen_tcp, host: <<“localhost”>>, port: 9999
2019-07-16 19:32:46.798 [info] <0.297.0>@aestratum_client_session:send_configure_req:326 send_configure_req, req: #{id => 0,method => configure,params => [],type => req}
2019-07-16 19:32:46.816 [warning] <0.297.0>@aestratum_client_handler:result:145 socket_send, reason: closed, data: <<"{“id”:0,“jsonrpc”:“2.0”,“method”:“mining.configure”,“params”:[]}\n">>
2019-07-16 19:32:46.816 [critical] <0.297.0>@aestratum_client_session:close_session:376 close_session
2019-07-16 19:32:46.825 [info] <0.304.0>@aestratum_client_handler:init:67 socket_connected, transport: gen_tcp, host: <<“localhost”>>, port: 9999
2019-07-16 19:32:46.825 [info] <0.304.0>@aestratum_client_session:send_configure_req:326 send_configure_req, req: #{id => 0,method => configure,params => [],type => req}
2019-07-16 19:32:46.826 [info] <0.304.0>@aestratum_client_session:recv_rsp:195 recv_configure_rsp, rsp: #{id => 0,method => configure,result => [],type => rsp}
2019-07-16 19:32:46.826 [info] <0.304.0>@aestratum_client_session:send_subscribe_req:336 send_subscribe_req, req: #{host => <<“localhost”>>,id => 1,method => subscribe,port => 9999,session_id => null,type => req,user_agent => <<“aeclient/1.0.0”>>}
2019-07-16 19:32:46.835 [info] <0.304.0>@aestratum_client_session:recv_rsp:199 recv_subscribe_rsp, rsp: #{id => 1,method => subscribe,result => [null,<<“1b551c91”>>],type => rsp}
2019-07-16 19:32:46.836 [info] <0.304.0>@aestratum_client_session:send_authorize_req:345 send_authorize_req, req: #{id => 2,method => authorize,password => null,type => req,user => {<<“ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”>>,<<“worker1”>>}}
2019-07-16 19:32:46.839 [info] <0.304.0>@aestratum_client_session:recv_rsp:208 recv_authorize_rsp, rsp: #{id => 2,method => authorize,result => true,type => rsp}
2019-07-16 19:32:46.840 [info] <0.304.0>@aestratum_client_session:recv_ntf:230 recv_set_target_ntf, ntf: #{id => null,method => set_target,target => <<“fffefffffffffffffffffffffffffffffffffffffffffffffffffffffffffc18”>>,type => ntf}

[email protected]:~/ae/miner/aestratum_client$ tail -f log/aeminer_pow_cuckoo.log
2019-07-16 18:51:38.091 [debug] <0.309.0>@aeminer_pow_cuckoo:generate_from_hash:193 Generating solution for data hash <<52,197,96,41,10,42,67,165,208,218,250,0,87,245,104,143,255,229,221,147,5,1,40,44,21,39,223,119,236,232,213,223>> and nonce 16116959007579450438 with target 553713662.
2019-07-16 18:51:38.096 [info] <0.309.0>@aeminer_pow_cuckoo:generate_int:269 Executing cmd ‘mean29-generic -h NMVgKQoqQ6XQ2voAV/Voj//l3ZMFASgsFSffd+zo1d8= -n 16116959007579450438 -r 100 -t 2’
2019-07-16 18:51:38.097 [debug] <0.309.0>@aeminer_pow_cuckoo:exec_run:565 External mining process started with OS pid 64190
2019-07-16 18:52:08.078 [debug] <0.309.0>@aeminer_pow_cuckoo:stop_execution:533 Mining OS process 64190 stopped
2019-07-16 19:09:22.342 [debug] <0.307.0>@aeminer_pow_cuckoo:generate_from_hash:193 Generating solution for data hash <<41,101,221,242,213,184,1,139,206,52,51,72,179,181,210,23,230,160,238,2,66,190,116,118,63,3,38,108,29,179,219,26>> and nonce 14413884117190583924 with target 553713662.
2019-07-16 19:09:22.348 [info] <0.307.0>@aeminer_pow_cuckoo:generate_int:269 Executing cmd ‘mean29-generic -h KWXd8tW4AYvONDNIs7XSF+ag7gJCvnR2PwMmbB2z2xo= -n 14413884117190583924 -r 100’
2019-07-16 19:09:22.348 [debug] <0.307.0>@aeminer_pow_cuckoo:exec_run:565 External mining process started with OS pid 64476
2019-07-16 19:09:52.330 [debug] <0.307.0>@aeminer_pow_cuckoo:stop_execution:533 Mining OS process 64476 stopped
2019-07-16 19:33:21.965 [debug] <0.306.0>@aeminer_pow_cuckoo:generate_from_hash:193 Generating solution for data hash <<184,134,25,141,161,244,249,177,104,145,2,85,230,141,41,139,130,159,213,235,123,112,33,51,89,166,153,227,118,227,230,13>> and nonce 10456326010054257214 with target 553713662.
2019-07-16 19:33:21.968 [info] <0.306.0>@aeminer_pow_cuckoo:generate_int:269 Executing cmd ‘mean29-generic -h uIYZjaH0+bFokQJV5o0pi4Kf1et7cCEzWaaZ43bj5g0= -n 10456326010054257214 -r 100’
2019-07-16 19:33:21.968 [debug] <0.306.0>@aeminer_pow_cuckoo:exec_run:565 External mining process started with OS pid 65414
2019-07-16 19:33:51.948 [debug] <0.306.0>@aeminer_pow_cuckoo:stop_execution:533 Mining OS process 65414 stopped

[email protected]:~/ae/miner/aestratum_client$ tail -f log/crash.log
Context: child_terminated
Reason: normal
Offender: [{pid,<0.297.0>},{id,aestratum_client_handler},{mfargs,{aestratum_client_handler,start_link,[#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => [],transport => tcp},miners_cfg => [#{edge_bits => 29,exec => <<“mean29-generic”>>,exec_group => <<“aecuckoo”>>,extra_args => <<>>,hex_enc_hdr => false,instances => undefined,repeats => 100}],user_cfg => #{account => <<“ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”>>,password => null,worker => <<“worker1”>>}}]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]

2019-07-16 19:29:19 =SUPERVISOR REPORT====
Supervisor: {local,aestratum_client_sup}
Context: child_terminated
Reason: normal
Offender: [{pid,<0.297.0>},{id,aestratum_client_handler},{mfargs,{aestratum_client_handler,start_link,[#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => [],transport => tcp},miners_cfg => [#{edge_bits => 29,exec => <<“mean29-generic”>>,exec_group => <<“aecuckoo”>>,extra_args => <<>>,hex_enc_hdr => false,instances => undefined,repeats => 100}],user_cfg => #{account => <<“ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”>>,password => null,worker => <<“worker1”>>}}]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]

2019-07-16 19:32:46 =SUPERVISOR REPORT====
Supervisor: {local,aestratum_client_sup}
Context: child_terminated
Reason: normal
Offender: [{pid,<0.297.0>},{id,aestratum_client_handler},{mfargs,{aestratum_client_handler,start_link,[#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => [],transport => tcp},miners_cfg => [#{edge_bits => 29,exec => <<“mean29-generic”>>,exec_group => <<“aecuckoo”>>,extra_args => <<>>,hex_enc_hdr => false,instances => undefined,repeats => 100}],user_cfg => #{account => <<“ak_2UqKYBBgVWfBeFYdn5sBS75B1cfLMPFSCy95xQoRo9SKNvvLgb”>>,password => null,worker => <<“worker1”>>}}]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]

[email protected]:~/ae/miner/aestratum_client$ tail -f log/error.log
2019-07-16 19:24:36.980 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 600000,socket_opts => …,…},…}) at <0.304.0> exit with reason reached_max_restart_intensity in context shutdown
2019-07-16 19:25:19.671 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated
2019-07-16 19:25:19.691 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.304.0> exit with reason normal in context child_terminated
2019-07-16 19:25:19.691 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.304.0> exit with reason reached_max_restart_intensity in context shutdown
2019-07-16 19:25:51.238 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated
2019-07-16 19:25:51.260 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.304.0> exit with reason normal in context child_terminated
2019-07-16 19:25:51.260 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.304.0> exit with reason reached_max_restart_intensity in context shutdown
2019-07-16 19:27:45.517 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated
2019-07-16 19:28:42.450 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated
2019-07-16 19:29:19.672 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated
2019-07-16 19:32:46.825 [error] <0.296.0> Supervisor aestratum_client_sup had child aestratum_client_handler started with aestratum_client_handler:start_link(#{conn_cfg => #{host => <<“localhost”>>,port => 9999,req_retries => 30,req_timeout => 60000,socket_opts => …,…},…}) at <0.297.0> exit with reason normal in context child_terminated