# UPGRADE CARDANO NODE to 1.29.0 - COINCASHEW users

**URL:** <https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677>\
**Category:** Setup a Stake Pool\
**Tags:** stake-pools, pool-operator, cardano-node\
**Created:** [29 August 2021 00:21 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677 "2021-08-29T00:21:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![baocontact](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/baocontact/32/26890_2.png) [@baocontact](https://forum.cardano.org/u/baocontact)\
**Post date:** [29 August 2021 00:21 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/1 "2021-08-29T00:21:56Z")

</div>

Thanks to @Alexd1985 for his upgrade note for CNTools users.  
Here is a quick how-to note for CoinCashew fellas to upgrade to 1.29.0.

This 1.29.0 release is an important update to the node that provides the functionality that is needed following the Alonzo hard fork.  
**All users, including stake pool operators, must upgrade to this version (or a later version) of the node.**

**IMPORTANT: As usual, don’t forget to backup your nodes before starting these updates.**

**STEP 1 - Clone the latest source and checkout the branch 1.29.0**

```auto
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.29.0

```

**STEP 2 - Make sure to have at least ghc 8.10.4 and cabal 3.4.0.0**

```auto
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

```

**STEP 3 - Configure & Compile**

```auto
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

```

_**Now make sure that your version of your freshly built cardano-cli and cardano-node is correct (1.29.0):**_

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

```

**STEP 4 - Download the official mainnet-alonzo-genesis.json file and modify the mainnet-config.json file**

```auto
cd $NODE_HOME
wget https://hydra.iohk.io/job/Cardano/iohk-nix/cardano-deployment/latest-finished/download/1/mainnet-alonzo-genesis.json
chmod 755 mainnet-alonzo-genesis.json

```

_ **Edit the mainnet-config.json** _

```auto
nano mainnet-config.json

```

_ **and add these 2 lines in it** _

```auto
  "AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
  "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",

```

_ **for example:** _

```auto
{
  "AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
  "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
  "ApplicationName": "cardano-sl",
  "ApplicationVersion": 1,
  "ByronGenesisFile": "mainnet-byron-genesis.json",
  "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
  "LastKnownBlockVersion-Alt": 0,
  "LastKnownBlockVersion-Major": 3,
  "LastKnownBlockVersion-Minor": 0,
  "MaxKnownMajorProtocolVersion": 2,
  "Protocol": "Cardano",
  "RequiresNetworkMagic": "RequiresNoMagic",
  "ShelleyGenesisFile": "mainnet-shelley-genesis.json",
  "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
[...]

```

**STEP 5 - Shut your node down, replace your old binaries with the new ones in your bin folder and start your node again**

_ **Stop the node** _

```auto
sudo systemctl stop cardano-node

```

_ **Replace old binaries with the new ones** _

```auto
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

```

_ **Double check the version** _

```auto
cardano-node version
cardano-cli version

```

_ **Start your node again** _

```auto
sudo systemctl start cardano-node

```

_ **Check the logs:** _

```auto
journalctl --unit=cardano-node --follow 

```

_ **Now clean your mess** _

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

```

**Alonzo is almost here guys 🙂**  
**Cheers!**

---

<div class="post-metadata">

**Author:** ![DavidNC](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/davidnc/32/31486_2.png) [@DavidNC](https://forum.cardano.org/u/DavidNC)\
**Post date:** [30 August 2021 16:30 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/2 "2021-08-30T16:30:41Z")

</div>

thanks for the post/guide! 🙌

---

<div class="post-metadata">

**Author:** ![baocontact](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/baocontact/32/26890_2.png) [@baocontact](https://forum.cardano.org/u/baocontact)\
**Post date:** [1 September 2021 09:47 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/3 "2021-09-01T09:47:08Z")

</div>

You’re welcome mate. 🕶

---

<div class="post-metadata">

**Author:** ![Anslume](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/anslume/32/32594_2.png) [@Anslume](https://forum.cardano.org/u/Anslume)\
**Post date:** [2 September 2021 10:33 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/4 "2021-09-02T10:33:44Z")

</div>

Thanks for this. Just a stupid question? No specific file to edit for the tesnet? Thanks!

---

<div class="post-metadata">

**Author:** ![baocontact](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/baocontact/32/26890_2.png) [@baocontact](https://forum.cardano.org/u/baocontact)\
**Post date:** [3 September 2021 23:23 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/6 "2021-09-03T23:23:58Z")

</div>

Well if you want to configure your cardano node for the testnet, you should download the official testnet config files here (testnet line) : [https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/index.html](https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/index.html)

Same thing for mainnet, you should have these lines in your testnet-config.json file:

```auto
  "AlonzoGenesisFile": "testnet-alonzo-genesis.json",
  "AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",

```

Does it answer to your question?

---

<div class="post-metadata">

**Author:** ![Anslume](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/anslume/32/32594_2.png) [@Anslume](https://forum.cardano.org/u/Anslume)\
**Post date:** [4 September 2021 17:11 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/7 "2021-09-04T17:11:45Z")

</div>

Thanks a lot baocontact.

Yes it answer and it’s exactly what I did yesterday evening and I forgot to update this post.  
Thanks again!  
(I have noticed my testnet node is still having a delay to sync though, don’t know if it’s something to do with the upgrade)

---

<div class="post-metadata">

**Author:** ![NicoM](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/nicom/32/28567_2.png) [@NicoM](https://forum.cardano.org/u/NicoM)\
**Post date:** [5 September 2021 09:23 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/8 "2021-09-05T09:23:36Z")

</div>

Thanks for the Guide!! I had to upgrade my RAM to 16GB, my nodes couldn’t handle the workload and were getting killed. Everything working fine now.

---

<div class="post-metadata">

**Author:** ![Jennifer\_Marston](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jennifer_marston/32/37385_2.png) [@Jennifer\_Marston](https://forum.cardano.org/u/Jennifer_Marston)\
**Post date:** [6 September 2021 18:36 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/9 "2021-09-06T18:36:17Z")

</div>

This was very helpful! Thank you.

---

<div class="post-metadata">

**Author:** ![eddycarra](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/eddycarra/32/26365_2.png) [@eddycarra](https://forum.cardano.org/u/eddycarra)\
**Post date:** [28 September 2021 02:46 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/10 "2021-09-28T02:46:28Z")

</div>

Anyone else getting stuck in a …starting loop in gLiveView? My BP after the update will run in starting for about 30-50 mins (most likely the db migration) and then kick over to synching, but then immediately fall back to …starting.

Node: 8GB Mem, 4vCPU.

This happends everytime:

```auto
Sep 27 23:17:34 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:34.14 UTC] Replayed block: slot SlotNo 40283991 of At (SlotNo 40321032)
Sep 27 23:17:37 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:37.33 UTC] block replay progress (%) = 100.0
Sep 27 23:17:37 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:37.72 UTC] before next, messages elided = 40284006
Sep 27 23:17:37 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:37.72 UTC] Replayed block: slot SlotNo 40305522 of At (SlotNo 40321032)
Sep 27 23:17:37 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:37.72 UTC] Replayed block: slot SlotNo 40305529 of At (SlotNo 40321032)
Sep 27 23:17:40 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:40.52 UTC] block replay progress (%) = 100.0
Sep 27 23:17:40 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:40.58 UTC] before next, messages elided = 40305616
Sep 27 23:17:40 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:40.58 UTC] Replayed block: slot SlotNo 40321032 of At (SlotNo 40321032)
Sep 27 23:17:40 node cardano-node[3350]: [ada-node:cardano.node.ChainDB:Info:5] [2021-09-28 03:17:40.58 UTC] Opened lgr db
Sep 27 23:18:49 node cardano-node[3346]: /home/cardano/cardano-my-node/startBlockProducingNode.sh: line 11: 3350 Killed cardano-node run --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT}

```

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [28 September 2021 04:12 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/11 "2021-09-28T04:12:10Z")

</div>

To less RAM, 1.29.0 needs more RAM ~10

Setup 2-3’G of SWAP MEM or upgrade the node

---

<div class="post-metadata">

**Author:** ![eddycarra](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/eddycarra/32/26365_2.png) [@eddycarra](https://forum.cardano.org/u/eddycarra)\
**Post date:** [28 September 2021 04:25 UTC](https://forum.cardano.org/t/upgrade-cardano-node-to-1-29-0-coincashew-users/70677/12 "2021-09-28T04:25:07Z")

</div>

Yes, I literally just did this haha. Got it to work and it is now sync’ing. Was about to update here I did two things.

1. Added some additional RTS settings to my startup script

```auto
cardano-node run +RTS -N4 -A16m -qg -qb --disable-delayed-os-memory-return -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT}

```

1. Added 2G of swap space

Helpful and easy to follow swap space documentation.

> **[How To Add Swap Space on Ubuntu 20.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04)**
>
> One way to guard against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to an Ubuntu 20.04 server.

Honestly, I would actually just shutdown my pool as it would be too expensive to operate since I am not minting blocks at the moment. So I am happy I was able to get this to work without having to resize my nodes.
