Skip to content

Intermittent No such file or directory error on nh os switch #331

@musjj

Description

@musjj

Occasionally, after running nh os switch I get this error:

reloading user units for $USER...
restarting sysinit-reactivation.target
the following new units were started: NetworkManager-dispatcher.service, sysinit-reactivation.target, systemd-ask-password-console.path, systemd-tmpfiles-resetup.service
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Location: src/nixos.rs:269

Please report the bug at https://github.com/nix-community/nh/issues

Re-running nh os switch right after it usually fixes it, but I can't reproduce it consistently.

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