cardano-community / guild-operators

Artifacts and scripts created by Guild operators
https://cardano-community.github.io/guild-operators
MIT License
354 stars 177 forks source link

gLiveView Error #909

Closed ClecknerT closed 3 years ago

ClecknerT commented 3 years ago

Summary After launching the cnode, I am receiving an error when trying to use gLiveView. 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

betancourtl commented 3 years ago

I'm running into the same issue.

betancourtl commented 3 years ago

Seems like it's failing on this line:

https://github.com/cardano-community/guild-operators/blob/51cc10086e8ad26d7ae254f0fa0903d5b703857e/scripts/cnode-helper-scripts/gLiveView.sh#L119

To get ./gLiveView.sh running

  1. open the ./scripts/env file
  2. Set UPDATE_CHECK=N
  3. run ./scripts/gLiveView.sh
betancourtl commented 3 years ago

I believe this is the line and the commit the broke it. https://github.com/cardano-community/guild-operators/commit/a109e5c3626cbc6ceb666617fb621382aff3e7fd#diff-9f1a45ec3b3d926a83c39e4bb443cb019c237562ed6705f0a6efdc0580984558R125

betancourtl commented 3 years ago

Screen Shot 2021-05-08 at 1 05 23 AM

rdlrt commented 3 years ago

@ClecknerT - Are you following the guide to setup your install? or did you simply download gLiveView.sh from github and trying to get it running?

Make sure your env file is downloaded from the right branch too

rdlrt commented 3 years ago

@webdeveloperpr - Deleted off topic (and slightly inaccurate) messages. It sounds like based on your screenshot and findings, you have downloaded a copy of scripts without the accompanying env file (see download instructions ) or used an older copy of env file.

betancourtl commented 3 years ago

I did follow the guide...

kyohmyhi commented 3 years ago

Hi guys, I am consistently getting the same message everytime I try to run ./gLiveView.sh ...I think it has something to do with the env file but I am new to this and don't know exactly where to go...this recently started happening because I have successfully synced with the blockchain before

kyohmyhi commented 3 years ago

@webdeveloperpr thanks for the update, again, I am new, how do I get to the env file to update to UDATE_CHECK="N"...because when I run scripts/env file, I get -bash: /scripts/env: No such file or directory

betancourtl commented 3 years ago

If you followed this guide it should be under

${CNODE_HOME}/scripts/env

you can open it with nano or vim

vim ${CNODE_HOME}/scripts/env

# or 

nano ${CNODE_HOME}/scripts/env
kyohmyhi commented 3 years ago

@webdeveloperpr Hi, I am using a guide off of Coin Cashew and comparing the two, they look a little different, which might be leading to the problem...let me read the guide here and see if it resolves the problem, thanks

betancourtl commented 3 years ago

@kyohmyhi I tried both and ran into the same issues. That is how I ended up here.

kyohmyhi commented 3 years ago

@webdeveloperpr well i currently cant even open ${CNODE_HOME}/scripts/env...it keeps saying nothing is in the directory so I had to miss something somewhere

kyohmyhi commented 3 years ago

well the good news is that I figured out how to change it using nano env...the bad news is now im getting a completely new error message when I run ./gLiveView.sh

ERROR: You specified 12788 as your EKG port, but it looks like the cardano-node (PID: 1568 ) is not listening on this port. Please update the config or kill the conflicting process first.

(I didnt change anything but changed the Y to N as instructed)

betancourtl commented 3 years ago

try rebooting the instance

sudo reboot

if you are using systemd then the node should try to start back up after the reboot.

rumourscape commented 3 years ago

Guys I just installed node via CNTools today and am getting this same issue of protocol parameters not found in both gliveview and CNTools.

kyohmyhi commented 3 years ago

it worked @webdeveloperpr thank you so much!

rdlrt commented 3 years ago

@rumourscape - protocol-parameters not working is an issue while connecting to your node, since you've just installed the node , I bet your issue is that your node may not be started or synching atm, you need to follow the SPO school and familiarise with the usage before using CNTools (as mentioned on home page). You can only start viewing the status once node creates socket file which - for first run - will be after your node has synched

@webdeveloperpr - we do not test coincashew guide, neither have received any feedback from them. Setting update to N is your choice, but as mentioned earlier, the problem isn't with the parameter but perhaps your sync status (happens for new runs) - which prevented the availability of Socket file to query protocol params from node. Trying to "hack" it will make assumptions on things like decentralisation Param and deviate from expected behaviour of gLV