My block producing node is presenting an error when I run cncli.sh leaderlogs since I’ve upgraded to 1.35. Here’s the error:
error: Found argument ‘–consensus’ which wasn’t expected, or isn’t valid in this context
Anyone else have this issue?
Did you update to latest CNCLI version 5.0.2?
--consensus tpraos before babbage era and
--consensus praos for it.
Hi there! Thanks for the reply. I didn’t explicitly do an update, but when I ran cncli.sh leaderlog recently it asked me if I wanted to update and I said yes… Does that bring me current to 5.0.2? Or do I need to manually update?
Not sure what script you are running, but error what you are getting is implying that CNCLI doesn’t expect
–consensus argument. That argument is available from 5.0.0 version. So my guess is that your script expects latest version of CNCLI binary.
If you will update your CNCLI binary, everything should work.
U will need to run (if u use cntools)
Looks like this was the issue! Thank you
Whoops… Spoke to soon… The update ran, but it looks like it only tried to update to 4.0.4? Afterwards, I received the same error when attempting to run leaderlog…
previous CNCLI installation found, pulling latest version from GitHub…
CNCLI already latest version [v4.0.4], skipping!
Ok, perhaps the new version is not pushed to updates yet? …
Yes, could be… Ok, I’ll be patient
as workaround you can remove
–consensus argument from your script…
cncli.sh and the CNCLI binary are two different things. The
cncli.sh script calls the binary, however. When the
cncli.sh script prompts you to update, the script is updated.
You also need to update the binary manually as a separate procedure. The current version of the binary is v5.0.2
GitHub - cardano-community/cncli
Maybe file a bug report with Guild Operators to address the confusing naming
GitHub - cardano-community/guild-operators: Artifacts and scripts created by Guild operators
You are looking on alpha branche… switch to master… the script was not released for update… yet
I also encountered this problem, it can be solved by updating the cncli version
This file has been truncated.
# Install & Automate CNCLI
You can install CNCLI using either the release binaries or compiling the Rust code. Both installation examples hereby illustrated are instructions for an Ubuntu Linux server and use standard system paths from the Linux [File System Hierarchy Standard](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard).
### Install the binary release
To install CNCLI from a binary release, download the [latest release](https://github.com/cardano-community/cncli/releases) and extract it in the ```/usr/local/bin/``` directory of the ```block producing node``` server of your stake pool. Adjust the ```<latest_release_version>``` variable in the command to the latest release available:
curl -sLJ https://github.com/cardano-community/cncli/releases/download/v<latest_release_version>/cncli-<latest_release_version>-x86_64-unknown-linux-gnu.tar.gz -o /tmp/cncli-<latest_release_version>-x86_64-unknown-linux-gnu.tar.gz
tar xzvf /tmp/cncli-<latest_release_version>-x86_64-unknown-linux-gnu.tar.gz -C /usr/local/bin/
### Compile from source
git fetch --all --prune
git checkout v5.0.2
cargo install --path . --force