4

I recently ran into sync errors after building/installing cardano-node. I am pretty sure that the problem was that I had built the wrong version, after re-building to exactly what the documentation stated, it synced fine. So, this begs the question - is there an easy way to find out what version is running on a remote node?

1

you may connect to the remote node using SSH/RDP. Then you can run cardano-node or cardano-cli with parameter --version.

~$ cardano-node --version
cardano-node 1.30.1 - linux-x86_64 - ghc-8.10

~$ cardano-cli --version
cardano-cli 1.30.1 - linux-x86_64 - ghc-8.10
1
  • By remote node, I meant the node running on the testnet or mainnet - which I do not own. So, I don't believe I can ssh into a node I don't own. I was hoping there either a remote command that I would run that "ask the remote node what version it is running" or it was published somewhere. Oct 30 at 2:00
0

Not sure if this is checking a remote node, but are you maybe looking for: cardano-node --version? Example Output:

cardano-node 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf

Or cardano-cli --version? Example Output:

cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf
1
  • 1
    Unfortunately, no (or at least I don't think so). cardano-node --version will get you what version YOU are running but NOT what version is on the test-net or main-net server(s). So, I was wondering if the version was posted on some website or if there was a command that could be issued for them to report that info. Sep 20 at 0:05
0

You could check your startup parameters and note the path to the config file you are using by using

ps -ef | grep cardano-node

There should be a filename after --config

If unchanged, the testnet and mainnet config files are named as such; testnet-config.json and mainnet-config.json.

If the name doesn't suffice, you can check inside this config file which genesis files are used.

Or are you looking for the latest released version of cardano-node? This can be done with the following command:

curl -s https://api.github.com/repos/input-output-hk/cardano-node/releases/latest | jq -r .tag_name

[Source: Guild Operators, Build Node/CLI section]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.