NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.86k stars 1.52k forks source link

M4 Mac migrated nix daemon crashes immediately #11918

Open skeet70 opened 2 days ago

skeet70 commented 2 days ago

Describe the bug

I migrated from an M3 Mac to an M4 Mac. I uninstalled nix following the official docs on the M4, then reinstalled with the official installer. It installed without error after having me remove a bunch of backups, but now any nix command I run just gives me

error: Nix daemon disconnected unexpectedly (maybe it crashed?)

Sometimes it'll download things for a bit before that, but once it has cached up to a point, any run of the same command will give me that error immediately. cat /var/log/nix-daemon.log shows a new two entries of

accepted connection from pid <unknown>, user mumu
libc++abi: terminating due to uncaught exception of type nix::Interrupted: error: interrupted by the user

I promise I'm not interrupting anything.

Steps To Reproduce

Doesn't seem particularly reproducible but:

  1. Use the Mac Migration assistant to migrate everything from a system with a working nix and nix-darwin installation
  2. Follow the official uninstallation instructions, removing backup files as it discovers them.
  3. sh <(curl -L https://nixos.org/nix/install) to install nix
  4. Run nix-shell -p nix-info --run "nix-info -m"

Expected behavior

The successful output of nix-info.

Additional Details

nix_2024-11-19-122317_MacBook-Pro.diag.txt nix-2024-11-19-121348.ips.txt nix-2024-11-19-122337.ips.txt nix-2024-11-19-122801.ips.txt nix-2024-11-19-124924.ips.txt nix-2024-11-19-124934.ips.txt nix-2024-11-19-125113.ips.txt nix-2024-11-19-131620.ips.txt nix-2024-11-19-134029.ips.txt nix-2024-11-19-134043.ips.txt nix-2024-11-19-134056.ips.txt nix-daemon.log

nix-env --version output

nix-env (Nix) 2.25.2

Priorities

Add :+1: to issues you find important.