How do I upgrade my cardano-node from version 1.18.0 to 1.18.1?
NOTE: The instructions below presuppose that you followed the Guild Operators Guide here.
Let's start by stopping our node
If you installed your node according to the Guild Operators Guide then your binaries are located in this folder off your home directory: ~/.cabal/bin
Move into that directory and remove the contents. Then clean cabal.
cd ~/.cabal/bin sudo rm * cabal clean
Then you need to move to your git directory and (optionally) remove the cardano-node directory
cd ~/git # change to git directory sudo rm -rf cardano-node # not necessary but many operators prefer to start clean
Now we go ahead and git clone the latest cardano-node version
cd ~/git git clone https://github.com/input-output-hk/cardano-node cd cardano-node git fetch --tags --all git checkout tags/1.18.1 git pull echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
Now we run the script (pre-installed as per your Guild Operators Guide) to install the updated version:
This install will typically take a few minutes. Once completed you can check the updated versions.
cardano-cli version # should show this: cardano-node 1.18.1
cardano-node version # should show this: cardano-node 1.18.1
If both the above commands show their versions as 1.18.1 you are done. You can restart your node, if you like, now.
cd $CNODE_HOME/scripts ./cnode.sh # or whatever you copied/renamed your script here
Some notes on this install
- Do not delete the db ever (unless you can't get it to come up for some other reason). We only deleted the DB during the HTN when they made changes that were incompatible. All changes should be compatible from here on out.
- Restart your node(s) to test that everything is working fine.
- If you experience any errors or doubts please inquire about those on this Telegram channel: https://t.me/StakePool247help
Alternatives to this method:
You can follow ADAM DEAN's version (he wrote a script to automate all of the upgrading for you). But It is not a Guild Operators structure script. You need to edit it according to your paths. Please visit his CardanoNodeUpgrade.sh script by clicking here.