Skip to content

"Unable to parse settings.json" at startup after disk was full #21340

@laanwj

Description

@laanwj

This was reported to me by someone who had a crash issue after the disk was full, ostensibly unable to write settings.json and ending up with a truncated file. The solution was obvious in retrospect: delete it. But not everyone is going to figure this out by themselves.

Should this error be fatal at all? Could it be ignored and logged? Or is a warning then deleting it better (at least in the GUI, that's harder to do for the daemon).

Another thing to look into might be to write the file atomically so that this doesn't occur.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions