Keep node "running" when I disconnect

I am asking around a few forums and look for the info to but I am a boob with Linux. My infrastructure is in Azure and it is doing well but every time I end my ssh connect the cardano-node stops. I have to input the command again when logging back on at a later time. :broken_heart:

Is that because I am using a poor tool Windows Terminal Preview? I use that tool, or VS Code because I can control literally everything from one tool; PowerShell Core, Java, Azure CLI, BASH, Git, etc… :computer:

I think my answer has something to do with nhup. I will be researching this meow but any senior guidance would save me some time and clicking about the internet like a mad man.

One easy way to keep it running is to add startup-scripts for the nodes and put it in systemd, there is a coin cashew guide for this if you want to read more.


What type of system are you running? I found this site to be super helpful Startup scripts.


Hi There! I think your are looking for the nohup command:

nohup cardano-node run --topology configs/mainnet-topology_new.json --database-path storage/ --socket-path storage/node.socket --host-addr --port 3001 --config ../config.json > nohup.out 2>&1 &

this will preserve the cardano-node process to run even the terminal session ended.
the console log will be stored in nohup.out file. And the process id will be printed out right after you executed the command. But this id can be get by ps -ef command anytime.


My systemd scripts arent working for some reason.


You can start your node in a tmux session:

  • create a tmux session (tmux new-session -s session_name)
  • start your node
  • to exit from tmux session (press Ctrl + b d)
  • to list tmux sessions (tmux ls)
  • attach to tmux session (tmux attach -t session_name)



Hey Alex, thanks for the tmux tip.

Do you know why this is giving me this error?

cardano-cli query protocol-parameters
–out-file params.json

Shelley command failed: query protocol-parameters Error: A query from a certai n era was applied to a ledger from a different era: EraMismatch {ledgerEraName = β€œByron”, otherEraName = β€œAllegra”}

What leads to this problem?

The node is synced?

yes node is synced. How do I check? It seems to be talking and running both block producer and relay.

Download this and run

1 Like

I have it in there. But its grayed out. How do I make it green? I also have the script

Ok, start glive then, what is the output?

Cardano Node - (Relay - Mainnet) : 1.25.1 [9a7331cc] <
β”‚ Uptime: 00:30:15 β”‚ Port: xxxx β”‚ Guild LiveView v1.19.4 β”‚
β”‚ Epoch 215 [100.0%] (node) β”‚
β”‚ 2d 08:38:51 until epoch boundary (chain) β”‚
β”‚ β–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œβ–Œ β”‚
β”‚ β”‚
β”‚ Block : 4662244 Tip (ref) : 22432869 β”‚
β”‚ Slot : 431972 Tip (node) : 7948772 β”‚
β”‚ Density : 5.023 Status : syncing (35.4%) β”‚
β”‚ Processed TX : 0 Out / In β”‚
β”‚ Mempool TX/Bytes : 0 / 0 Peers : 1 1 β”‚

your nodes are not synced, they should be in epoch 249; wait to sync

1 Like

How far away is epoch 249?

I don’t know, depends (could take more hours)… how is ur topology file? did u already modified it?
can you show me?
maybe will be a good idea to add the IOHK nodes back till your nodes will be synced

β€œProducers”: [
β€œaddr”: β€œx.x.x.x”,
β€œport”: xxxx,
β€œvalency”: 1

β€œProducers”: [
β€œaddr”: β€œx.x.x.x”,
β€œport”: xxxx,
β€œvalency”: 1
β€œaddr”: β€œ”,
β€œport”: 3001,
β€œvalency”: 2

save the file and restart your node… check if now is syncing faster

1 Like

How do you stop a node in tmux?

connect to tmux and press Ctrl + c to stope the node

1 Like