-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing Issue while setting up Arweave node in local machine #525
Comments
|
yes thanks @vird was able to connect to arweave network. (i have attached screenshot for reference) Also, I don't want to mine but query network for data at a blockheight, transaction hash details etc. How can I do that? |
By default you don't mine. For enable mining multiple arguments are needed
|
Hi @vird i am getting below error trying to dockerize the node setup: Error DockerFile: FROM ubuntu:latest Script,sh contains all the commands: #!/bin/bash generic pack for almost all cryptocurrencies and comfortable workexport DEBIAN_FRONTEND=noninteractive arweave specificwget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | apt-key add -echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | tee /etc/apt/sources.list.d/erlang.listecho "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.listapt-get updateapt-get install -y erlang git clone --recursive https://github.com/ArweaveTeam/arweave.git /arweave/arweave-server peer 188.166.200.45 peer 188.166.192.169 peer 163.47.11.64 peer 139.59.51.59 peer 138.197.232.192 |
Sorry I can't read that. Pls make gist from that |
Hi @vird the error I am getting is: Protocol 'inet_tcp': register/listen error: econnrefused |
Without details only this recipe helped me once |
and make
|
Hi @vird I am trying install libsqlite3-dev, libgmp-dev on Ubuntu20.04 amd64 using following commands: sudo apt get-install -y but i am getting below errors: Reading package lists... Done |
Package should be available https://ubuntu.pkgs.org/20.04/ubuntu-main-arm64/libgmp-dev_6.2.0+dfsg-4_arm64.deb.html |
yes @vird i ran sudo apt-get update |
|
it's giving : libgmp10 - Multiprecision arithmetic library |
Then only dist-upgrade will help, because you don't have needed packages |
As alternative |
ok thank @vird i will try this and get back to you if any issues |
@vird can you just confirm one thing this setup https://github.com/virdpool/miner/blob/master/install_ubuntu_20.04.sh is official right? I am trying for the first just need to make sure Also i see run.sh that is i guess run script which needs to be run after installation is complete right? |
This setup is not official |
run.sh is script after you install |
Hi @vird getting this after installing all the packages and runnging this command: ./arweave-server peer 188.166.200.45 peer 188.166.192.169 peer 163.47.11.64 peer 139.59.51.59 peer 138.197.232.192 Arweave launch script: ./bin/start Building dependencies...
escript: exception error: undefined function rebar3:main/1 Copying and linking build artifacts
Arweave launch script: /home/coiniaadmin/node-arweave/arweave/bin/arweave-dev |
also @vird one doubt which machine we can use arm or amd64? |
arweave requirement: what is Maybe there is problem with incorrect version of erlang (<24) For ubuntu 20.04 It should build on amd64 and arm, no difference |
So something like
should work |
Hi @vird we were able to install all the package, and erlang also but when i run development build command getting following error: Command: Error Error! Failed to eval: io:format("~s", [code:lib_dir(erl_interface, include)]). g++ -O3 -finline-functions -fPIC -I -I -std=c++11 -Wall -c -o prometheus_process_collector_nif.o prometheus_process_collector_nif.cc Error! Failed to eval: io:format("~s/erts-~s/include/", [code:root_dir(), erlang:system_info(version)]). g++ -O3 -finline-functions -fPIC -I -I -std=c++11 -Wall -c -o prometheus_process_info_linux.o prometheus_process_info_linux.cc Error! Failed to eval: io:format("~s", [code:lib_dir(erl_interface, lib)]). cc prometheus_process_collector_nif.o prometheus_process_info_linux.o -shared -L -lei -lstdc++ -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/prometheus_process_collector/c_src/../priv/prometheus_process_collector.so make: Leaving directory '/NewDisk23Machine/node-arweave/arweave/_build/default/lib/prometheus_process_collector/c_src' make: Entering directory '/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src' Error! Failed to eval: io:format("~ts/erts-~ts/include/", [code:root_dir(), erlang:system_info(version)]). Error! Failed to eval: io:format("~ts", [code:lib_dir(erl_interface, include)]). cc -fPIC -O3 -std=c99 -Wall -Wmissing-prototypes -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:70:1: warning: no previous prototype for ‘dec_new’ [-Wmissing-prototypes] 70 | dec_new(ErlNifEnv* env)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:109:1: warning: no previous prototype for ‘dec_init’ [-Wmissing-prototypes] 109 | dec_init(Decoder* d, ErlNifEnv* env, ERL_NIF_TERM arg, ErlNifBinary* bin)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:129:1: warning: no previous prototype for ‘dec_error’ [-Wmissing-prototypes] 129 | dec_error(Decoder* d, const char* atom)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:138:1: warning: no previous prototype for ‘dec_curr’ [-Wmissing-prototypes] 138 | dec_curr(Decoder* d)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:145:1: warning: no previous prototype for ‘dec_top’ [-Wmissing-prototypes] 145 | dec_top(Decoder* d)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:151:1: warning: no previous prototype for ‘dec_push’ [-Wmissing-prototypes] 151 | dec_push(Decoder* d, char val)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:170:1: warning: no previous prototype for ‘dec_pop’ [-Wmissing-prototypes] 170 | dec_pop(Decoder* d) {
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:183:1: warning: no previous prototype for ‘dec_pop_assert’ [-Wmissing-prototypes] 183 | dec_pop_assert(Decoder* d, char val)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:191:1: warning: no previous prototype for ‘dec_string’ [-Wmissing-prototypes] 191 | dec_string(Decoder* d, ERL_NIF_TERM* value)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:375:1: warning: no previous prototype for ‘dec_number’ [-Wmissing-prototypes] 375 | dec_number(Decoder* d, ERL_NIF_TERM* value)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:622:1: warning: no previous prototype for ‘make_empty_object’ [-Wmissing-prototypes] 622 | make_empty_object(ErlNifEnv* env, int ret_map)
/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/decoder.c:634:1: warning: no previous prototype for ‘make_array’ [-Wmissing-prototypes] 634 | make_array(ErlNifEnv* env, ERL_NIF_TERM list)
Error! Failed to eval: io:format("~ts/erts-~ts/include/", [code:root_dir(), erlang:system_info(version)]). (no logger present) unexpected logger message: {log,error,"Error in process Error! Failed to eval: io:format("~ts", [code:lib_dir(erl_interface, include)]). cc -fPIC -O3 -std=c99 -Wall -Wmissing-prototypes -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/jiffy.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/jiffy.c Error! Failed to eval: io:format("~ts/erts-~ts/include/", [code:root_dir(), erlang:system_info(version)]). Error! Failed to eval: io:format("~ts", [code:lib_dir(erl_interface, include)]). g++ -fPIC -O3 -Wall -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/doubles.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/doubles.cc g++ -fPIC -O3 -Wall -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/bignum.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/bignum.cc Error! Failed to eval: io:format("~ts/erts-~ts/include/", [code:root_dir(), erlang:system_info(version)]). g++ -fPIC -O3 -Wall -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/bignum-dtoa.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/bignum-dtoa.cc Error! Failed to eval: io:format("~ts/erts-~ts/include/", [code:root_dir(), erlang:system_info(version)]). Error! Failed to eval: io:format("~ts", [code:lib_dir(erl_interface, include)]). g++ -fPIC -O3 -Wall -I -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/double-conversion.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/double-conversion.cc Error! Failed to eval: io:format("~ts", [code:lib_dir(erl_interface, include)]). (no logger present) unexpected logger message: {log,error,"Error in process g++ -fPIC -O3 -Wall -I /usr/lib/erlang/erts-14.2.2/include/ -I -c -o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/strtod.o /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/strtod.cc /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x24): undefined reference to `main' /usr/bin/ld: /tmp/cclzzVKH.o: in function `double_conversion::CompareBufferWithDiyFp(double_conversion::Vector, int, double_conversion::DiyFp) [clone .isra.0]': strtod.cc:(.text+0xca): undefined reference to `double_conversion::Bignum::Bignum()' /usr/bin/ld: strtod.cc:(.text+0xd2): undefined reference to `double_conversion::Bignum::Bignum()' /usr/bin/ld: strtod.cc:(.text+0xe5): undefined reference to `double_conversion::Bignum::AssignDecimalString(double_conversion::Vector)' /usr/bin/ld: strtod.cc:(.text+0xf0): undefined reference to `double_conversion::Bignum::AssignUInt64(unsigned long)' /usr/bin/ld: strtod.cc:(.text+0xfe): undefined reference to `double_conversion::Bignum::MultiplyByPowerOfTen(int)' /usr/bin/ld: strtod.cc:(.text+0x10e): undefined reference to `double_conversion::Bignum::ShiftLeft(int)' /usr/bin/ld: strtod.cc:(.text+0x119): undefined reference to `double_conversion::Bignum::Compare(double_conversion::Bignum const&, double_conversion::Bignum const&)' /usr/bin/ld: strtod.cc:(.text+0x14e): undefined reference to `double_conversion::Bignum::MultiplyByPowerOfTen(int)' /usr/bin/ld: strtod.cc:(.text+0x160): undefined reference to `double_conversion::Bignum::ShiftLeft(int)' /usr/bin/ld: /tmp/cclzzVKH.o: in function `double_conversion::DiyFpStrtod(double_conversion::Vector, int, double*) [clone .isra.0]': strtod.cc:(.text+0x318): undefined reference to `double_conversion::PowersOfTenCache::kMaxDecimalExponent' /usr/bin/ld: strtod.cc:(.text+0x32b): undefined reference to `double_conversion::PowersOfTenCache::kMinDecimalExponent' /usr/bin/ld: strtod.cc:(.text+0x393): undefined reference to `double_conversion::PowersOfTenCache::GetCachedPowerForDecimalExponent(int, double_conversion::DiyFp*, int*)' /usr/bin/ld: strtod.cc:(.text+0x3ac): undefined reference to `double_conversion::PowersOfTenCache::kDecimalExponentDistance' /usr/bin/ld: strtod.cc:(.text+0x405): undefined reference to `double_conversion::DiyFp::Multiply(double_conversion::DiyFp const&)' /usr/bin/ld: strtod.cc:(.text+0x423): undefined reference to `double_conversion::DiyFp::Multiply(double_conversion::DiyFp const&)' collect2: error: ld returned 1 exit status make: *** [Makefile:76: /NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src/double-conversion/strtod.o] Error 1 make: Leaving directory '/NewDisk23Machine/node-arweave/arweave/_build/default/lib/jiffy/c_src' ===> Hook for compile failed! Copying and linking build artifacts
cp: cannot stat '/arweave/bin/arweave': No such file or directory
Arweave launch script: /NewDisk23Machine/node-arweave/arweave/bin/arweave-dev Arweave launch options: +Ktrue +A200 +SDio200 +MBsbct 103424 +MBsmbcs 10240 +MBlmbcs 410629 +MBmmmbc 1024 +MBas aobf +sbwtvery_long +sbwtdcpuvery_long +sbwtdiovery_long +swtvery_low +swtdcpuvery_low +swtdiovery_low +Bi Launching Erlang Virtual Machine... ./bin/start: line 14: /NewDisk23Machine/node-arweave/arweave/bin/arweave-dev: No such file or directory 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. Also erl is giving following: |
OTP 26 |
Hi @vird getting below error after setting up everything : ===> Release successfully assembled: _build/default/rel/arweave Copying and linking build artifacts
Arweave launch script: /SecondDisk24Machine/node-arweave/arweave/bin/arweave-dev Eshell V12.3.1 (abort with ^G) VDF step computed in 1.74 seconds. WARNING: your VDF computation speed is low - consider fetching VDF outputs from an external source (see vdf_server_trusted_peer and vdf_client_peer command line parameters). Setting the mining address to 3dvd3Vg73HN1JfRKyx2tmete4jXgLRdoivD7FXyWgyc. Initialising RandomX dataset for fast packing. Key: <<"ZGVmYXVsdCBhcndlYXZlIDIuNSBwYWNrIGtleQ">>. The process may take several minutes. The node is configured to pack around 40 chunks per second. To increase the packing rate, start with Setting the packing chunk cache size limit to 1300 chunks. Setting the data chunk cache size limit to 1100 chunks.
The specified trusted peers are not valid. Note: I am using erlang 24 |
As
|
Hi @vird we checked the traffic on the server from firewall logs and also 1984 TCP is open. We wanted to know if we can alter this |
Without public opened port 1984 node will receive updates later than usually |
HI @vird i connected to the Arweave network but how to query network for latest block height and transaction details |
https://docs.arweave.org/developers/arweave-node-server/http-api e.g. Also for each block fetch you should check that prev block is actually known processed block, otherwise you should unroll until you find known block |
yes working thank alot @vird for the help |
Hi @vird I had some doubts
Curl query: My node was not syncing because of low CPU, I am upgrading to a higher one. But could that be the reason. I mean if node will sync will we able to query initial blocks also because when I check the info api it under blocks : 2349(shown below).
|
"previous block is actually known" Until your node is not fully synced get historical blocks from https://arweave.net/ |
Hi @vird small doubts mentioned below:
|
|
Hi, I am getting following error while setting arweave node using docker:
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Arweave launch script: /arweave/bin/start
Building dependencies...
Removing build artifacts...
/usr/bin/env: 'escript': No such file or directory
/usr/bin/env: 'escript': No such file or directory
Copying and linking build artifacts
cp: cannot stat '/arweave/bin/arweave': No such file or directory
Arweave launch script: /arweave/bin/arweave-dev
Arweave launch options: +Ktrue +A200 +SDio200 +MBsbct 103424 +MBsmbcs 10240 +MBlmbcs 410629 +MBmmmbc 1024 +MBas aobf +sbwtvery_long +sbwtdcpuvery_long +sbwtdiovery_long +swtvery_low +swtdcpuvery_low +swtdiovery_low +Bi
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Launching Erlang Virtual Machine...
/arweave/bin/start: line 14: /arweave/bin/arweave-dev: No such file or directory
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.
Dockerfile is :
FROM ubuntu:latest
COPY script.sh .
COPY ./arweave /arweave
RUN chmod +x script.sh
ENTRYPOINT ["sh","script.sh"]
script.sh contains:
#!/bin/bash
set -e
echo "NOTE. If you think that install is too slow, you probably should not mine arweave on this computer"
generic pack for almost all cryptocurrencies and comfortable work
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y
htop screen tmux mc git nano curl wget g++ build-essential gcc make cmake autoconf automake psmisc net-tools mtr-tiny
libboost-all-dev libssl-dev libzmq3-dev libreadline-dev libsodium-dev pkg-config libunbound-dev libtool bsdmainutils libevent-dev libminiupnpc-dev autotools-dev python3
libudev-dev zlib1g-dev libseccomp-dev libcap-dev libncap-dev obfs4proxy libgmp-dev libtinfo5 software-properties-common apt-transport-https libsqlite3-dev
/arweave/arweave-server peer 188.166.200.45 peer 188.166.192.169 peer 163.47.11.64 peer 139.59.51.59 peer 138.197.232.192
Also I have cloned the folllowing repo and moved the folder to container
git clone --recursive https://github.com/ArweaveTeam/arweave.git
The text was updated successfully, but these errors were encountered: