Cncli 2.0.3 You do not have a cardano-cli binary available in $PATH

./env: line 323: /root/.cabal/bin/cardano-cli: No such file or directory
Failed to query protocol-parameters from node, not yet fully started?
./env: line 323: /root/.cabal/bin/cardano-cli: No such file or directory

Node status is running,
gLive status: starting
started

./env: line 323: /root/.cabal/bin/cardano-cli: No such file or directory
Failed to query protocol-parameters from node, not yet fully started?
./env: line 323: /root/.cabal/bin/cardano-cli: No such file or directory
Failed to query protocol-parameters from node, not yet fully started?
sleeping for 10s and testing again…
So the problem is in automatic detection of path to cardano-cli executable?
It seems that installing cncli via readme from github somehow screwed that.

yes, the path is the problem… check if u have the files here:

cd ${HOME}/.cabal/bin/ → check if u have the cardano-cli file
cd ${HOME}/.cargo/bin/ → check if u have the cncli file

then check the bash … if has the correct path:

nano or cat ${HOME}/.bashrc

/opt/cardano/cnode/scripts$ cd ${HOME}/.cabal/bin/
~/.cabal/bin$ ls
bech32 cardano-address cardano-cli cardano-node cardano-node-chairman cardano-ping cardano-submit-api cardano-topology db-analyser db-converter tracer-transfomers-example1 tracer-transfomers-example2

~/.cabal/bin$ cd ${HOME}/.cargo/bin/
~/.cargo/bin$ ls
cargo cargo-clippy cargo-fmt cargo-miri clippy-driver cncli rls rust-gdb rust-lldb rustc rustdoc rustfmt rustup
At the end of .bashrc:
[ -f “/home/user/.ghcup/env” ] && source “/home/user/.ghcup/env” # ghcup-env
export CNODE_HOME=/opt/cardano/cnode
source “$HOME/.cargo/env”
“export PATH=/home/user/.cabal/bin:/home/user/.cargo/bin:/home/user/.cabal/bin:/home/user/.ghcup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin”

I have only this

[ -f “/home/test/.ghcup/env” ] && source “/home/test/.ghcup/env” # ghcup-env
export CNODE_HOME=/opt/cardano/cnode
export CARDANO_NODE_SOCKET_PATH=/db/socket
source “$HOME/.cargo/env”

try to bkp in notepad… and remove the last line

this line :
“export PATH=/home/user/.cabal/bin:/home/user/.cargo/bin:/home/user/.cabal/bin:/home/user/.ghcup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin”

Removed, but still the same…
Maybe the problem is in export PATH duplicate entries…

but how are now the lines in env? try this way, or try both uncommented or commented

#CCLI="${HOME}/.cabal/bin/cardano-cli" # Override automatic detection of path to cardano-cli executable
CNCLI="${HOME}/.cargo/bin/cncli" # Override automatic detection of path to cncli executable (GitHub - AndrewWestberg/cncli: A community-based cardano-node CLI tool)

also run this command:
. “${HOME}/.bashrc” - replace the " from your keyboard, the forum change the format

Uncomented CNCLI in env,
and run . “${HOME}/.bashrc”

but still the same…

. “${HOME}/.bashrc”

Command ‘“export’ not found, did you mean:

command ‘mexport’ from deb mblaze (0.6-1)

Try: sudo apt install

try to substitute $HOME with /home/user I think when the script executed it will be /root/ instead of /home/user

likely your user is not the root

3 Likes

good catch… I thought he edited the user. to not show to the public :), as I did

but after all of these tests u need to check the node, if it’s starting again

1 Like

Thank You guys, its working now…
The node is restarting ok.

1 Like

happy for you, what was the solution? share it with us

replacing $HOME with /home/user in env

perfect, mark it as the solution, cheers.

1 Like

yes, but the problem was with $HOME env variable - probably the nodes started as a service and there the user is root in that case and the $HOME for it is /root. Maybe it is possible to define different acting user from root for a service - I am not familiar with services…

1 Like