# UPDATE CARDANO NODE to 1.26.1 - FOR CNTOOLS users

**URL:** <https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634>\
**Category:** Setup a Stake Pool\
**Created:** [7 April 2021 09:33 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634 "2021-04-07T09:33:08Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [7 April 2021 09:33 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/1 "2021-04-07T09:33:08Z")

</div>

[Cardano Node 1.26.1](https://github.com/input-output-hk/cardano-node/releases/tag/1.26.1)

This release includes significant performance improvements and numerous other minor improvements and feature additions. In particular the reward calculation pause is eliminated, and the CPU load for relays handling lots of incoming transactions should be significantly reduced.  
The focus of the current development work is on completing and integrating support for the Alonzo era. This release includes many of the internal changes but does not yet include support for the new era.

* * *

bofore to start it’s better also to update the server

sudo apt-get update  
sudo apt-get upgrade  
sudo reboot

**UPDATE STEPS to 1.26.1**

Few recommendation before to start:

- perform a snapshot for server (if u have this option offered by your provider) before to start the update

- try to update the Relay first

- STEP 1 - download the prereqs.

```auto
cd "$HOME/tmp"
curl -sS -o prereqs.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/prereqs.sh
chmod 755 prereqs.sh
./prereqs.sh 
. "${HOME}/.bashrc"

```

- STEP 2 - building the node

stop the node :

```auto
sudo systemctl stop cnode

```

build the node

```auto
cd ~/git
sudo rm -R cardano-node
git clone https://github.com/input-output-hk/cardano-node 
cd cardano-node

git fetch --tags --all
git checkout 1.26.1
git pull origin master

echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh

```

- wait till the node will be build and start it again:

after 40-50 minutes:  
:~/git/cardano-node$ cardano-node --version  
cardano-node 1.26.1 - linux-x86\_64 - ghc-8.10  
git rev 2b4b387cc6175b8eac40c30003bfdb92c7b359c2

now you can start the node

```auto
sudo systemctl restart cnode
#check the status
sudo systemctl status cnode

```

start glive

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/4/e/4ef48ee919e5ace2a72ebee63be6af4a32dd75db.png)

grab a coffee and let it sync (it will take 30-40 minutes)

Don’t panic… it took over 1h:30m but the results is:

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/c/9c47919ea906ed6cb46e45abb54a2a1cf35b18a9.png)

run again the bellow script (press Y for topology updater only for the RELAYS)

```auto
./deploy-as-systemd.sh

```

- Note that this release will automatically perform a DB migration on the first startup after the update. The **migration should take 10-20 minutes** however it can take up to 60 minutes depending on your CPU. If this is a problem for your use, then see below for steps to mitigate this.
- The format of the `cardano-cli query tip` query has changed - see release notes for the CLI below.

### Steps to mitigate downtime for this update

This release will automatically perform a DB migration on the first startup after the update. The migration should take 10-20 minutes however it can take up to 60 minutes depending on your CPU.

To mitigate downtime:

1. Update a non-production mainnet node
2. Take a DB snapshot
3. Stop production node
4. Backup and replace DB with snapshot
5. Restart production node on 1.26.1
6. Repeat steps 3-5 for all production nodes

Thanks

---

<div class="post-metadata">

