Skip to content

Statefile gets corrupted and hydra-node cannot continue #2253

@noonio

Description

@noonio

Context & versions

Using the latest release (0.22.4) we have seen two kinds of corrupted statefiles.

  1. Nulls written into the last line:
Image
  1. Simply incomplete JSON line:
Image

I think this one may be due to not-enough-space-left-on-device error while writing; but this needs to be tested.

Steps to reproduce

???

Ideas

It seems like there might be a simple fix for both of these cases; namely to just log a warning and ignore the line. But the deeper question is how this is possible in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done ✔

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions