hello, I need some help updating my stake pool. I tried upgrading my core node from version 9.2.0 to the latest version 10.1.4. The relay upgraded fine but when i restarted the core machine it would not start with a error:
“The KES key provided does not match the KES key specified”
when I try and run cardano-cli commands to verify the KES, i am getting errors:
/ Network.Socket.connect: <socket: 11>: does not exist (Connection refused).
I figured that this was happening because the nodes could not start so I reverted the virtual machine to the snapshot I took before upgrading. The cardano node is back on but I am worried about upgrading and I still cant run cardano-cli command, I get the same error. I notice there are two sockets in the /opt/cardano/cnode/sockets/ folder:
node0.socket node.socket.
I suspect that this might be causing the problem. I tried changing the config export: export
CARDANO_NODE_SOCKET_PATH=/opt/cardano/cnode/sockets/node.socket
I can now run cardano-node commands:
cardano-cli query tip --mainnet
{
“block”: 11345784,
“epoch”: 533,
“era”: “Conway”,
“hash”: “3bd7be71cd141a66d444616a02ab5ec37d142215d5d07bae4e9afd1fdfd5212d”,
“slot”: 145192688,
“slotInEpoch”: 299888,
“slotsToEpochEnd”: 132112,
“syncProgress”: “100.00”
}
Here is the output of the KES Query:
cardano-cli query kes-period-info \
–op-cert-file /opt/cardano/cnode/priv/pool/stake_pool/op.cert
–mainnet
✓ Operational certificate’s KES period is within the correct KES period interval
✓ The operational certificate counter ahead of the node protocol state counter by 1
{
“qKesCurrentKesPeriod”: 1120,
“qKesEndKesInterval”: 1181,
“qKesKesKeyExpiry”: “2025-04-14T09:44:51Z”,
“qKesMaxKESEvolutions”: 62,
“qKesNodeStateOperationalCertificateNumber”: 14,
“qKesOnDiskOperationalCertificateNumber”: 15,
“qKesRemainingSlotsInKesPeriod”: 7864775,
“qKesSlotsPerKesPeriod”: 129600,
“qKesStartKesInterval”: 1119
}
I then tried to restart the node and now it won’t start with this error:
CardanoProtocolInstantiationError (CardanoProtocolInstantiationPraosLeaderCredentialsError (MismatchedKesKey “/opt/cardano/cnode/priv/pool/stake_pool/hot.skey” “/opt/cardano/cnode/priv/pool/stake_pool/op.cert”))
Jan 13 09:08:13 cardano-core cnode[4029990]: cardano-node: The KES key provided at: “/opt/cardano/cnode/priv/pool/stake_pool/hot.skey” does not match the KES key specified in the operational certificate at: “/opt/cardano/cnode/priv/pool/stake_pool/op.cert”
Jan 13 09:08:13 cardano-core systemd[1]: cnode.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 09:08:13 cardano-core systemd[1]: cnode.service: Failed with result ‘exit-code’.
This seems to be the result of: CARDANO_NODE_SOCKET_PATH=/opt/cardano/cnode/sockets/node.socket