Update Cardano Node - 1.26.2 to 1.27.0 - For Non-CNTools or Coincashews users

Cardano Node 1.27.0 is out!

IMPORTANT: Take a Backup/Snapshot from your Nodes!!!

– Download new binaries –

cd $HOME/git
rm -rf cardano-node-old/
git clone https://github.com/input-output-hk/cardano-node.git cardano-node2
cd cardano-node2/

– Upgrade ghcup and cabal –

ghcup upgrade
ghcup install ghc 8.10.4
ghcup set ghc 8.10.4
ghc --version
ghcup install cabal 3.4.0.0
ghcup set cabal 3.4.0.0
cabal --version
cabal update

If your version is not on 8.10.4 run command:
ghcup set ghc 8.10.4

– Checkout new Branch 1.27.0 and Compile –

cd $HOME/git/cardano-node2
git fetch --all --recurse-submodules --tags
git checkout tags/1.27.0
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

Note: Depending on your server performance, this process can take between 20-60+ minutes.

– Check if cardano-cli and cardano-node updated to 1.27.0 –

$(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

This should print versions 1.27.0

– Stop old Cardano Node 1.26.2 and replace Binaries with the new Version –

sudo systemctl stop cardano-node

– Copy Binaries to bin folder –

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

– Verify Version –

cardano-node version
cardano-cli version

– If versions 1.27.0, you can start your node –

sudo systemctl start cardano-node

– Check your node progress –

journalctl --unit=cardano-node --follow 

– Clean up old directories –

cd $HOME/git
mv cardano-node/ cardano-node-old/
mv cardano-node2/ cardano-node/

Hope this helps!

5 Likes

Not sure what I may be doing wrong, but the “$HOME/git/cardano-node2/dist-newstyle/build” directory is empty, hence the verification commands to -check if cardano-cli and cardano-node updated to 1.27.0- part results in the following:
(** :~/git/cardano-node2$ $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name “cardano-cli”) version
version: command not found -**)

Any suggestions?

To add to my previous comment:
Upon running “cabal build cardano-node cardano-cli”
(which is the step prior to the verification mentioned in the previous comment)

The result is:
Failed to build basement-0.0.11.
Build log (
/home/ada/.cabal/logs/ghc-8.10.4/basement-0.0.11-4b1dd46f3d630941c349f1ebec240d67a0cedc6254134c7c52dcc3a6d35e76d3.log
):
Configuring library for basement-0.0.11…
Preprocessing library for basement-0.0.11…
linking dist/build/Basement/Terminal/Size_hsc_make.o failed (exit code 1)
rsp file was: “dist/build/Basement/Terminal/hsc2hscall121937-2.rsp”
command was: /usr/bin/gcc dist/build/Basement/Terminal/Size_hsc_make.o dist/build/Basement/Terminal/Size_hsc_utils.o -o dist/build/Basement/Terminal/Size_hsc_make -fuse-ld=gold -Wl,-z,noexecstack -fuse-ld=gold -Wl,-z,noexecstack -L/usr/local/lib/ghc-8.10.4/base-4.14.1.0 -Wl,-R,/usr/local/lib/ghc-8.10.4/base-4.14.1.0 -L/usr/local/lib/ghc-8.10.4/integer-gmp-1.0.3.0 -Wl,-R,/usr/local/lib/ghc-8.10.4/integer-gmp-1.0.3.0 -L/usr/local/lib/ghc-8.10.4/ghc-prim-0.6.1 -Wl,-R,/usr/local/lib/ghc-8.10.4/ghc-prim-0.6.1 -lc -lm -L/usr/local/lib/ghc-8.10.4/rts -Wl,-R,/usr/local/lib/ghc-8.10.4/rts -lm -lrt -ldl -lnuma -lpthread
error: /usr/bin/ld.gold: error: cannot find -lnuma
collect2: error: ld returned 1 exit status

cabal: Failed to build basement-0.0.11 (which is required by
test:cardano-cli-test from cardano-cli-1.27.0, test:cardano-node-test from
cardano-node-1.27.0 and others). See the build log above for details.

Edit:
*** UPDATE *** Found my answer. I was missing libnuma -dev. Once I installed ( apt-get install -y libnuma-dev ) The install progressed smoothly.

1 Like

Glad you were able to find the solution - my sincerest apologies as I have been away from the forums.