**Author:** ![tsipou](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tsipou/32/25184_2.png) [@tsipou](https://forum.cardano.org/u/tsipou)\
**Post date:** [7 April 2021 10:17 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/2 "2021-04-07T10:17:35Z")

</div>

great job to post it as usual so fast 🙂

just another option- i prefer to delete old version  
cd ~/git  
rm -rf cardano-node **(I like to use clean code)**  
git clone [GitHub - input-output-hk/cardano-node: The core component that is used to participate in a Cardano decentralised blockchain.](https://github.com/input-output-hk/cardano-node)  
cd cardano-node  
git fetch --tags --all  
git tag -l  
git checkout tags/1.26.1  
echo -e “package cardano-crypto-praos\n flags: -external-libsodium-vrf” \> cabal.project.local  
$CNODE\_HOME/scripts/cabal-build-all.sh

---

<div class="post-metadata">

**Author:** ![t0m3kf](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/t0m3kf/32/47618_2.png) [@t0m3kf](https://forum.cardano.org/u/t0m3kf)\
**Post date:** [7 April 2021 10:36 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/3 "2021-04-07T10:36:43Z")

</div>

Is there any deadline to upgrade the node? What happens if the network is on 1.26.1 and someone is still running 1.25.1? Just out of curiosity

---

<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:** [7 April 2021 10:38 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/4 "2021-04-07T10:38:32Z")

</div>

the new deadline should be Alfonzo era I think… for the moment u can run 1.25.1, Now I’m updating my test relay, keep it under monitoring and after few days I will update also my Producer and the Relays

---

<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:** [7 April 2021 10:39 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/5 "2021-04-07T10:39:11Z")

</div>

no problem, updated 😉  
thx;

---

<div class="post-metadata">

**Author:** ![ACOL\_pool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/acol_pool/32/34916_2.png) [@ACOL\_pool](https://forum.cardano.org/u/ACOL_pool)\
**Post date:** [7 April 2021 11:28 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/6 "2021-04-07T11:28:30Z")

</div>

Thanks for the snapshoot … I was thinking I made something wrong … so going to grab a cofee 🙂

---

<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:** [7 April 2021 11:30 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/7 "2021-04-07T11:30:35Z")

</div>

Nope, you will need to wait… it will re-sync all the db

---

<div class="post-metadata">

**Author:** ![ACOL\_pool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/acol_pool/32/34916_2.png) [@ACOL\_pool](https://forum.cardano.org/u/ACOL_pool)\
**Post date:** [7 April 2021 11:32 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/8 "2021-04-07T11:32:02Z")

</div>

yeah I did everything from another host, moved files on relay and it was this exact screen… finaly made everthing from scratch and just saw your post 🙂

---

<div class="post-metadata">

**Author:** ![niwde](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/niwde/32/29821_2.png) [@niwde](https://forum.cardano.org/u/niwde)\
**Post date:** [7 April 2021 11:33 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/9 "2021-04-07T11:33:52Z")

</div>

So that means you can skip this update and use the next version?

---

<div class="post-metadata">

**Author:** ![OffsetPool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/offsetpool/32/32600_2.png) [@OffsetPool](https://forum.cardano.org/u/OffsetPool)\
**Post date:** [7 April 2021 11:36 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/10 "2021-04-07T11:36:18Z")

</div>

My BP, after one hour, still have the following screen… Do I need to start to worry? I have 4 VCPU… ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/c/4/c454ec3000590e3de7ce24d57bf70718c59384b0.png)

---

<div class="post-metadata">

**Author:** ![OffsetPool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/offsetpool/32/32600_2.png) [@OffsetPool](https://forum.cardano.org/u/OffsetPool)\
**Post date:** [7 April 2021 11:47 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/11 "2021-04-07T11:47:14Z")

</div>

Now looks better but still not synced ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/f/6/f6bdbabf3029906ea6c2e580f5b45f80367a14d1.png)

---

<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:** [7 April 2021 11:52 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/12 "2021-04-07T11:52:07Z")

</div>

wait… they said that for first time it will take more time to re-sync the DB

---

<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:** [7 April 2021 11:52 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/13 "2021-04-07T11:52:53Z")

</div>

not so much time… but enough… you will need to upgrade until Alonzo era …

---

<div class="post-metadata">

**Author:** ![mdsullivan](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/mdsullivan/32/36097_2.png) [@mdsullivan](https://forum.cardano.org/u/mdsullivan)\
**Post date:** [7 April 2021 12:20 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/14 "2021-04-07T12:20:14Z")

</div>

Thanks for this! I built my node from scratch using primarily the coincashew guide. I like the simplicity of CNTOOLS. Would I run into problem rebuilding the node with your guide instead as I update to 1.26.1? Would I just need to copy my current keys and addr files to their respective appropriate places once it is built?

---

<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:** [7 April 2021 12:37 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/15 "2021-04-07T12:37:42Z")

</div>

It will be fine but u will need to migrate/rename some files… cntools using a specific folder structure

---

<div class="post-metadata">

**Author:** ![POOLG](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/poolg/32/30084_2.png) [@POOLG](https://forum.cardano.org/u/POOLG)\
**Post date:** [7 April 2021 12:38 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/16 "2021-04-07T12:38:01Z")

</div>

Thanks Alex!

Did you set

> TraceMemPool = true

?

The bug is still open: [[BUG] - TraceMemPool set to true lead to missed slots on block producers · Issue #2565 · input-output-hk/cardano-node · GitHub](https://github.com/input-output-hk/cardano-node/issues/2565)

However there is also a hint that the issue might have been solved by some other change which is part of 1.26.1:

> <https://github.com/input-output-hk/ouroboros-network/issues/2933>
>
> Node and Consensus chatted about input-output-hk/cardano-node#2350 on Slack. Thi…s Issue captures our first thought about how to assist.
> 
> The SPOs are seeing high CPU usage until they disable mempool tracing. The leading suspect is that we're seeing duplicate rejection events when we fetch the same tx from multiple peers. See that \`cardano-node\` ticket for more info.
> 
> The node's TxSub logic -- in particular contrast to BlockFetch -- makes no attempt to fetch a tx from only one peer. In other words, the various TxSub server threads running on a node only first synchronize by adding their fetched txs to the node's single mempool. In general, only the first of the per-peer TxSub server thread to do so will be able to add each tx.
> 
> So we expect these duplicate rejections given our design (favoring the simplicity of not prematurely synchronizing the TxSub server threads), and have not seen them causing negligible (edit: I meant "non-negligible") CPU/network overhead eg. This is supported by the SPOs seeing less utilization by merely disabling the mempool tracers.
> 
> This Issue is therefore to emit a distinct event for duplicate transactions, separate from txs that are rejected for more interesting reasons. This will allow the node team to easily avoid the apparent expense of these duplicate tx rejection ids without losing all the mempool tracing logs.

Any observations on the CPU utilization so far?

Your feedback is very much appreciated!

---

<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:** [7 April 2021 12:53 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/17 "2021-04-07T12:53:54Z")

</div>

I never disabled it;  
I am driving right now… I will provide an update later

Cheers,

---

<div class="post-metadata">

**Author:** ![Zoster](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/zoster/32/30345_2.png) [@Zoster](https://forum.cardano.org/u/Zoster)\
**Post date:** [7 April 2021 13:10 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/18 "2021-04-07T13:10:07Z")

</div>

it’s a unbelievable update speed. thx @Alexd1985

---

<div class="post-metadata">

**Author:** ![milky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/milky/32/32748_2.png) [@milky](https://forum.cardano.org/u/milky)\
**Post date:** [7 April 2021 13:38 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/19 "2021-04-07T13:38:54Z")

</div>

After compilation I needed to copy cardano-cli and cardano-node to bin folder, because it showed 1.25 version instead 1.26:

```
sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli

```

sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name “cardano-node”) /usr/local/bin/cardano-node

Now it works, thank you anyway!

---

<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:** [7 April 2021 14:05 UTC](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634/20 "2021-04-07T14:05:02Z")

</div>

It depends how u installed first time the node

[Next page](https://forum.cardano.org/t/update-cardano-node-to-1-26-1-for-cntools-users/56634.md?page=2)
