koinos / koinos-block-store

The block store microservice saves blocks to disk and provides an API to the Koinos cluster via RPC over AMQP.
MIT License
1 stars 1 forks source link

GetTopologyAtHeight - Unexpected Height #81

Closed mvandeberg closed 3 years ago

mvandeberg commented 3 years ago

When running a remote p2p node, there were errors requesting GetTopologyAtHeight 2021-06-11 00:17:53.032442 (p2p.Koinos) [protocol/peer_handler.go:197] <warn>: QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd: error calling GetTopologyAtHeight, error was Unexpected height (corrupt block store?)

This may be related to koinos/koinos-p2p#112

2021-06-11 00:17:48.729403 (p2p.Koinos) [protocol/download_manager.go:232] <info>: Error downloading block Height: 768 ID: zQmcPVzxg3oAqDMdCW6mDatrZ2P8cpWQ96jekuivpP245TT Prev: zQmWnmEpTbjseAfZpYmYo4okimSW4UsKqkAsF2KCw9rqa1r from peer QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd: Optional block was not present
2021-06-11 00:17:48.781032 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 828 ID: zQmWgj27m378hWdyEPysWS8WEefp72cwfAnNezK28EXPv4L Prev: zQma3SJ48AVUZRPq1sGm6QNNw27iU5MegCMkT3DEMQs5jVd from peer QmSuMdPvG7vfwr69snMtRhaC5foNwc6xaLdGdETkgyNkq9
2021-06-11 00:17:48.813556 (p2p.Koinos) [protocol/download_manager.go:232] <info>: Error downloading block Height: 768 ID: zQmcPVzxg3oAqDMdCW6mDatrZ2P8cpWQ96jekuivpP245TT Prev: zQmWnmEpTbjseAfZpYmYo4okimSW4UsKqkAsF2KCw9rqa1r from peer QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd: Optional block was not present
2021-06-11 00:17:51.117433 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 827 ID: zQmXbhShHwe7akU5C7hGY4LUNTwf2tGBWBMg2qSpcTkEeXd Prev: zQmUdAcTRZpC8snFcNy5GpSSYbMdZXnhWRt2H53DdrLcZU3 from peer QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd
2021-06-11 00:17:53.032442 (p2p.Koinos) [protocol/peer_handler.go:197] <warn>: QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd: error calling GetTopologyAtHeight, error was Unexpected height (corrupt block store?)
2021-06-11 00:17:55.413244 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 829 ID: zQmR8tzm8EX1aqCM5oRv2fYDChJVTfidPxsaqcAzhv34Gmm Prev: zQmWgj27m378hWdyEPysWS8WEefp72cwfAnNezK28EXPv4L from peer QmSuMdPvG7vfwr69snMtRhaC5foNwc6xaLdGdETkgyNkq9
2021-06-11 00:17:55.455437 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 830 ID: zQmaAEs5oBbvbp81vX2m9YHDn9zZ8Lg7KczWeUrk8KFRKBy Prev: zQmR8tzm8EX1aqCM5oRv2fYDChJVTfidPxsaqcAzhv34Gmm from peer QmSuMdPvG7vfwr69snMtRhaC5foNwc6xaLdGdETkgyNkq9
2021-06-11 00:17:55.697655 (p2p.Koinos) [protocol/peer_handler.go:197] <warn>: QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd: error calling GetTopologyAtHeight, error was Unexpected height (corrupt block store?)
2021-06-11 00:17:57.687437 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 831 ID: zQmSAEwgQ9e1BpNny6r2bbGQkVcTmt39wBZaJUm4Ns9BKVX Prev: zQmaAEs5oBbvbp81vX2m9YHDn9zZ8Lg7KczWeUrk8KFRKBy from peer QmSuMdPvG7vfwr69snMtRhaC5foNwc6xaLdGdETkgyNkq9
2021-06-11 00:17:59.070059 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 829 ID: zQmXcDsUptbZNEdLNrGQ4scapoYpxPkV46ECRQ3H7toqtGM Prev: zQmWgj27m378hWdyEPysWS8WEefp72cwfAnNezK28EXPv4L from peer QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd
2021-06-11 00:17:59.071137 (p2p.Koinos) [protocol/download_provider.go:399] <info>: Connecting disconnected fork head "zQmXcDsUptbZNEdLNrGQ4scapoYpxPkV46ECRQ3H7toqtGM"
2021-06-11 00:17:59.103319 (p2p.Koinos) [protocol/download_provider.go:219] <info>: Downloaded block applied - Height: 830 ID: zQmQn6Sc5VccqnPhKwkjt3A5mYsx2LMngzxfgfh9uESdEBN Prev: zQmXcDsUptbZNEdLNrGQ4scapoYpxPkV46ECRQ3H7toqtGM from peer QmTG6kNpsa3yESyxS462BGsyVMsvNsYMFe662os6ZzghRd
theoreticalbts commented 3 years ago

This error message is actually generated from the koinos-block-store repo. Datadir and koinos-block-store logs might be useful. Transferring issue to koinos-block-store.

sgerbino commented 3 years ago

Unable to reproduce with latest code.