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

Freezer is failed to freeze data #20239

Closed
rjl493456442 opened this issue Nov 4, 2019 · 10 comments · Fixed by #21045
Closed

Freezer is failed to freeze data #20239

rjl493456442 opened this issue Nov 4, 2019 · 10 comments · Fixed by #21045
Labels
Milestone

Comments

@rjl493456442
Copy link
Member

Sometimes we can have such error log shown Block receipts missing, can't freeze.

@holiman
Copy link
Contributor

holiman commented Nov 4, 2019

 ERROR[11-04|12:35:13.845] Block receipts missing, can't freeze     number=1202001 hash=c4d847…799422 

Relevant block: https://goerli.etherscan.io/block/1202001

No transactions, no uncles, so the receipts should be empty. Still, the freezer should return something, but the fact that the receitps are empty might be important when solving this.

@rjl493456442
Copy link
Member Author

@holiman but even the receipt is nil, the RLP encoded value is [192] which represents an empty list.

So freeze shouldn't fail on empty receipt case.

@karalabe karalabe modified the milestones: 1.9.8, 1.9.9 Nov 27, 2019
@karalabe karalabe modified the milestones: 1.9.9, 1.9.10 Dec 6, 2019
@karalabe karalabe modified the milestones: 1.9.10, 1.9.11 Jan 21, 2020
@karalabe karalabe modified the milestones: 1.9.11, 1.9.12 Feb 18, 2020
@veox
Copy link
Contributor

veox commented Feb 25, 2020

FTR, I'm only seeing this on Goerli.

@rjl493456442
Copy link
Member Author

@veox Are you using the Geth after #20287?

@veox
Copy link
Contributor

veox commented Feb 25, 2020

I'm using v1.9.11, but the message has been appearing long before PR #20287 was merged.

In other words, the DB was already in a "weird" state long before the fix was in-code.

I've cleared the DB now (except ancient), will get back here if it re-surfaces.

@rjl493456442
Copy link
Member Author

@veox appreciate it!

@rjl493456442
Copy link
Member Author

rjl493456442 commented Mar 24, 2020

Seems the issue still exists in my recent running(Goerli testnet, not sure it's PoA relevant)

ERROR[03-24|09:54:10.028] Block receipts missing, can't freeze     number=2298468 hash=2d2501…de9728

@crsmith75
Copy link

@rjl493456442 Was having the same error, wiped the database except for ancient, updated geth on my machine, then resynced and appears to be working now

@veox
Copy link
Contributor

veox commented Mar 31, 2020

Can confirm @rjl493456442's findings, issue re-surfaced with v1.9.12.

@amplicity
Copy link

I'm having the same issue:

Error in block freeze operation err="block receipts missing, can't freeze block 17373890"

I'm running a mainnet validator, so I'm a little wary of trying the debug.setHead command / enabling debug on my node. I tried using geth removedb and removed both ancient and regular db, however, it didn't seem to actually remove the db. I assume this is because my ethereum chaindata may be in a custom directory (linux, ethereum/execution/data/geth/chaindata).

Am I safe to delete my chaindata directory, and restart geth to resolve this issue?

Also, from what I can gather, this issue is not detrimental to consensus/validator?

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

Successfully merging a pull request may close this issue.

8 participants
@karalabe @holiman @amplicity @veox @rjl493456442 @crsmith75 and others