I’ve been trying to set up a cardano node for weeks now and I can’t get it to work. I’m following this guide
Guild Operators Documentation and after I finish the installation I try running ./gLiveView.sh but I get this error.
I tried the following:
Remove scripts folder and ran the prereqs.sh
script to recreate them
restarted the node with sudo systemctl restart cnode.service
I found out what the issue was:
This line gets hit whenever this condition is true
clear
if [[ ! -f "${PARENT}"/env ]]; then
echo -e "\nCommon env file missing: ${PARENT}/env"
echo -e "This is a mandatory prerequisite, please install with prereqs.sh or manually download from GitHub\n"
myExit 1
fi
. "${PARENT}"/env offline &>/dev/null # ignore any errors, re-sourced later
if [[ "${UPDATE_CHECK}" == "Y" ]]; then
echo "Guild LiveView version check..."
# check for env update
! checkUpdate env && myExit 1
! . "${PARENT}"/env && myExit 1 "ERROR: CNTools failed to load common env file\nPlease verify set values in 'User Variables' section in env file or log an issue on GitHub"
# source common env variables in case it was updated
. "${PARENT}"/env
case $? in
1) myExit 1 ;;
2) clear ;;
esac
and it throws an error after it sources the file.
So to get ./gLiveView.sh running again just set this variable in the env file to skip the condition.
env file
UPDATE_CHECK=N
then run ./gLiveView.sh and it should be working.
Opened a github issue just in case anyone was interested in following up.
opened 03:43PM - 07 May 21 UTC
Summary
After launching the cnode, I am receiving an error when trying to use g… LiveView.
Output after running ./gLiveView.sh:
Guild LiveView version check...
Failed to query protocol-parameters from node, not yet fully started?
ERROR: CNTools failed to load common env file
Please verify set values in 'User Variables' section in env file or log an issue on GitHub
sudo systemctl status cnode.service shows the node is active.
System info:
OS:Ubuntu
Version: 20.04
Node version: 1.26.2
1 Like
cntools seems to be broken too when it sources the env file.