My relay keep restarting every 24 hours

so at least you can check the service status…
sudo systemctl status <name>
but it also worth to set logging to able to have something next time…

my relay service restarts every 24h for no reason
● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-05-07 18:17:48 CEST; 10min ago
Main PID: 414109 (bash)
Tasks: 15 (limit: 9486)
Memory: 4.5G
CGroup: /system.slice/cnode.service
├─414109 bash /opt/cardano/cnode/scripts/cnode.sh
└─414188 cardano-node run --topology /opt/cardano/cnode/files/topology.json --config /opt/cardano/cnode/files/config.json --database-path /opt/cardano/cnod>

These logs are incredibly long and hard to analyse what’s really happening

{“thread”:“334”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundRecvMsgRequestTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:43917, remoteAddress = 209.126.12.123:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.16Z”}
{“thread”:“334”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundSendMsgReplyTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:43917, remoteAddress = 209.126.12.123:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.16Z”}
{“thread”:“386”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundRecvMsgRequestTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:38165, remoteAddress = 34.83.134.135:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.19Z”}
{“thread”:“386”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundSendMsgReplyTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:38165, remoteAddress = 34.83.134.135:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.19Z”}
{“thread”:“458”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = 68.183.194.220:45091}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.21Z”}
{“thread”:“373”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundRecvMsgRequestTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:38159, remoteAddress = 45.76.194.104:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.26Z”}
{“thread”:“373”,“loc”:null,“data”:{“kind”:“TraceTxSubmissionOutboundSendMsgReplyTxs”,“peer”:“ConnectionId {localAddress = 62.171.147.209:38159, remoteAddress = 45.76.194.104:6000}”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxOutbound”],“at”:“2021-05-07T16:25:26.26Z”}
{“thread”:“511”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = 54.151.49.15:41959}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.31Z”}
{“thread”:“426”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = 172.104.144.137:34729}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.47Z”}
{“thread”:“468”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = bp_ip:46339}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.68Z”}
{“thread”:“468”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = bp_ip:46339}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.80Z”}
{“thread”:“465”,“loc”:null,“data”:{“kind”:“TraceBlockFetchServerEvent”},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.BlockFetchServer”],“at”:“2021-05-07T16:25:26.81Z”}
{“thread”:“468”,“loc”:null,“data”:{“kind”:“TraceTxInboundCannotRequestMoreTxs”,“peer”:“ConnectionId {localAddress = 0.0.0.0:6000, remoteAddress = bp_ip:46339}”,“count”:0},“sev”:“Info”,“env”:“1.26.2:35312”,“msg”:"",“app”:,“host”:“vmi58081”,“pid”:“414188”,“ns”:[“cardano.node.TxInbound”],“at”:“2021-05-07T16:25:26.84Z”}

May 07 18:17:38 servername cnode[376087]: Shutting down…
May 07 18:17:49 servername cnode[414109]: WARN: A prior running Cardano node was not cleanly shutdown, socket file still exists. Cleaning up.
May 07 18:17:51 servername cnode[414188]: Listening on http://127.0.0.1:12798

  • cnode-tu-restart.timer : schedules the cardano-node restart service, default every 24h

so, isn’t that ok? lol :joy:

how can I disable this thing?

sudo systemctl stop cnode-tu-restart.timer
sudo systemctl disable cnode-tu-restart.timer

sudo systemctl status cnode-tu-restart.timer

But it is recommended to restart the Relay for keeping the topology fresh

1 Like

Ahh, I always forget this behavior of the cntools…

1 Like

Actually is from topology updater script when u run as systemd

These are the services

  • cnode-tu-push.service : pushes a node alive message to Topology Updater API
  • cnode-tu-push.timer : schedules the push service to execute once every hour
  • cnode-tu-fetch.service : fetches a fresh topology file before cnode.service file is started/restarted
  • cnode-tu-restart.service : handles the restart of cardano-node(cnode.sh)
  • cnode-tu-restart.timer : schedules the cardano-node restart service, default every 24h
2 Likes

ok if there’s by chance a place where can I set the interval of restart bigger than 24h please let me know but at this point I understand its the part of the solution I choose follow.
solution is accepted.
thank you very much for the time.

When u deploy the relay ./deploy-as-systemd.sh after u will press Y for topology updater u will see 86400seconds (default for 24h)
There u can modify the interval

PS: I am restarting my relays once/12 hours