Skip to content

DB corruption #13365

Open
Open
@Sk7Str1p3

Description

@Sk7Str1p3

Describe the bug

This is the second time i'm having this

error: path '/oix/store/1ijz8ihxk4na7d9kjprg8d8i63fb80n0-emoji-test.txt.drv' is not in the Nix store

I think it happened after kernel panic while system rebuild

Steps To Reproduce

??? this happens completely random

Expected behavior

NOT having this error

Metadata

nix-env (Nix) 2.28.3

Additional context

nix-collect-garbage -d
nix-store --repair --verify --check-contents
none of those took effect

possible solution would keeping database immutable and update it atomically. or, maybe creating db backups once in a while

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions