Cardano Node (cardano-cli --version) Need help

I followed this guide to setup a cardano node, everything went good till this step:

https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/install.html

Check the version that has been installed:

cardano-cli --version

:~/.local/bin$ cardano-cli --version
cardano-cli: command not found

Can anyone please help me with this?

did you performed this steps?

mkdir -p ~/.local/bin mv cabal ~/.local/bin/

Verify that ~/.local/bin is in your PATH

echo $PATH

or
If ~/.local/bin is not in the PATH, you need to add the following line to your .bashrc file

export PATH="~/.local/bin:$PATH"
and source the file

source .bashrc

I made it past the issue, I think it was this:

mkdir -p ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-1.25.1/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-1.25.1/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/

1 Like

Now I’m stuck on running the node. I got my folder / files in the right place and I think I configured everything.

cardano-node run
–topology mainnet-topology.json
–database-path /db
–socket-path /db/socket
–host-addr x.x.x.x
–port 3001
–config mainnet-config.json

Listening on http://127.0.0.1:12798
[bodyisla:cardano.node.networkMagic:Notice:5] [2021-02-12 10:26:55.62 UTC] NetworkMagic 764824073
[bodyisla:cardano.node.basicInfo.protocol:Notice:5] [2021-02-12 10:26:55.62 UTC] Shelley
[bodyisla:cardano.node.basicInfo.version:Notice:5] [2021-02-12 10:26:55.62 UTC] 1.25.1
[bodyisla:cardano.node.basicInfo.commit:Notice:5] [2021-02-12 10:26:55.62 UTC] 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f
[bodyisla:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-02-12 10:26:55.62 UTC] 2021-02-12 10:26:55.625665456 UTC
[bodyisla:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-02-12 10:26:55.62 UTC] 2017-09-23 21:44:51 UTC
[bodyisla:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-02-12 10:26:55.62 UTC] 1s
[bodyisla:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-02-12 10:26:55.62 UTC] 432000
[bodyisla:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-02-12 10:26:55.62 UTC] 129600

Shutting down…

you are in testnet or mainnet

Im using mainnet configs

Strange, because I don’t see any error message
try to start the node with host address 0.0.0.0

same result

Could it be due to my relay node or does that not have anything to do with the cardano node starting up?

{
“Producers”: [
{
“addr”: “relays-new.cardano-mainnet.iohk.io”,
“port”: 3001,
“valency”: 2
}
]
}

How should the directories be?

Currently home/username/src/ ls
cardano-node ghc-8.10.2 libsodium (does the relay folder go in here, or does it go in the “src” folder?

and do the configuration files go inside the relay folder or the cardano-node folder?