-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
eth_getLogs request returns an error failed to get logs for block
.
#23875
Comments
just tested on 1.10.12 as well and the issue is reproducible there as well. |
Thanks for reporting the issue and the details. If I'm not mistaken this is caused by #23147 and affects really long-running nodes (2-3 years with no db reset) and specifically when querying logs of older blocks. The cause is that when implementing the optimization in #23147 I hadn't considered nodes that might have a legacy format for receipts in their freezer database. I'm working on a fix now. |
Can you please try this branch and see if that solve the issue? https://github.com/s1na/go-ethereum/tree/fix/getlogs-legacy |
@s1na Yes! That fixes it :) |
I just encountered this issue with I received one of the:
The geth log entry is the same message without further context:
I manage to repeat this at least two different blocks on my database. Though could not repeat this yet. I wonder if there are other reasons why this get logs could fail. |
Upgraded to |
A Prysm user is encountering this error here: https://discord.com/channels/476244492043812875/667761857209040916/1019616603542921236 Will update this with Geth version if/when provided. |
I am the one who is facing this issue. My database was fast synced in the past 2 weeks using Geth 1.10.23. So, no old parts here |
I went through the prysm checklist only step #9 fails. Here is the output: |
Someone should open this issue |
This kept causing my Geth to eventually unsync. I deleted my chaindata and synced from scratch which resolved things permanently. If you are still experiencing this I would suggest you do the same. |
Yep, just like mine but on a different block |
If this issue persists, please open a new ticket, and provide logs from your systems + version information. |
System information
Geth version:
v1.10.11
OS & Version: Linux
Commit hash : N/A
Expected behaviour
I expect the following request to return a non-error result.
Actual behaviour
It returns an error.
Steps to reproduce the behaviour
Run the provided curl against a geth node. Some bullets that might help:
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: