Failed to query protocol parameters, ensure your node is running with correct genesis (the node needs to be in sync to 1 epoch after the hardfork

Hi

I am trying to update cardano relay node, I am using docker image cardanocommunity/cardano-node
After that I restarted docker, I am getting the last version correctly, however it’s syncing for a long time now.
I run cntools which gives
WARN: failed to query protocol parameters, ensure your node is running with correct genesis (the node needs to be in sync to 1 epoch after the hardfork)

image

Any update? It’s running again? Perhaps needed more time to start?

Still the same, the cnode folder is attached to pv from the last version (1.26), the steps I did, 1 fetched the last docker image, 2 start the container, 3 run command cntools, answer yes for update => result previous screenshot - I assume the node will sync the DB from 1.26.

genesys file… can u paste it here (the output)?

{
  "activeSlotsCoeff": 0.05,
  "protocolParams": {
    "protocolVersion": {
      "minor": 0,
      "major": 2
    },
    "decentralisationParam": 1,
    "eMax": 18,
    "extraEntropy": {
      "tag": "NeutralNonce"
    },
    "maxTxSize": 16384,
    "maxBlockBodySize": 65536,
    "maxBlockHeaderSize": 1100,
    "minFeeA": 44,
    "minFeeB": 155381,
    "minUTxOValue": 1000000,
    "poolDeposit": 500000000,
    "minPoolCost": 340000000,
    "keyDeposit": 2000000,
    "nOpt": 150,
    "rho": 0.003,
    "tau": 0.20,
    "a0": 0.3
  },
  "genDelegs": {
    "ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c": {
      "delegate": "d9e5c76ad5ee778960804094a389f0b546b5c2b140a62f8ec43ea54d",
      "vrf": "64fa87e8b29a5b7bfbd6795677e3e878c505bc4a3649485d366b50abadec92d7"
    },
    "b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497": {
      "delegate": "855d6fc1e54274e331e34478eeac8d060b0b90c1f9e8a2b01167c048",
      "vrf": "66d5167a1f426bd1adcc8bbf4b88c280d38c148d135cb41e3f5a39f948ad7fcc"
    },
    "60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1": {
      "delegate": "7f72a1826ae3b279782ab2bc582d0d2958de65bd86b2c4f82d8ba956",
      "vrf": "c0546d9aa5740afd569d3c2d9c412595cd60822bb6d9a4e8ce6c43d12bd0f674"
    },
    "f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757": {
      "delegate": "69ae12f9e45c0c9122356c8e624b1fbbed6c22a2e3b4358cf0cb5011",
      "vrf": "6394a632af51a32768a6f12dac3485d9c0712d0b54e3f389f355385762a478f2"
    },
    "162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82": {
      "delegate": "4485708022839a7b9b8b639a939c85ec0ed6999b5b6dc651b03c43f6",
      "vrf": "aba81e764b71006c515986bf7b37a72fbb5554f78e6775f08e384dbd572a4b32"
    },
    "2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6": {
      "delegate": "6535db26347283990a252313a7903a45e3526ec25ddba381c071b25b",
      "vrf": "fcaca997b8105bd860876348fc2c6e68b13607f9bbd23515cd2193b555d267af"
    },
    "268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b": {
      "delegate": "1d4f2e1fda43070d71bb22a5522f86943c7c18aeb4fa47a362c27e23",
      "vrf": "63ef48bc5355f3e7973100c371d6a095251c80ceb40559f4750aa7014a6fb6db"
    }
  },
  "updateQuorum": 5,
  "networkId": "Mainnet",
  "initialFunds": {},
  "maxLovelaceSupply": 45000000000000000,
  "networkMagic": 764824073,
  "epochLength": 432000,
  "systemStart": "2017-09-23T21:44:51Z",
  "slotsPerKESPeriod": 129600,
  "slotLength": 1,
  "maxKESEvolutions": 62,
  "securityParam": 2160
}

Ok, and what is the glive output?

image

But, why is restarting… can u check inside the logs?

What is the hw configuration? I know 1.27.0 consume over 7G RAM

I have 16 GB

here is the logs 

{"thread":"5","loc":null,"data":{"message":"NetworkMagic 764824073","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.networkMagic"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"Byron; Shelley","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.protocol"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"1.27.0","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.version"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"8fe46140a52810b6ca456be01d652ca08fe730bf","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.commit"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"2021-06-01 12:24:53.894711367 UTC","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.nodeStartTime"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"2017-09-23 21:44:51 UTC","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.systemStartTime"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"20s","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotLengthByron"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"21600","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.epochLengthByron"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"1s","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotLengthShelley"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"432000","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.epochLengthShelley"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"129600","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotsPerKESPeriodShelley"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"1s","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotLengthAllegra"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"432000","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.epochLengthAllegra"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"129600","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotsPerKESPeriodAllegra"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"1s","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotLengthMary"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"432000","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.epochLengthMary"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"129600","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.basicInfo.slotsPerKESPeriodMary"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"[SocketInfo 0.0.0.0:6000]","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.addresses"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"InitiatorAndResponderDiffusionMode","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.diffusion-mode"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"[DnsSubscriptionTarget {dstDomain = \"relays-new.cardano-mainnet.iohk.io\", dstPort = 3001, dstValency = 2}]","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.dns-producers"],"at":"2021-06-01T12:24:53.89Z"}
{"thread":"5","loc":null,"data":{"message":"IPSubscriptionTarget {ispIps = [], ispValency = 0}","kind":"LogMessage"},"sev":"Notice","env":"1.27.0:8fe46","msg":"","app":[],"host":"cardanob","pid":"575","ns":["cardano.node.ip-producers"],"at":"2021-06-01T12:24:53.89Z"}

can u run the command: sudo systemctl status cardano-node or sudo systemctl status cnode ?

What is the uptime?

I can see restating just minutes before, when I ran the cmd systemctl status cardano-node I got the output , System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down, this is because I am using image.
The docker image cardanocommunity/cardano-node doesn not boot with systemd seems to be.
However the pod is restarting:
image

I can see the following error now cardano-node: symbol lookup error: cardano-node: undefined symbol: crypto_vrf_publickeybytes

From where did u downloaded the files?

which files?, the cnode directory /opt/cardano/cnode is mapped to a pvc, therefore the content from the old version 1.26.

That’s one of the symbols exported by libsodium.so, a dependency of cardano-node, which can be confirmed with:

$ nm -D /usr/local/lib/libsodium.so |grep crypto_vrf_public
0000000000026f60 T crypto_vrf_publickeybytes

Could you give us the output of

$ ldd /path/to/cardano-node

The node it start sync and then it fails
Here are the output of the cmds

It appears you do not have binutils package installed, the one that provides nm tool and a few others, what is your distribution ? And by the way, how did you install libsodium ?

I am using the docker image cardanocommunity/cardano-node
https://cardano-community.github.io/guild-operators/#/docker/build

Without nm output and given your last error message, I can only assume that cardano-node binary is expecting a symbol (a function presumably) that he didn’t find in libsodium.so. That could explain why this instance is not starting properly but I can’t figure out why you have such a mismatch if you did not alter the Docker image.

Looking on system log of the node machine I can see the following errors which seems to be memory, I have 16 GB on the node with 4 cores.

Jun  3 08:34:38 moh containerd[974]: time="2021-06-03T08:34:38.126773461Z" level=info msg="shim reaped" id=0149d645b56694b2effe3d9bd2db178915ac4ede03d12f862597a5946bf1124d
Jun  3 08:34:38 moh dockerd[1141]: time="2021-06-03T08:34:38.138099643Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Jun  3 08:34:50 moh containerd[974]: time="2021-06-03T08:34:50.561434397Z" level=warning msg="runtime v1 is deprecated since containerd v1.4, consider using runtime v2"
Jun  3 08:34:50 moh containerd[974]: time="2021-06-03T08:34:50.562908851Z" level=info msg="shim containerd-shim started" address="unix:///run/containerd/s/b7451e01083fa13fe8ea21963cc1e343c279079f43584de26d4a5f7611564712" debug=false pid=23240
    Jun  3 08:38:44 moh containerd[974]: time="2021-06-03T08:38:44.594589020Z" level=info msg="shim reaped" id=0a0cda9491519b96209d20c672961939182eacccc42141760691bd9a5e13c715
    Jun  3 08:38:44 moh dockerd[1141]: time="2021-06-03T08:38:44.604695564Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"