Stake pool school: EraMismatch {ledgerEraName = "Mary", otherEraName = "Shelley"}

Hello people,

I encountered some issues by doing the stake pool school. Using that command
cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063
leads to that error
Shelley command failed: query utxo Error: A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = "Mary", otherEraName = "Shelley"}

I think the problem is the magic value. Since was not valid I had to use 1097911063. It worked until epoch 125. Now I am facing issues with the sync

[cardano.node.DnsSubscription:Notice:4480] [2021-10-29 06:51:57.85 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.241.77.32:3001

[cardano.node.DnsSubscription:Notice:4481] [2021-10-29 06:51:57.88 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 3.129.133.68:3001

[:cardano.node.DnsSubscription:Notice:4482] [2021-10-29 06:51:57.91 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt Start, destination 54.250.11.33:3001

[:cardano.node.DnsSubscription:Notice:4481] [2021-10-29 06:51:57.99 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Connection Attempt End, destination 3.129.133.68:3001 outcome: ConnectSuccessLast

[:cardano.node.ErrorPolicy:Notice:52] [2021-10-29 06:51:57.99 UTC] IP 54.241.77.32:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace (SubscriberError {seType = SubscriberParallelConnectionCancelled, seMessage = "Parallel connection cancelled", seStack = []}))) 1s

[:cardano.node.ErrorPolicy:Notice:52] [2021-10-29 06:51:57.99 UTC] IP 54.250.11.33:3001 ErrorPolicySuspendConsumer (Just (ConnectionExceptionTrace (SubscriberError {seType = SubscriberParallelConnectionCancelled, seMessage = "Parallel connection cancelled", seStack = []}))) 1s

[:cardano.node.DnsSubscription:Error:4481] [2021-10-29 06:51:58.59 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Application Exception: 3.129.133.68:3001 MuxError (MuxIOException Network.Socket.recvBuf: resource vanished (Connection reset by peer)) "(recv errored)"

[:cardano.node.ErrorPolicy:Warning:52] [2021-10-29 06:51:58.59 UTC] IP 3.129.133.68:3001 ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError (MuxIOException Network.Socket.recvBuf: resource vanished (Connection reset by peer)) "(recv errored)"))) 20s 20s

[:cardano.node.DnsSubscription:Error:4449] [2021-10-29 06:51:58.90 UTC] Domain: "relays-new.cardano-testnet.iohkdev.io" Application Exception: 18.132.238.21:3001 MuxError MuxBearerClosed "<socket: 36> closed when reading data, waiting on next header True"

[:cardano.node.ErrorPolicy:Warning:52] [2021-10-29 06:51:58.90 UTC] IP 18.132.238.21:3001 ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError MuxBearerClosed "<socket: 36> closed when reading data, waiting on next header True"))) 20s 20s

[:cardano.node.DiffusionInitializationTracer:Info:5] [2021-10-29 06:52:02.93 UTC] DiffusionErrored user interrupt

[:cardano.node.ChainDB:Info:5] [2021-10-29 06:52:02.93 UTC] Closed db with immutable tip at 06d42b8781149669c582671ef8f0bdd1c242115d4834cc4420f32f9e48597399 at slot 36088631 and tip caed3d43f563a080278d38ec03c111aca11677f795adb67095deeb34c97cb260 at slot 36157329

It doesn’t look like it’s syncing anymore?
As in the lesson recommended I used node 1.25.1.

EDIT: Ok, sorry I fixed it with that command
cardano-cli query utxo --mary-era --address $(cat payment.addr) --testnet-magic 1097911063

But the blockchain sync does still throw that error messages.

To old, please use 1.30.1

Thanks for your answer Alexd.
What would be the best practice to upgrade the node?

Same steps for building the node but replace 1.25.1 with 1.30.1

1 Like

That fixed the issue. Thanks a lot Alexd.

1 Like

you are welcome :beers: