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

KeyExists error "deleted_txo_mmr_position_to_height_index" #4833

Closed
sdbondi opened this issue Oct 20, 2022 · 5 comments · Fixed by #4924
Closed

KeyExists error "deleted_txo_mmr_position_to_height_index" #4833

sdbondi opened this issue Oct 20, 2022 · 5 comments · Fixed by #4924
Assignees
Labels
A-base_node Area - The Tari base node executable and libraries C-bug Category - fixes a bug, typically associated with an issue.

Comments

@sdbondi
Copy link
Member

sdbondi commented Oct 20, 2022

Occurred when submitting a mined block, multiple blocks were submitted quickly after each other

09:56 ERROR Failed to apply DB transaction: KeyExists { table_name: "deleted_txo_mmr_position_to_height_index", key: "7bd11b00" }
09:56 WARN Failed to commit reorg chain: KeyExists { table_name: "deleted_txo_mmr_position_to_height_index", key: "7bd11b00" }. Restoring last chain.
09:56 ERROR Failed to apply DB transaction: KeyExists { table_name: "deleted_txo_mmr_position_to_height_index", key: "7bd11b00" }
09:56 WARN Obscured status error: status: Internal, message: "Chain storage error: Key 7bd11b00 in deleted_txo_mmr_position_to_height_index already exists", details: [], metadata: MetadataMap { headers: {} }

@SWvheerden SWvheerden moved this from Bugs to In Progress in Tari Esme Testnet Oct 21, 2022
@SWvheerden SWvheerden self-assigned this Oct 21, 2022
@sdbondi
Copy link
Member Author

sdbondi commented Oct 24, 2022

logs.zip

@SWvheerden SWvheerden moved this from In Progress to Under observation in Tari Esme Testnet Oct 24, 2022
@SWvheerden SWvheerden moved this from Under observation to In Progress in Tari Esme Testnet Oct 24, 2022
@SWvheerden
Copy link
Collaborator

I think it might be related:

 // base_layer/core/src/chain_storage/async_db.rs:80 2022-10-24 08:06:28.853078000 [c::bn::comms_interface::inbound_handler] [cc1ade71a24700ddefc86457dbb6e1446229641b0e1c56bce909bcd0f1a0f950,7acd212bf3c3b5a0428ebfec90] WARN  Peer 8a970ecffa8b8ab1e2eb962b3b sent an invalid block: Validation error: Expected block previous hash to be 27992f11407698867c971e15d4751e539b32a3099a08ddbfd1358b23d7c801e5, but was 8a8d0b082a190ac1da274a6307ff86b3fb9b7b0d9ca4e598a161069e2d460b66
 // base_layer/core/src/base_node/comms_interface/inbound_handlers.rs:671 2022-10-24 08:06:28.853094000 [c::bn::base_node_service::service] [cc1ade71a24700ddefc86457dbb6e1446229641b0e1c56bce909bcd0f1a0f950,7acd212bf3c3b5a0428ebfec90] ERROR Failed to handle incoming block message: Comms interface error: `Chain storage error: Validation error: Expected block previous hash to be 27992f11407698867c971e15d4751e539b32a3099a08ddbfd1358b23d7c801e5, but was 8a8d0b082a190ac1da274a6307ff86b3fb9b7b0d9ca4e598a161069e2d460b66`
 // base_layer/core/src/base_node/service/service.rs:307 2022-10-24 08:06:28.853360000 [c::bn::chain_state_sync_service] [cc1ade71a24700ddefc86457dbb6e1446229641b0e1c56bce909bcd0f1a0f950,7acd212bf3c3b5a0428ebfec90] DEBUG Removing disconnected/banned peer `8a970ecffa8b8ab1e2eb962b3b` from chain metadata list 

@SWvheerden
Copy link
Collaborator

base-node.zip
also happens in this log

@SWvheerden
Copy link
Collaborator

Might be fixed by: #4865

@SWvheerden
Copy link
Collaborator

could also be caused by #4866

@stringhandler stringhandler moved this from In Progress to In Review in Tari Esme Testnet Oct 31, 2022
@stringhandler stringhandler added C-bug Category - fixes a bug, typically associated with an issue. A-base_node Area - The Tari base node executable and libraries labels Oct 31, 2022
@stringhandler stringhandler added this to the Stagenet Freeze milestone Oct 31, 2022
Repository owner moved this from In Review to Done in Tari Esme Testnet Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-base_node Area - The Tari base node executable and libraries C-bug Category - fixes a bug, typically associated with an issue.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants