cardano node setup

requirements

24 GiB memory
250 GB disk

setup

apt update
apt dist-upgrade
apt install automake build-essential pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ tmux git jq wget libncursesw5 libtool autoconf curl
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | bash

OK PATH
OK HLS
NOK stack

source /root/.ghcup/env

ghcup --version
ghcup install ghc 8.10.7
ghcup set ghc 8.10.7
ghc --version

cabal --version # already right version
#ghcup install cabal 3.6.2.0
#ghcup set cabal 3.6.2.0

further follow the guide but with those settings while building

./configure --sysconfdir=/etc --localstatedir=/run ...

and place the build system-wide

cp -p "$(./scripts/bin-path.sh cardano-node)" /usr/local/bin/
cp -p "$(./scripts/bin-path.sh cardano-cli)" /usr/local/bin/

check

as user

cardano-cli --version
cardano-node --version

ready to go

as root

mkdir /data3/
mount ...
cp /root/cardano-src/cardano-node/configuration/cardano/mainnet-topology.json /data3/
chown -R USER. /data3/

as user

screen -S cardano

cd /data3/
mkdir db/
cardano-node run \
   --topology /data3/mainnet-topology.json \
   --database-path /data3/db \
   --socket-path /data3/db/node.socket \
   --host-addr 10.1.0.10 \
   --port 3001 \
   --config /data3/config.json

after a while, the tcp port will show up listening

netstat -lntup | grep 3001

and you will see the database grow

du -sh /data3/db/

resources

https://developers.cardano.org/docs/get-started/installing-cardano-node

https://developers.cardano.org/docs/get-started/running-cardano

troubles - listen 3001

https://cardano.stackexchange.com/questions/3794/what-is-a-host-address-how-do-i-get-one

https://iohk.zendesk.com/hc/en-us/articles/4406070442137-Get-to-know-your-node-logs https://forum.cardano.org/t/in-and-out-ports-on-the-relays/48490/11 https://forum.cardano.org/t/how-to-run-cardano-node-as-service/57410/7 https://github.com/input-output-hk/cardano-node/issues/1618


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun