Skip to content

DB error when reading head state: SszDecodeError #2444

@newearthmartin

Description

@newearthmartin

Description

Lighthouse fails to start the beacon node because of problem reading DB head state.

Version

v1.4.0-3b600ac

Present Behaviour

Beacon node fails to start because a problem while reading the DB head state. In this case: SszDecodeError(OffsetOutOfBounds(4083498482)). Lighthouse does not try to solve this automatically or present information on how to solve it manually.

Jul 11 23:07:58.905 INFO Starting beacon chain                   method: resume, service: beacon
Jul 11 23:08:10.774 INFO Block production enabled                method: json rpc via http, endpoints: ["http://127.0.0.1:8545/"]
Jul 11 23:08:11.267 CRIT Failed to start beacon node             reason: Failed to build beacon chain: DB error when reading head state: SszDecodeError(OffsetOutOfBounds(4083498482))
Jul 11 23:08:11.267 INFO Internal shutdown received              reason: Failed to start beacon node
Jul 11 23:08:11.267 INFO Shutting down..                         reason: Failure("Failed to start beacon node")

Expected Behaviour

The application should try to solve this automatically. If it is unsolvable and the DB should be purged, it should be clearly expressed. It should not leave the user in the dark as to wether they should delete all data and start over or not.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions