I ran the script startRelayNode1.sh & startBlockProducingNode.sh from the Coin Cashew guide
my block and relay are talking to each other:
My GLive:
Cardano Node - (Relay - Mainnet) : 1.25.1 [9a7331cc] <
┌────────────────────────┬────────────┬────────────────────────┐
│ Uptime: 00:06:57 │ Port: xxxx│ Guild LiveView v1.19.4 │
│------------------------└────────────┴────────────────────────┤
│ Epoch 12 [86.4%] (node) │
│ 2d 11:35:57 until epoch boundary (chain) │
│ ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▖▖▖▖▖▖▖▖▖ │
│ │
│ Block : 277817 Tip (ref) : 22422243 │
│ Slot : 18656 Tip (node) : 277856 │
│ Density : 100.000 Status : syncing (1.2%) │
│--------------------------------------------------------------│
│ Processed TX : 0 Out / In │
│ Mempool TX/Bytes : 0 / 0 Peers : 1 0 │
└──────────────────────────────────────────────────────────────┘
TG Announcement/Support channel: Telegram: Contact @guild_operators_official
When I close my SSH terminal on the relay it stops the syncing. How do I keep it running in the background?
Hi - either use nohup to put the process into headless mode
nohup startRelayNode1.sh > startRelayNode1.log 2>&1 &
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 127.0.0.1 --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 b…
or create a service, which is a more complicated but more robust solution
1 Like
Thanks for that , one other issue I am having is my “systemd” scripts dont seem to be doing anything, I get a blank response and don’t see my node running when I issue the commands:
sudo systemctl start cardano-node
Also I’m not using the standard “cardano-node run” command I’m using that ./startblockproducernode.sh
the file is
DIRECTORY=/home/xxx/cardano-my-node
PORT=xxxx
HOSTADDR=0.0.0.0
TOPOLOGY={DIRECTORY}/mainnet-topology.json
DB_PATH= {DIRECTORY}/db
SOCKET_PATH={DIRECTORY}/db/socket
CONFIG= {DIRECTORY}/mainnet-config.json
cardano-node run --topology {TOPOLOGY} --database-path {DB_PATH} --socket-path ${SOCKET_PATH} --h>
Never mind i see it right here ^
My socket disapeared after running that in my db folder :o
so what was the actual command you executed?
nohup cardano-node run --topology {TOPOLOGY} --database-path {DB_PATH} --socket-path {SOCKET_PATH} --host-addr {HOSTADDR} --port {PORT} --config {CONFIG} --shelley-kes-key {KES} --shelley-vrf-key {VRF} --shelley-operational-certificate ${CERT} nohup.out 2>&1
but you can use your script as well:
nohup startRelayNode1.sh > startRelayNode1.log 2>&1 &
okay I will try from the script
whats the purpose of adding the .log file?
the console output will be forwarded into that file - so later you can check any printout the script did