Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode error in ledger state file when using latest snapshot #1189

Closed
mesudip opened this issue Jul 11, 2022 · 2 comments
Closed

Decode error in ledger state file when using latest snapshot #1189

mesudip opened this issue Jul 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mesudip
Copy link

mesudip commented Jul 11, 2022

When starting dbsync with latest snapshot, It's reporting Ledger state file decode error and rolling back to genesis

Environment
OS: Ubuntu
Cardano-db-sync version: 13.0.0
Install Method : Docker
Network : Testnet
Snapshot link : https://updates-cardano-testnet.s3.amazonaws.com/cardano-db-sync/13/db-sync-snapshot-schema-13-block-3693319-x86_64.tgz

Error Log

[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Version number: 13.0.0
[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Git hash: 67367b5ae317b2915de94dc3be43c29d796d876e
[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Option disable-ledger: False
[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Option disable-cache: False
[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Option disable-epoch: False
[db-sync-node:Warning:6] [2022-07-11 12:26:01.15 UTC] Enviroment variable DbSyncAbortOnPanic: False
[db-sync-node:Info:6] [2022-07-11 12:26:01.16 UTC] Schema migration files validated
[db-sync-node:Info:6] [2022-07-11 12:26:01.16 UTC] Running database migrations
[db-sync-node:Info:6] [2022-07-11 12:26:02.56 UTC] Using byron genesis file from: "/nix/store/kax0css4lx3ywihvsgrqjym0jpi20f99-byron-genesis.json"
[db-sync-node:Info:6] [2022-07-11 12:26:02.56 UTC] Using shelley genesis file from: "/nix/store/2xhy92909anynqsvx1b1x153cxwnfmzx-shelley-genesis.json"
[db-sync-node:Info:6] [2022-07-11 12:26:02.56 UTC] Using alonzo genesis file from: "/nix/store/8qnphq6yvcjspiy3z0aijfd6cv64l3hl-alonzo-genesis.json"
[db-sync-node:Info:6] [2022-07-11 12:26:02.64 UTC] NetworkMagic: 1097911063
[db-sync-node:Info:6] [2022-07-11 12:26:02.87 UTC] Initial genesis distribution present and correct
[db-sync-node:Info:6] [2022-07-11 12:26:02.87 UTC] Total genesis supply of Ada: 41999999999.999903
[db-sync-node:Info:6] [2022-07-11 12:26:02.89 UTC] Inserting Shelley Genesis distribution
[db-sync-node:Info:6] [2022-07-11 12:26:02.89 UTC] epochStartup: Checking
[db-sync-node:Info:6] [2022-07-11 12:26:02.91 UTC] localInitiatorNetworkApplication: connecting to node via "/node-ipc/node.socket"
[db-sync-node.Subscription:Notice:55] [2022-07-11 12:26:02.91 UTC] Identity Starting Subscription Worker, valency 1
[db-sync-node.Subscription:Notice:56] [2022-07-11 12:26:02.91 UTC] Identity Connection Attempt Start, destination LocalAddress "/node-ipc/node.socket"
[db-sync-node.Subscription:Notice:56] [2022-07-11 12:26:02.91 UTC] Identity Connection Attempt End, destination LocalAddress "/node-ipc/node.socket" outcome: ConnectSuccessLast
[db-sync-node.Handshake:Info:56] [2022-07-11 12:26:02.91 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_9,TInt 1097911063),(NodeToClientV_10,TInt 1097911063),(NodeToClientV_11,TInt 1097911063),(NodeToClientV_12,TInt 1097911063),(NodeToClientV_13,TInt 1097911063)]))
[db-sync-node.Handshake:Info:56] [2022-07-11 12:26:02.91 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_13 (TInt 1097911063))
[db-sync-node.Mux:Info:56] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Handshake Client end, duration 0.000515761s
[db-sync-node.Mux:Info:57] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: State: Mature
[db-sync-node.Mux:Info:57] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Eagerly started (MiniProtocolNum 5) in InitiatorDir
[db-sync-node.Mux:Info:57] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Eagerly started (MiniProtocolNum 6) in InitiatorDir
[db-sync-node.Mux:Info:57] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Eagerly started (MiniProtocolNum 7) in InitiatorDir
[db-sync-node.Mux:Info:57] [2022-07-11 12:26:02.91 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Eagerly started (MiniProtocolNum 9) in InitiatorDir
[db-sync-node:Info:60] [2022-07-11 12:26:02.91 UTC] Starting chainSyncClient
[db-sync-node.Subscription:Notice:55] [2022-07-11 12:26:02.93 UTC] Identity Required subscriptions started
[db-sync-node:Info:60] [2022-07-11 12:26:02.93 UTC] Cardano.Db tip is at slot 62942377, block 3693319
[db-sync-node:Info:69] [2022-07-11 12:26:02.93 UTC] Running Offline fetch thread
[db-sync-node:Info:68] [2022-07-11 12:26:02.93 UTC] Running DB thread
[db-sync-node:Info:68] [2022-07-11 12:26:02.95 UTC] Rolling back to slot 62942377, hash 289deaf2f73d0889a8c4ddd112dff7df42ed239d410638bdde98c7327c40207d
[db-sync-node:Info:68] [2022-07-11 12:26:03.00 UTC] No blocks need to be deleted
[db-sync-node:Warning:68] [2022-07-11 12:26:04.44 UTC] Failed to parse ledger state file /var/lib/cexplorer/62942377-289deaf2f7-215.lstate with error 'DecoderErrorDeserialiseFailure "Ledger state file" (DeserialiseFailure 32483506 "Decoding TxIx: too many bytes.")'. Deleting it.
[db-sync-node:Warning:68] [2022-07-11 12:26:04.49 UTC] Rollback failed. No more ledger state files.
[db-sync-node:Info:68] [2022-07-11 12:26:04.54 UTC] Rolling back to genesis
[db-sync-node:Info:68] [2022-07-11 12:26:31.44 UTC] Deleting 3693319 blocks up to slot 62942377
@mesudip mesudip added the bug Something isn't working label Jul 11, 2022
@kderme
Copy link
Contributor

kderme commented Jul 11, 2022

Apologies, I would suggest you use the previous snapshot on block no 3680594.

This is a known issue which has been fixed in tag 13.0.1 (unreleased yet) #1181 where snapshots created after the Vasil hf cannot be parsed. I will try to find a way to delete the incompatible snapshots.

@erikd
Copy link
Contributor

erikd commented Jul 11, 2022

This is a duplicate of #1181 which has already been fixed on master and will be in the 13.0.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants