Update Cardano Node to 1.30.1 - for Coincashew users

This is a minor release to support the hard fork to Alonzo protocol version 6. The purpose of this protocol version is to fix a bug in conversion of time for Plutus scripts.

Additionally, we make a change to the crypto library which should have a positive impact on sync times.

All SPOs and node users must update to this (or a later) version prior to the HF to Alonzo PV 6, or risk not being able to sync to the network

IMPORTANT: Please backup your instance before performing any updates in case of any failure.

  1. Update and restart your instance:
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
  1. Download latest cardano-node git and checkout latest branch
cd $HOME/git
git clone https://github.com/input-output-hk/cardano-node.git cardano-node2
cd cardano-node2/
git fetch --all --recurse-submodules --tags
git checkout tags/1.30.1

Note: make sure you to have at least ghc 8.10.4 and cabal 3.4.0 before proceeding.

ghcup upgrade
ghcup install ghc 8.10.4
ghcup set ghc 8.10.4
ghcup install cabal 3.4.0.0
ghcup set cabal 3.4.0.0
cabal update
ghc --version
cabal --version
  1. Build the node.
cd $HOME/git/cardano-node2
cabal configure -O0 -w ghc-8.10.4
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
cabal build cardano-node cardano-cli
  1. Check cardano-cli and cardano-node that the build was successful
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version
  1. If on 1.30.1, shut down the node and move the binaries to your bin
sudo systemctl stop cardano-node
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
  1. Check that successful version upgrades then start back up Cardano node
cardano-node version
cardano-cli version
sudo systemctl start cardano-node
  1. Clean up
cd $HOME/git/
rm -rf cardano-node-old
mv cardano-node cardano-node-old
mv cardano-node2 cardano-node

Monitor the progress by either using gliveview or journalctl

journalctl --unit=cardano-node --follow 
14 Likes

Thank you kindly for your diligent work!

1 Like

My pleasure!

Hmm unable to update ghc and cabal with the commands provided here. Getting a command does not exist error. Additionally, when i run cabal update it does not update past 3.2

do you have ghcup installed? you can check with ghcup --version

should return something like

The GHCup Haskell installer, version v0.1.16.2

Ah looks like I do not! Odd I was able to get along for about 6 months without it as an SPO. Ill install it now.

1 Like

yeah when I first set up my stake pool, I didn’t need ghcup. But it seems to be the standard now :slight_smile:

1 Like

All up to date thank you!! One suggestion on the cleanup commands to
rm -rm cardano-node-old file first before moving the cardano-node into it!

1 Like

thanks @Skilov3 for the suggestion, I added removal of old cardano-node folder :raised_hands:

Thank you…

1 Like

So if we are not doing Plutus development we don’t necessarily need to implement this service upgrade immediately?

All SPOs and node users must update to this (or a later) version prior to the HF to Alonzo PV 6, or risk not being able to sync to the network

it is required, although I’m not entirely sure when the hard fork to Alonzo protocol version framework 6 will take place. It’s best to just stay up to date with the latest stable releases:

Thanks for pointing that out.

1 Like

Thanks for these instructions. They saved me a good amount of time!

1 Like

Hi following the coincashew. Updating was interrupted
My relay update was ok
But check cardano-Cli version failed
Please advice me at step 5

  1. If on 1.30.1, shut down the node and move the binaries to your bin

What should I do? Which file I need to move
Many thanks!

hi so your cardano-cli and cardano-node binaries should be in your bin /usr/local/bin which you can run from the command line. i.e.,

cardano-cli --version
cardano-node --version

After building the new cardano-node and cardano-cli binaries from git (steps 1-4), you can check the new cardano-node and cardano-cli versions

$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version

If they return version 1.30.1, you should be good. But if the update was interrupted while building. You should rebuild the files again

cabal build cardano-node cardano-cli

Thanks for the reply
My Cardano-Cli still showing on early date
and 1,29.1
Doing the update again and hope it works

Cheers

HI David
just finish the build but while checking version

Invalid argument `/home/cardanop/git/cardano-node2/dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-cli-1.29.0/x/cardano-cli/build/cardano-cli/cardano-cli’

Invalid argument `/home/cardanop/git/cardano-node2/dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-node-1.30.0/x/cardano-node/build/cardano-node/cardano-node’

What commands were you running to check? How come it shows two different versions? I see 1.29 and 1.30?

Do you know where you cancelled earlier? I think you might be better off running through the entire guide again from step 1 to make sure your aren’t missing any part of the build :slight_smile:

Let me know how it goes!

David. I didn’t cancel the process.! system just stopped on building the node on step(37/52

$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version

cli shows 1.29 but node indicates 1.30

after rebuild:

 Warning: Requested index-state 2021-09-15T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-09-14T22:11:20Z).
Resolving dependencies...
Up to date