ArweaveTeam / arweave

The Arweave server and App Developer Toolkit.
https://www.arweave.org
GNU General Public License v2.0
911 stars 201 forks source link

Running node problem #329

Open hucs2542 opened 2 years ago

hucs2542 commented 2 years ago

Launching Erlang Virtual Machine... Exec: /data/arweave/erts-12.0.4/bin/erlexec -noinput +Bd -boot /data/arweave/releases/2.4.4.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /data/arweave/lib -config /data/arweave/releases/2.4.4.0/sys.config -args_file /data/arweave/releases/2.4.4.0/vm.args -- foreground +Ktrue +A20 +SDio20 +sbwtvery_long +sbwtdcpuvery_long +sbwtdiovery_long +swtvery_low +swtdcpuvery_low +swtdiovery_low +Bi -run ar main init Root: /data/arweave /data/arweave 2021-11-05T03:40:55.523125+00:00 [error] supervisor.erl:392 Supervisor: {local,ar_node_sup}. Context: start_error. Reason: {{case_clause,false},[{ar_block,hash_wallet_list,3,[{file,"/data/arweave/apps/arweave/src/ar_block.erl"},{line,36}]},{ar_weave,init,4,[{file,"/data/arweave/apps/arweave/src/ar_weave.erl"},{line,27}]},{ar_node_worker,init,1,[{file,"/data/arweave/apps/arweave/src/ar_node_worker.erl"},{line,71}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"... 2021-11-05T03:40:55.523650+00:00 [error] supervisor.erl:392 Supervisor: {local,ar_sup}. Context: start_error. Reason: {shutdown,{failed_to_start_child,ar_node_worker,{{case_clause,false},[{ar_block,hash_wallet_list,3,[{file,"/data/arweave/apps/arweave/src/ar_block.erl"},{line,36}]},{ar_weave,init,4,[{file,"/data/arweave/apps/arweave/src/ar_weave.erl"},{line,27}]},{ar_node_worker,init,1,[{file,"/data/arweave/apps/arweave/src/ar_node_worker.erl"},{line,71}]},{gen_server,init_it,2,[{file,"gen_server.erl"},... 2021-11-05T03:40:55.523371+00:00 [error] proc_lib.erl:525 crasher: initial call: ar_node_worker:init/1, pid: <0.872.0>, registered_name: [], error: {{case_clause,false},[{ar_block,hash_wallet_list,3,[{file,"/data/arweave/apps/arweave/src/ar_block.erl"},{line,36}]},{ar_weave,init,4,[{file,"/data/arweave/apps/arweave/src/ar_weave.erl"},{line,27}]},{ar_node_worker,init,1,[{file,"/data/arweave/apps/arweave/src/ar_node_worker.erl"},{line,71}]},{gen_server,init_it,2,[{file,"genserver.erl"},{line,423}]},{gen... 2021-11-05T03:40:55.528045+00:00 [error] proc_lib.erl:525 crasher: initial call: application_master:init/4, pid: <0.786.0>, registered_name: [], exit: {{{shutdown,{failed_to_start_child,ar_node_sup,{shutdown,{failed_to_start_child,ar_node_worker,{{case_clause,false},[{ar_block,hash_wallet_list,3,[{file,"/data/arweave/apps/arweave/src/ar_block.erl"},{line,36}]},{ar_weave,init,4,[{file,"/data/arweave/apps/arweave/src/ar_weave.erl"},{line,27}]},{ar_node_worker,init,1,[{file,"/data/arweave/apps/arweave/src/... {"init terminating in do_boot",{{badmatch,{error,{arweave,{{shutdown,{failed_to_start_child,ar_node_sup,{shutdown,{failed_to_start_child,ar_node_worker,{{case_clause,false},[{ar_block,hash_wallet_list,3,[{file,"/data/arweave/apps/arweave/src/ar_block.erl"},{line,36}]},{ar_weave,init,4,[{file,"/data/arweave/apps/arweave/src/ar_weave.erl"},{line,27}]},{ar_node_worker,init,1,[{file,"/data/arweave/apps/arweave/src/ar_node_worker.erl"},{line,71}]},{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}]}]}}}}},{ar,start,[normal,[]]}}}}},[{ar,start,1,[{file,"/data/arweave/apps/arweave/src/ar.erl"},{line,386}]},{init,start_em,1,[]},{init,do_boot,3,[]}]}} init terminating in doboot ({{badmatch,{error,{arweave,{}}}},[{ar,start,1,[{},{}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done [os_mon] cpu supervisor port (cpu_sup): Erlang has closed [os_mon] memory supervisor port (memsup): Erlang has closed Arweave Heartbeat: The Arweave server has terminated. It will restart in 15 seconds. Arweave Heartbeat: If you would like to avoid this, press control+c to kill the server

ldmberman commented 2 years ago

@hucs2542 hi, the init argument does not work properly at the moment; if you want to experiment with a test network, take a look at https://github.com/ArweaveTeam/testweave-sdk or https://github.com/textury/arlocal. If you want to join the mainnet, please, check the mining guide.

tankakatan commented 2 years ago

Hi @ldmberman, are there any updates regarding the issue? When is it expected to be resolved?

Unfortunately neither TestWeave nor ArLocal are much helpful for development and testing. I'd like to have a testing environment as close to the real network as possible.

Could you please tell which is the last Arweave node version supporting the init argument?

ldmberman commented 2 years ago

Hi @tankakatan, there are some modifications made in the feature/testnet branch. Run ./rebar3 as testnet tar to make a testnet build. You can use the POST /mine endpoint to explicitly trigger mining of a single block. Hope it helps for the time.

Cannot say when a public testnet will be launched although I heard some community projects are willing to set one up.

tankakatan commented 2 years ago

Thanks @ldmberman, as you suggested I'll give the feature/testnet branch a try.

Also JFY I have discovered some details about the TestWeave-docker internals, and probably there's a chance I can include it in my e2e environment. The main consideration about it is that the Arweave node used under the hood there is of 2.4.0.0 version while the current release is 2.5.1.0. I really hope that it isn't a big issue ATM. Please let me know if it is.

Also using TestWeave-sdk appears to be inconvenient, since it implies modifications in the client code and also it's not clear how particularly does it modify the Arweave-js unless you dive deeper into the SDK implementation. Luckily I don't rely too much on Arweave-js in my project, therefore I hope I'll work around this particular limitation.

As soon as I get any results I can share it here if you wish.

Thanks

ahhxfeng commented 1 year ago

face same problem , have got any idea ?