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

V4.0.1: ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) maybe "pruning problem" #2704

Open
neuriGH opened this issue Nov 19, 2023 · 2 comments
Labels

Comments

@neuriGH
Copy link

neuriGH commented Nov 19, 2023

Summary

After upgrading to V4.0.0 thy system (Ubuntu) worked well for a couple of days, after that the node can not be started with the following error: ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) (Same happens after upgrading to 4.0.1)

Steps to Reproduce

Environment

[Please fill all of the following or NA if not applicable]

  • Node Version: V4.0.1
  • Block height on bug if applicable:
  • TX or TX type on bug if applicable:
    2023-11-19T07:16:03Z New outbound peer connected: version: 70038, blocks=3471324, peer=6
    2023-11-19T07:16:15Z UpdateTip: new best=41f5cf9de9f69e794c15a03daadede8353e592787e299c4c04970d175f1f1a12 height=3464100 version=0x20000000 log2_work=87.939705 tx=27139796 date='2023-11-16T22:27:02Z' progress=0.998614 cache=0.1MiB(786txo)
    2023-11-19T07:16:15Z ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0)
  • OS with version: ubuntu-jammy-22.04-amd64-server-20221201
  • Any other relevant environment info:
@neuriGH neuriGH added the bug label Nov 19, 2023
@neuriGH neuriGH changed the title ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) V4.0.1: ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) Nov 19, 2023
@prasannavl
Copy link
Member

prasannavl commented Nov 19, 2023

Hi. This seems like the data is corrupt (possibly unclean shutdown?).
Please try restoring from a recent snapshot / backup or full sync.

@neuriGH
Copy link
Author

neuriGH commented Nov 26, 2023

Hi, have found a second user with exactly the same problem. For him, the problem occurs every time he activates pruning. This is reproducible. In my case, pruning is also activated. Perhaps you can check whether activated pruning also leads to this error in your test lab. (In the meantime I have updated to V.4.0.4 - same problem)

@neuriGH neuriGH changed the title V4.0.1: ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) V4.0.1: ERROR: ReadBlockFromDisk: OpenBlockFile failed for FlatFilePos(nFile=-1, nPos=0) maybe "pruning problem" Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants