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

[Question]: Rpc error "could not find results for height #21835191" #3289

Open
1 task done
abotau opened this issue Aug 22, 2024 · 1 comment
Open
1 task done

[Question]: Rpc error "could not find results for height #21835191" #3289

abotau opened this issue Aug 22, 2024 · 1 comment
Assignees
Labels
general questions status: waiting-on-submitter This issue requires feedback from the submitter.

Comments

@abotau
Copy link

abotau commented Aug 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Two Gaia nodes running v18.1.0, directly with the binaries. I upgraded them to v19.1.0 from release files, with a restart from snapshot (version 20240822-0310) Nodes both started and are running almost perfectly. Except for this error :

ERR failed to LoadFinalizeBlockResponse err="could not find results for height #21835191" module=rpc   

I can fetch the block directly with curl and the APIs, e.g. with

$ curl --header "Content-Type: application/json" --request POST --data '{"method": "block", "params": ["21835191"], "id": 1}' localhost:26657 > block.json

but it looks like there is a problem with the gaia rpc calls.

Gaia Version

v19.1.0

How to reproduce?

No response

@abotau abotau added status: waiting-triage This issue/PR has not yet been triaged by the team. type: bug Issues that need priority attention -- something isn't working labels Aug 22, 2024
@MSalopek MSalopek added general questions and removed type: bug Issues that need priority attention -- something isn't working status: waiting-triage This issue/PR has not yet been triaged by the team. labels Aug 23, 2024
@MSalopek
Copy link
Contributor

Thanks for opening the issue!

Unfortunately this is not a bug but expected behaviour.

The block that you are trying to query was created using v18.1.0 and not v19.1.0.

v19.1.0 is creating blocks starting from 21,835,200, but your block is 9 heights before the upgrade (21,835,191) - this means you can query that block using v18.1.0.

This is due to the large data infrastructure changes between cometbft v0.37.x and v0.38.x.

Gaia v18.1.0 is using cometbft v0.37.x -> that has BeginBlockResponse and EndBlockResponse.
Gaia v19.1.0 is using cometbft v0.38.x -> that has FinalizeBlockResponse.

The 2 responses are not backward compatible, they simply have data organized in a non-backward compatible way.

How this is usually addressed:

You can index the block data and events using the old binary and have it available for your services that rely on historic data.

This is unfortunate, but the backward compatibility is not preserved during this upgrade due to the upgrades to dependencies.

Please let us know if you need further assistance.

@MSalopek MSalopek changed the title [Bug]: Rpc error "could not find results for height #21835191" [Question]: Rpc error "could not find results for height #21835191" Aug 26, 2024
@mpoke mpoke added the status: waiting-on-submitter This issue requires feedback from the submitter. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general questions status: waiting-on-submitter This issue requires feedback from the submitter.
Projects
Status: 🏗 F3: InProgress
Development

No branches or pull requests

3 participants