Closed liuyangc3 closed 2 years ago
Did you manage to get this to work? I'm experiencing similar issues with 6.2.0...
The same problem, my node is also synchronized, but the graphsql interface does not work. Did you solve it now?
Funny I got 6.2.0 to work about a month ago and never took the stack down.. For good reasons,...
I upgraded my server and now Im having issues re-installing and syncing the whole stack... Heres my stack post from the last install https://cardano.stackexchange.com/questions/8297/amd64-error-warning-when-setting-up-grapgql-docker-in-mac-m1/8319#8319
Funny I did a fresh restore of a Snapshot I downloaded locally from 13/ folder and I got the same message
Deleting 7059263 blocks up to slot 57041681
after it said No Blocks needed to be deleted...
:(
2022-06-29T06:13:40.952925680Z ALTER TABLE
2022-06-29T06:13:55.346845659Z ALTER TABLE
2022-06-29T06:13:55.930833402Z ALTER TABLE
2022-06-29T06:13:55.935190817Z ALTER TABLE
2022-06-29T06:14:06.344750715Z ALTER TABLE
2022-06-29T06:14:07.770900555Z ALTER TABLE
2022-06-29T06:14:07.772033337Z ALTER TABLE
2022-06-29T06:14:09.759893133Z ALTER TABLE
2022-06-29T06:14:11.727726685Z ALTER TABLE
2022-06-29T06:14:21.372749951Z ALTER TABLE
2022-06-29T06:14:22.452367765Z ALTER TABLE
2022-06-29T06:14:22.609672076Z ALTER TABLE
2022-06-29T06:14:41.736854203Z ALTER TABLE
2022-06-29T06:14:47.463960000Z ALTER TABLE
2022-06-29T06:15:21.612520608Z ALTER TABLE
2022-06-29T06:16:24.362984338Z ALTER TABLE
2022-06-29T06:16:43.582852563Z ALTER TABLE
2022-06-29T06:16:43.584873642Z ALTER TABLE
2022-06-29T06:16:43.586178322Z ALTER TABLE
2022-06-29T06:17:27.790991719Z ALTER TABLE
2022-06-29T06:18:15.245817388Z ALTER TABLE
2022-06-29T06:18:17.707528279Z ALTER TABLE
2022-06-29T06:18:17.709033874Z ALTER TABLE
2022-06-29T06:18:27.666888507Z ALTER TABLE
2022-06-29T06:18:28.951551538Z All good!
2022-06-29T06:18:29.012607212Z [db-sync-node:Info:6] [2022-06-29 06:18:29.01 UTC] Schema migration files validated
2022-06-29T06:18:29.012629337Z [db-sync-node:Info:6] [2022-06-29 06:18:29.01 UTC] Running database migrations
2022-06-29T06:18:29.012633414Z [db-sync-node:Info:6] [2022-06-29 06:18:29.01 UTC] Enviroment variable DbSyncAbortOnPanic: False
2022-06-29T06:18:29.302013494Z [db-sync-node:Info:6] [2022-06-29 06:18:29.29 UTC] Using byron genesis file from: "/config/cardano-db-sync/../cardano-node/../genesis/byron.json"
2022-06-29T06:18:29.302041847Z [db-sync-node:Info:6] [2022-06-29 06:18:29.29 UTC] Using shelley genesis file from: "/config/cardano-db-sync/../cardano-node/../genesis/shelley.json"
2022-06-29T06:18:29.302045742Z [db-sync-node:Info:6] [2022-06-29 06:18:29.29 UTC] Using alonzo genesis file from: "/config/cardano-db-sync/../cardano-node/../genesis/alonzo.json"
2022-06-29T06:18:29.901197612Z [db-sync-node:Info:6] [2022-06-29 06:18:29.65 UTC] NetworkMagic: 764824073
2022-06-29T06:18:29.946864272Z [db-sync-node:Info:6] [2022-06-29 06:18:29.94 UTC] Initial genesis distribution present and correct
2022-06-29T06:18:29.946878973Z [db-sync-node:Info:6] [2022-06-29 06:18:29.94 UTC] Total genesis supply of Ada: 31112484745.000000
2022-06-29T06:18:29.947703457Z [db-sync-node:Info:6] [2022-06-29 06:18:29.94 UTC] Inserting Shelley Genesis distribution
2022-06-29T06:18:29.947994990Z [db-sync-node:Info:6] [2022-06-29 06:18:29.94 UTC] epochPluginOnStartup: Checking
2022-06-29T06:18:29.949073855Z [db-sync-node:Info:6] [2022-06-29 06:18:29.94 UTC] localInitiatorNetworkApplication: connecting to node via "/node-ipc/node.socket"
2022-06-29T06:18:29.949120996Z [db-sync-node.Subscription:Notice:47] [2022-06-29 06:18:29.94 UTC] Identity Starting Subscription Worker, valency 1
2022-06-29T06:18:29.949208716Z [db-sync-node.Subscription:Notice:48] [2022-06-29 06:18:29.94 UTC] Identity Connection Attempt Start, destination LocalAddress "/node-ipc/node.socket"
2022-06-29T06:18:29.949270428Z [db-sync-node.Subscription:Notice:48] [2022-06-29 06:18:29.94 UTC] Identity Connection Attempt End, destination LocalAddress "/node-ipc/node.socket" outcome: ConnectSuccessLast
2022-06-29T06:18:29.949347159Z [db-sync-node.Handshake:Info:48] [2022-06-29 06:18:29.94 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_1,TInt 764824073),(NodeToClientV_2,TInt 764824073),(NodeToClientV_3,TInt 764824073),(NodeToClientV_4,TInt 764824073),(NodeToClientV_5,TInt 764824073),(NodeToClientV_6,TInt 764824073),(NodeToClientV_7,TInt 764824073),(NodeToClientV_8,TInt 764824073),(NodeToClientV_9,TInt 764824073),(NodeToClientV_10,TInt 764824073)]))
2022-06-29T06:18:29.949694235Z [db-sync-node.Handshake:Info:48] [2022-06-29 06:18:29.94 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_10 (TInt 764824073))
2022-06-29T06:18:29.949709777Z [db-sync-node.Mux:Info:48] [2022-06-29 06:18:29.94 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Handshake Client end, duration 0.000503349s
2022-06-29T06:18:29.949834942Z [db-sync-node.Mux:Info:49] [2022-06-29 06:18:29.94 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: State: Mature
2022-06-29T06:18:29.949849733Z [db-sync-node:Info:52] [2022-06-29 06:18:29.94 UTC] Starting chainSyncClient
2022-06-29T06:18:29.963029127Z [db-sync-node:Info:52] [2022-06-29 06:18:29.96 UTC] Cardano.Db tip is at slot 64540777, block 7417697
2022-06-29T06:18:29.963043520Z [db-sync-node:Info:57] [2022-06-29 06:18:29.96 UTC] Running DB thread
2022-06-29T06:18:29.970409386Z [db-sync-node:Info:57] [2022-06-29 06:18:29.97 UTC] Rolling back to slot 64540777, hash 106ba5f091ee1cca2c6aefbf30ec142be04c53095daee91c6b781fa0a5aef5e8
2022-06-29T06:18:31.598164539Z [db-sync-node:Info:57] [2022-06-29 06:18:29.97 UTC] No blocks need to be deleted
2022-06-29T06:18:31.598191637Z [db-sync-node.Subscription:Notice:47] [2022-06-29 06:18:29.97 UTC] Identity Required subscriptions started
2022-06-29T06:18:31.837659399Z [db-sync-node:Warning:57] [2022-06-29 06:18:31.60 UTC] Failed to parse ledger state file /var/lib/cdbsync/64540777-106ba5f091-346.lstate with error 'DecoderErrorDeserialiseFailure "Ledger state file" (DeserialiseFailure 214 "Size mismatch when decoding \nRecord RecD.\nExpected 7, but found 6.")'. Deleting it.
2022-06-29T06:18:31.837693479Z [db-sync-node:Warning:57] [2022-06-29 06:18:31.83 UTC] Rollback failed. No more ledger state files.
2022-06-29T06:18:31.973248307Z [db-sync-node:Info:57] [2022-06-29 06:18:31.97 UTC] Rolling back to genesis
2022-06-29T06:19:01.374315748Z [db-sync-node:Info:57] [2022-06-29 06:19:00.97 UTC] Deleting 7417697 blocks up to slot 64540777
Deleting 7417697 blocks up to slot 64540777
This is an issue with the cardano-db-sync
snapshot restoration. I would try removing the postgres
and db-sync
state volumes, then try restoring from the snapshot again. If you require further support, try asking over here
Restoring from DB /12 folder fixed my issue... Along with mentioned volumes. NodeDB restored the latest snapshot from folder 12/, I downloaded it locally to restore. About 2 Hrs later, happy DB Sync, No Block needs to be deleted, and it starts catching up.
Its been ~6 Hrs for me and I'm almost at the current epoch (348) on DB Sync :)
Thanks for the link!
Summary
API return RST
Steps to reproduce the bug
reference: https://github.com/input-output-hk/cardano-graphql#b-pull-and-run-via-docker-compose
start the stack
the node is synced
cardano-db-sync logs looks well
ogmios API looks well
ogmios logs
but the graphsql API doesn't response
and the graphsql log
Actual Result
curl: (56) Recv failure: Connection reset by peer
Expected Result
sync response
Environment
docker-compose
Platform
Platform version
No response
Runtime
Runtime version
No response