Skip to content

nsncd: /var/run/nscd/socket cannot be created #432251

@Soveu

Description

@Soveu

Nixpkgs version

  • Unstable (25.11)

Describe the bug

After fresh install of NixOS on my PC, I get this error:

Aug 09 12:18:55 gaming nsncd[1812]: Aug 09 10:18:55.558 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket"
Aug 09 12:18:55 gaming nsncd[1812]: Error: Read-only file system (os error 30)
Aug 09 12:18:55 gaming systemd[1]: nscd.service: Main process exited, code=exited, status=1/FAILURE
Aug 09 12:18:55 gaming systemd[1]: nscd.service: Failed with result 'exit-code'.
Aug 09 12:18:55 gaming systemd[1]: Failed to start Name Service Cache Daemon (nsncd).

System seems to boot, but nixos-rebuild switch obviously fails with this service failing.

Steps to reproduce

What I have done is:

  1. On another computer with nixos-unstable, created a custom ISO (needed it because of my weird LVM raid0 setup)
  2. Installed the system manually via nixos-install
  3. Tried rebuilding with upgrade-all

Expected behaviour

nsncd should not fail starting, /var/run/nscd should be present

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.16.0, NixOS, 25.11 (Xantusia), 25.11pre840654.c2ae88e026f9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.4`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/store/adimvwhbppan4sq5kyrk14ysrbskb8b9-nixos/nixos`

Notify maintainers

@flokli @picnoir


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction 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