hmm definitely an environment issue - but I dont know why worked with bash -x.
which line of the script contains the error handling: grep -n "You do not have a cardano-cli" cncli.sh
ok, probably the cncli tool says itself and not the wrapper cncli.sh script
but you can always call the cncli tool manually to check if it is working⌠{CNCLI} leaderlog --db "{CNCLI_DB}" --byron-genesis â{BYRON_GENESIS_JSON}" --shelley-genesis "{GENESIS_JSON}â --ledger-set current {ledger_state_param} --pool-id "{POOL_ID}" --pool-vrf-skey â${POOL_VRF_SKEY}â --tz UTC
You are right, the problem is in cncli tool itself, it seems I have installed via cntools on top of regular cncli from github.
How can I clean cncli instalations to install again via prereqs.sh?
~/tmp$ ./prereqs.sh -c
Using apt to prepare packages for âUbuntuâ system
Updating system packagesâŚ
Installing missing prerequisite packages, if anyâŚ
Creating Folder Structure âŚ
Environment Variable already set up!
Installing CNCLI
previous CNCLI installation found, pulling latest version from GitHubâŚ
latest version: v2.0.3
updating RUST if neededâŚ
building CNCLI v2.0.3 âŚ
cncli 2.0.3 installed!
Downloading filesâŚ
/opt/cardano/cnode/scripts$ sudo ./cncli.sh leaderlog
You do not have a cardano-cli binary available in $PATH.
You do not have a cardano-cli binary available in $PATH.
sleeping for 10s and testing againâŚ