cardano node stucks on activation

You seem to be missing the /opt/cardano/cnode/scripts folder. I’m not familiar with cntools @Alexd1985 will know more about this folder.

But yeah to trace the problem down we need to start with the systemd config file as it is trying to change directory into a folder that does not exist. (maybe the scripts folder)

hi thanks for your reply, i did a fresh install and it seems much better now, since i used @Alexd1985 's guide. now i just have a problem with ./gLiveView.sh, it says:
COULD NOT CONNECT TO A RUNNING INSTANCE, 3 FAILED ATTEMPTS IN A ROW!
while the node is running fine:
sudo systemctl status cnode
● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-01-26 14:43:27 CET; 7min ago
Main PID: 144314 (bash)
Tasks: 17 (limit: 19158)
Memory: 934.0M
CGroup: /system.slice/cnode.service
β”œβ”€144314 bash /opt/cardano/cnode/scripts/cnode.sh
└─144458 /home/cardano/.cabal/bin/cardano-node run --topology /opt/cardano/cnode/files/topology.json --config /opt/cardano/cnode/files/config.json --database-path /opt/cardano/cnode/db --socket-path /opt/cardano/cnode>

Jan 26 14:43:27 systemd[1]: Started Cardano Node.
Jan 26 14:43:39 cnode[144458]: Node configuration: NodeConfiguration {ncSocketConfig = SocketConfig {ncNodeIPv4Addr = Last {getLast = Just 0.0.0.0}, ncNodeIPv6Addr = Last {getLast = Nothing}, ncNodePortNumber = Last {get>
lines 1-12/12 (END)

type cardano-node - -version

did u ran the command at STEP 2?

git pull origin master

type cardano-node - -version
cardano-node is hashed (/home/cardano/.cabal/bin/cardano-node)
bash: type: -: not found
bash: type: -version: not found

yes i did because it didnt worked without
git pull origin master

not ok, u must repeat the steps fom STEP2 but ignore the command

okey thanks i will do it again

can i just repeat without deleting something?

of course… just repeat the steps. do not delete nothing
also u can skip the step
sudo rm -R cardano-node

1 Like

Alex meant: type cardano-node --version
(don’t type type) :slight_smile:

2 Likes

alright im on it, thanks so much!!

yes i just noticed that, thanks!! :laughing:

hey alex, when i went to work the node was almost synced, now it lost the connection and i cant start it says:
./gLiveView.sh
bash: ./gLiveView.sh: No such file or directory

node is active and running

sudo systemctl status cnode
● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-01-27 18:29:04 CET; 13s ago
Main PID: 2235 (bash)
Tasks: 10 (limit: 19158)
Memory: 73.3M
CGroup: /system.slice/cnode.service
β”œβ”€2235 bash /opt/cardano/cnode/scripts/cnode.sh
└─2380 /home/cardano/.cabal/bin/cardano-node run --topology /opt/cardano/cnode/files/topology.json --config /opt/cardano/cnode/files/config.json --database-path /opt/cardano/cnode/db --socket-path /opt/cardano/cnode/sockets/node0.socket --po>

do you know how i can run ./gLiveView.sh again?

never mind i was in the wrong directory

1 Like

sorry to bother you again, but my guild live view is now stuck at β€œstarting”.

    > Cardano Node - (Relay - Mainnet) : 1.33.0  < 

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Uptime: 00:15:28 β”‚ Port: ??? β”‚ Guild LiveView v1.25.1 β”‚
β”‚--------------------------------└────────────┴─────────────────────────
β”‚ Epoch 0 [0.0%], 3d 03:48:37 remaining β”‚
β”‚ β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β––β–– β”‚
β”‚ β”‚
β”‚ Block : 0 Tip (ref) : 51739883 Forks : 0 β”‚
β”‚ Slot : 0 Status : starting Total Tx : 0 β”‚
β”‚ Slot epoch : 0 Density : 0.0 Pending Tx : 0/0K β”‚
β”‚- CONNECTIONS --------------------------------------------------------β”‚
β”‚ P2P : disabled Incoming : 0 Outgoing : 0 β”‚
β”‚- BLOCK PROPAGATION --------------------------------------------------β”‚
β”‚ Last Delay : 0.00s Served : 0 Late (>5s) : 0 β”‚
β”‚ Within 1s : 0.00% Within 3s : 0.00% Within 5s : 0.00% β”‚
β”‚- NODE RESOURCE USAGE ------------------------------------------------β”‚
β”‚ CPU node : 105% Mem (Live) : 0.0G GC Minor : 40769 β”‚
β”‚ Mem (RSS) : 0.1G Mem (Heap) : 0.0G GC Major : 802 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
TG Announcement/Support channel: Telegram: Contact @guild_operators_official

[esc/q] Quit | [i] Info | [p] Peer Analysis

thanks,

Type sudo systemctl status cnode
as long u see the CPU ~ 100% it means the node is working to start… it will take more minutes… keep it under monitoring and keep me updated

1 Like

sudo systemctl status cnode
● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-01-27 19:00:32 CET; 28s ago
Main PID: 40934 (bash)
Tasks: 10 (limit: 19158)
Memory: 138.5M
CGroup: /system.slice/cnode.service
β”œβ”€40934 bash /opt/cardano/cnode/scripts/cnode.sh
└─41069 /home/cardano/.cabal/bin/cardano-node run --topology /opt/cardano/cnode/files/topology.json --config /opt/cardano/cnode/files/config.json --database-path /opt/cardano/cnode/db --socket-path /opt/cardano/cnode/sockets/node0.socket --p>

Jan 27 19:00:32 systemd[1]: Started Cardano Node.
Jan 27 19:00:34 cnode[41069]: Node configuration: NodeConfiguration {ncNodeIPv4Addr = Just 0.0.0.0, ncNodeIPv6Addr = Nothing, ncNodePortNumber = Just 6000, ncConfigFile = β€œ/opt/cardano/cnode/files/config.json”, ncTopologyFile = "/opt/cardano/cn>
lines 1-12/12 (END)
(just restarted)
okey im gonna wait a while, hopefully i dont need to sync all again :sweat_smile:

type free -m and share the output

1 Like

free -m
total used free shared buff/cache available
Mem: 16003 328 160 0 15515 15385
Swap: 0 0 0

maybe it checks the sync progress so far and continues once everything has been checked? because i was at epoch 302 at the morning

u should configure the swap file

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

now to make it permanently type
sudo nano /etc/fstab

and add to the end, as a new line
/swapfile swap swap defaults 0 0
save the file (Ctrl + x then Y then ENTER)

check if the configuration was successfully

free -m

then try
sudo systemctl restart cnode

1 Like

done, it was successfull but still just β€œstarting”