Upgrading to Node 8.1.1 / CNTOOLS

Im trying to upgrade the node from 1.35.5 to 8.1.1
Im using the following:

"cd ~/git
sudo rm -R cardano-node
git clone GitHub - input-output-hk/cardano-node: The core component that is used to participate in a Cardano decentralised blockchain.
cd cardano-node

git fetch --tags --all
git checkout 8.1.1

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

At the very end I get the following message. Im not able to upgrade to 8.1.1
Screenshot from 2023-06-27 10-37-32

Did you update libsodium ?

If not here are the commands you have to use before.

cd ~/git

mv libsodium libsodium_old

git clone [GitHub - input-output-hk/libsodium: A modern, portable, easy to use crypto library. ](https://github.com/input-output-hk/libsodium)

cd libsodium

git checkout dbb48cc

./autogen.sh

./configure

make

make check

sudo make install
1 Like

Ah. Thank you.
When I get back to my desk, ill give it a try. I appreciate the help.

1 Like

For what its worth, I have the latest libsodium and am getting the same result:

cabal: Could not resolve dependencies:
[__0] trying: cardano-cli-8.1.1 (user goal)
[__1] trying: hedgehog-extras-0.4.5.1 (dependency of cardano-cli)
[__2] next goal: hw-aeson (user goal)
[__2] rejecting: hw-aeson-0.1.8.0, hw-aeson-0.1.7.0, hw-aeson-0.1.6.0
(constraint from user target requires ==0.1.5.0)
[__2] rejecting: hw-aeson-0.1.5.0 (conflict: hedgehog-extras =>
hw-aeson>=0.1.8.0)
[__2] skipping: hw-aeson-0.1.4.0, hw-aeson-0.1.3.0, hw-aeson-0.1.2.0,
hw-aeson-0.1.1.1, hw-aeson-0.1.1.0, hw-aeson-0.1.0.2, hw-aeson-0.1.0.1,
hw-aeson-0.1.0.0 (has the same characteristics that caused the previous
version to fail: excluded by constraint '>=0.1.8.0' from 'hedgehog-extras')
[__2] fail (backjumping, conflict set: hedgehog-extras, hw-aeson)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-cli, hedgehog-extras, hw-aeson

Deleting build config artifact to remove cached version, this prevents invalid Git Rev

For some reason this command is giving me all kinds of errors.

which command exactly and what kind of errors?

Im Getting:

bash: syntax error near unexpected token `(’
bash: cd: libsodium: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
bash: ./autogen.sh: No such file or directory
bash: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target ‘check’. Stop.
[sudo] password for xxx:
make: *** No rule to make target ‘install’. Stop.

Have you had success upgrading?

I’d got mine to work from 1.35.5 to 8.1.1.

image

Are you using CNTOOLS?

I’ve used these steps:

sudo apt-get update && sudo apt-get upgrade -y && sudo reboot

git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install

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 8.1.1

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

4 Likes

Using these steps now…

After done with installation, add Conwaygenesis File to your config.files.

cd $CNODE_HOME/files
nano config.json

“ConwayGenesisFile”: “/opt/cardano/cnode/files/conway-genesis.json”,

Look something like this:
image

Ctrl+x
Y

nano conway-genesis.json

Paste:

{
“genDelegs”: {}
}

image

Save it

If everything goes well you should be with Version 8.1.1.
GOOD LUCK!

2 Likes

So far, so good.
Just curious what is the Conwaygenesis File?

It came from https://book.world.dev.cardano.org/environments.html#production-mainnet
for the newer version 8.0.0

It seems to work.
Im showing Cardano Node verion 8.1.1
except, now Im having trouble starting the node from the scripts folder.

Im getting errors like this:
Could not find TraceChainDb when attempting to parse /opt/cardano/cnode/files/config.json file in JSON format, please double-check the syntax of your config, or simply download it from guild-operators repository!

Try this:

curl -s -o gLiveView.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/gLiveView.sh

curl -s -o env https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env

chmod 755 gLiveView.sh

After using those commands and then restarting the node,
Im getting this:
Job for cnode.service failed because the control process exited with error code.
See “systemctl status cnode.service” and “journalctl -xeu cnode.service” for details.

Did you restart cnode.sevice?

sudo systemctl restart cnode.service
sudo systemctl status cnode.service

I did.
This is the status:

● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset:>
Active: activating (auto-restart) (Result: exit-code) since Sat 2023-07-01>
Process: 61281 ExecStart=/bin/bash -l -c exec /opt/cardano/cnode/scripts/cn>
Main PID: 61281 (code=exited, status=1/FAILURE)
CPU: 137ms

when I run this command: journalctl -e -f -u cnode

The errors I get are:
ERROR: Failed to load common env file
Jul 01 13:01:17 Relay cnode[61281]: Please verify set values in ‘User Variables’ section in env file or log an issue on GitHub
Jul 01 13:02:35 Relay cnode[61690]: Could not find TraceChainDb when attempting to parse /opt/cardano/cnode/files/config.json file in JSON format, please double-check the syntax of your config, or simply download it from guild-operators repository!