Use of prereqs.sh script is deprecated this script is no longer going to be maintained

for cntools setup
Use of prereqs.sh script is deprecated this script is no longer going to be maintained. Please consider use new guild-deploy.sh script as documented !
:point_down:
https://cardano-community.github.io/guild-operators/upgrade/

Cheers,

1 Like

HOW TO

STEP 1 - download and run the script

cd "$HOME/tmp"
curl -sS -o guild-deploy.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/guild-deploy.sh
chmod 700 guild-deploy.sh
./guild-deploy.sh -s f -b master

*Please edit scripts/env, scripts/cnode.sh, scripts/dbsync.sh, scripts/submitapi.sh, scripts/ogmios.sh, scripts/gLiveView.sh and scripts/topologyUpdater.sh (alongwith files/topology.json, files/config.json, files/dbsync.json) as required!
*

STEP 2 - source your bashrc file

source "${HOME}"/.bashrc
echo "${PATH}"

STEP 3 - mv all binaris files from /.cabal/bin to /.local/bin

Ideally, you should shutdown services (eg: cnode, cnode-dbsync, etc) prior to running the below to ensure they run from new location (you can also re-deploy them if you haven’t done so in a while, eg: ./cnode.sh -d )

sudo systemctl stop cnode
mv -t "${HOME}"/.local/bin/ "${HOME}"/.cabal/bin/* "${HOME}"/.cargo/* "${HOME}"/bin/*

the bin files should be located now inside “${HOME}”/.local/bin/

cd "${HOME}"/.local/bin/
ls -l

STEP 4 - edit the env, topology updater for Relays and topology file for BP, config.json (tracemempool), etc (the old files were replaced at STEP 1 and need to be re-edited) and re/start the node

sudo systemctl start cnode
sudo systemctl status cnode
2 Likes

Hello Alex,
Question. I did all what you suggested. I can start the relay and Its syncing. But when i do “cardano-cli version” I get this error “cardano-cli: command not found”. Would you happen to know why?
Thank you.

Hi,

what your echo $PATH telling

Hello,
It’s following.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

Check inside the bashrc file if u have another path set

nano "${HOME}/.bashrc"

and check the last lines

Here are last few lines.
export CNODE_HOME=/opt/cardano/cnode

[ -f “/home/pro/.ghcup/env” ] && source “/home/pro/.ghcup/env” # ghcup-envexport LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

[ -f “/home/pro/.ghcup/env” ] && source “/home/pro/.ghcup/env” # ghcup-envexport PATH=“${HOME}/.local/bin:${PATH}”

ok and if you type which cardano-cli

This is what i get.
/home/pro/.local/bin/cardano-cli

and if you type cardano-cli --version

Hummm Thats crazy.
In the guide it says,
cardano-cli version
And that returns command not found.
Bud when i do what you suggested cardano-cli --version i get following.

cardano-cli 1.35.5 - linux-x86_64 - ghc-8.10
git rev 8762a10efe3f9f97939e3cb05edaf04250456702

So i guess every thing is ok, I just need to add – before version?

exactly, everything is fine. you have the right version :smiley:

1 Like

Thank you my friend.

1 Like

Hey, Alex I have done all the steps for the upgrade and I keep seeing this message.

cncli: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory CNCLI current version () different from repo (v5.2.0), consider upgrading!. press any key to proceed …

I do not see that cncli is deployed all the way my sendtip and leaderlog don’t seem to be working. Can you help me check setting?

Hi

Update cncli

cd ~/tmp
./guild-deploy.sh -c

same message

ok,

go to scripts folder and try to start it manually

./cncli.sh leaderlog

what is the message?


When I try to sync manually