Upgrade to 1.31.0 from 1.30.1
Quick update guide from 1.29.0 to 1.30.1 This update is required for block-producing nodes for future HF.
Quick update guide for SPOs who have the previous version already installed 1.30.1 If you are installing from scratch, then follow the installation guide: https://cardano-node-installation.stakepool247.eu/
  1. 1.
    Let's start with backing up current binaries
1
cd ~/.local/bin/
2
3
# let's create a folder with the version number
4
mkdir -p $(cardano-node version | grep -oP '(?<=cardano-node )[0-9\.]+')
5
6
# copying files to the created folder
7
cp cardano-node $(cardano-node version | grep -oP '(?<=cardano-node )[0-9\.]+')/
8
cp cardano-cli $(cardano-node version | grep -oP '(?<=cardano-node )[0-9\.]+')/
Copied!
2. Let's move forward with upgrading the system packages
1
# let's update the system first
2
sudo bash -c 'sudo apt-get update -y;sudo apt-get upgrade -y'
Copied!
3. let's download
1
# let's create directory where we will be downloading sourece code
2
cd ~
3
mkdir -p git
4
cd git
Copied!
1
# just in case you already had a sourece directory with cardano-node source code - let's delete it and download fresh one.
2
rm -rf cardano-node
Copied!
1
# let's clone source code from git
2
git clone https://github.com/input-output-hk/cardano-node.git
3
4
cd cardano-node
5
git fetch --all --recurse-submodules --tags
6
7
# checking out the 1.31.0 version
8
git checkout tags/1.31.0
9
Copied!
1
# ensuring that we are using cabal 8.10.4 version
2
# by specifying the particular compiler to be used.
3
cabal configure --with-compiler=ghc-8.10.4
Copied!
1
# addinng extra flages for libsodium library
2
echo "package cardano-crypto-praos" >> cabal.project.local
3
echo " flags: -external-libsodium-vrf" >> cabal.project.local
Copied!
1
# now let's compile the code
2
cabal build all
Copied!
Before the next step - STOP your node so it doesn't lock the carano-node file for overwriting
1
sudo systemctl stop cardano-node
Copied!
1
# moving the freshly compiled binaries to bin folder
2
mkdir -p ~/.local/bin/
3
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-cli-1.31.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
4
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.4/cardano-node-1.31.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
Copied!
1
# let's check if we have successfully installed the latst cardano-node and cardano-cli versions.
2
which cardano-node && which cardano-cli
3
cardano-node --version
4
cardano-cli --version
Copied!
you should now have similar output:
Now we can start the cardano node process
1
sudo systemctl start cardano-node
Copied!
and check the logfiles if everything is starting up as planned:
1
journalctl -u cardano-node.service -f -o cat
Copied!
that's it - you have upgraded your node to 1.30.1, now do the same update on all of your other production servers.
Need help? 👉🏼 Join our Telegram support Group: https://t.me/StakePool247help
Last modified 19d ago
Copy link