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

Db-sync Error. Fails to index #411

Closed
alexqrid opened this issue Nov 21, 2020 · 11 comments
Closed

Db-sync Error. Fails to index #411

alexqrid opened this issue Nov 21, 2020 · 11 comments

Comments

@alexqrid
Copy link

Hi I am running cardano-db 6.0.0 with cardan-node1.21.1. Suddenly it failed to sync new blocks with such error:

Nov 21 23:05:35 cardano-fork cardano-db6[1971]: [db-sync-node.ErrorPolicy:Error:4] [2020-11-21 23:05:35.51 UTC] [String "ErrorPolicyUnhandledApplicationException Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 857622000000) (Coin 857626000000))))]]\nCallStack (from HasCallStack):\n  error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-inplace:Shelley.Spec.Ledger.API.Validation",String "ErrorPolicyTrace",String "LocalAddress {getFilePath = \"state-node-mainnet/sock\"}"]
Nov 21 23:05:39 cardano-fork cardano-db6[1971]: [db-sync-node.Handshake:Info:81401] [2020-11-21 23:05:39.94 UTC] [String "Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_1,TInt 764824073),(NodeToClientV_2,TInt 764824073),(NodeToClientV_3,TInt 764824073)]))",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, remoteAddress = LocalAddress {getFilePath = \"state-node-mainnet/sock\"}}"]
Nov 21 23:05:39 cardano-fork cardano-db6[1971]: [db-sync-node.Handshake:Info:81401] [2020-11-21 23:05:39.94 UTC] [String "Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_3 (TInt 764824073))",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, remoteAddress = LocalAddress {getFilePath = \"state-node-mainnet/sock\"}}"]

@erikd
Copy link
Contributor

erikd commented Nov 21, 2020

This is a duplicate of #398 .

@alexqrid
Copy link
Author

This is a duplicate of #398 .

Applied your commit with tag tmp-fix-6.0.x but unfortunately it didn't help

@CyberCyclone
Copy link

This is a duplicate of #398 .

Applied your commit with tag tmp-fix-6.0.x but unfortunately it didn't help

That only helps with nodes that aren't already affected. Quote from the comment:

However, running this version may detect an already corrupted ledger state (I am not even sure what that would look like) in which case a resync will be required.

@alexqrid
Copy link
Author

Thanks for the information.
So any choices to make an indexer work now?

@erikd
Copy link
Contributor

erikd commented Nov 22, 2020

So any choices to make an indexer work now?

Sorry, what? I do not even understand what you are asking.

@alexqrid
Copy link
Author

Can you give me a piece of advice how to make cardano-db-sync work now, after such failure,please?

@CyberCyclone
Copy link

Thanks for the information.
So any choices to make an indexer work now?

You'll need to do a re-sync.

@CyberCyclone
Copy link

Instructions here: https://github.com/input-output-hk/cardano-db-sync/wiki/Docker

@erikd
Copy link
Contributor

erikd commented Nov 22, 2020

And if you are not running it in Docker then

PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --recreatedb

@erikd
Copy link
Contributor

erikd commented Nov 22, 2020

@alexqrid If you have managed to get the fixed version running and re-synced your db, please close this.

@alexqrid
Copy link
Author

alexqrid commented Nov 23, 2020

Just downgraded to cardano-db-sync 5.0.3 and synced from scratch. Everything seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants