helium / miner

Miner for the helium blockchain
Apache License 2.0
609 stars 266 forks source link

Crashes when enabled ebus ( 2021.09.27.0_GA arm64) #1114

Closed sprhawk closed 2 years ago

sprhawk commented 2 years ago

the miner ( in docker image , 2021.09.27.0, on Raspberrypi 4B) keeps crashing when ebus enabled, but works when ebus disabled in docker.config

Exec: /usr/local/lib/erlang/erts-11.2.2.5/bin/erlexec -noinput +Bd -boot /opt/miner/releases/2021.09.27.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /usr/local/lib/erlang/lib -config /opt/miner/releases/2021.09.27.0/sys.config -args_file /opt/miner/releases/2021.09.27.0/vm.args -- foreground
Root: /opt/miner
/opt/miner
{"Kernel pid terminated",application_controller,"{application_start_failure,miner,{{shutdown,{failed_to_start_child,miner_restart_sup,{shutdown,{failed_to_start_child,miner_ebus,{'EXIT',{{badmatch,{error,no_access}},[{miner_ebus,start_link,2,[{file,\"miner_ebus.erl\"},{line,38}]},{supervisor,do_start_child_i,3,[{file,\"supervisor.erl\"},{line,385}]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,371}]},{supervisor,'-start_children/2-fun-0-',3,[{file,\"supervisor.erl\"},{line,355}]},{supervisor,children_map,4,[{file,\"supervisor.erl\"},{line,1171}]},{supervisor,init_children,2,[{file,\"supervisor.erl\"},{line,321}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,417}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,385}]}]}}}}}},{miner_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,miner,{{shutdown,{failed_to_start_child,miner_restart_sup,{shutdown,{failed_to_start_child,miner_ebus,{'EXIT',{{badmatch,{err

Crash dump is being written to: erl_crash.dump...done

I run docker image like this:

docker run -d --init \
--ulimit nofile=64000:64000 \
--env REGION_OVERRIDE=EU868 \
--restart always \
--publish 1680:1680/udp \
--publish 44158:44158/tcp \
--name miner \
--device /dev/i2c-1 \
--net host \
--privileged \
-v /var/run/dbus:/var/run/dbus \
--mount type=bind,source=/home/pi/Helium/overlay/docker.config,target=/opt/miner/releases/2021.09.27.0/sys.config \
--mount type=bind,source=/home/pi/Helium/miner_data,target=/var/data \        
quay.io/team-helium/miner:miner-arm64_2021.09.27.0_GA

overlay/docker.config

%% -*- erlang -*-
[
  "config/sys.config",
  {lager,
    [
      {log_root, "/var/data/log"}
    ]},
  {blockchain,
    [
    ]},
  {miner,
    [
     {jsonrpc_ip, {0,0,0,0}}, %% bind jsonrpc to host when in docker container
     %% {use_ebus, false},
      {radio_device, { {0,0,0,0}, 1680,
        {0,0,0,0}, 31341} }
    ]}
].

erl_crash.zip

sprhawk commented 2 years ago

Resolved. Missing config file.