Script for cardano-node software upgrade (CNTOOLS users)

Hi,

learning coding… my first script for today is for node software upgrade. Enjoy it!

  1. download
wget https://raw.githubusercontent.com/Alexd1985/node_software_upgrade_script/main/software_upgrade.sh

or

curl https://raw.githubusercontent.com/Alexd1985/node_software_upgrade_script/main/software_upgrade.sh > software_upgrade.sh
  1. make executable:
chmod +x software_upgrade.sh
  1. run
./software_upgrade.sh

I added support for current version check

Added menu for version select, the latest 10 versions are shown

image

Contributors: Alex (CHARITY Pool), George (APEX Pool) and Trey (CHAOS Pool) !

Thank you,

22 Likes

Do we use the wget into the scripts folder?

1 Like

doesn’t matter … use it on folder where u will want to save… I saved it on scripts folder for example,

2 Likes

Everything worked good for me. Thanks for making this!

2 Likes

updated to 1.33.0 with your script, nice.

As per iohk note below, it took me about 2 hours to sync, be aware and patient.

Breaking Changes

With this version, the ledger state will need to be replayed from the genesis block, meaning that the initial synchronisation may be slow. Users should account for this when deploying the node.

4 Likes

perfect worked great!

1 Like

Everything looking good. Thanks for the script!

1 Like

upgrading with no backup using your script. if my servers break we know who to blame :stuck_out_tongue: (myself)

also if you can add the 2 steps with the upgrade / version. I know its in the terminal image, but helpful for dummies like myself.

1 Like

Which steps? I don’t understand…

PS: the upgrade should work like a charm :slight_smile:

Where it ask if you want to upgrade Linux and what version.

Ok, where should I add these steps?

Under ./script command

My block became a relay, anything to worry about?

Nope, it will show relay while the node is starting… be patient because it will take more hours to start (ledger had few changes)

1 Like

Great job Alex. Started the upgrade with your script :+1:

Just to add my experience with upgrade.

  1. First relay took around 2hrs 50mins, ah.
  2. Created a db.tar.gz compressed copy of the DB folder in relay1 and transferred it to my other relay & BP(took 30mins, parallel copy using cyber duck).
  3. For 2nd relay & BP commented the below part in Alex script and started the upgrade in parallel.

sudo systemctl start cnode

sleep 10

echo “The node has been started… opening gLiveView!”

sleep 3

cd $CNODE_HOME/scripts

./gLiveView.sh

  1. Once node upgrade completed. Moved the existing DB folder to other directory(~/tmp) and uncompressed the db file created in step2.
  2. Started the cnode service and it took around 30mins for both 2nd relay & BP to sync.
  3. overall we saved good amount of weekend time :slight_smile:
2 Likes

Alex,

Great job, once again. Already upgraded 3 relays and currentñy finishing with the BP, no issues at all, flawless!

Thanks so much for your consistent contribution to this community.

Rgds,

Albert. URSA SPO

2 Likes

Great script! Works fine without any problems.

Saving a lot of time with this, thank you :slight_smile:

2 Likes

you’re welcome :beers:

Worked great on the first relay and starting the producer…

THANKS

1 Like