Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused #1156

Open
jbrockett opened this issue Sep 10, 2024 · 0 comments

Comments

@jbrockett
Copy link

Your OS (Linux, Mac) and architecture (x86_64, aarch64): Mac OSX Sonoma 14.6.1, aarch64
Your nix-installer version (/nix/nix-installer --version): 0.23.0
The thing you tried to run (eg nix-installer): curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install macOS
What happened (the output of the command, please): Installation was successful and everything works until a reboot. After reboot, I get error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused when running any nix command.
What you expected to happen: I expected nix to work across reboots without having to restart the daemon processs manually
If you tried to fix it, what did you try?:

  • I manually started the Darwin-store daemon and things work again until a reboot.
  • I uninstalled and reinstalled using the newest version of the installer. Everything works until a reboot.

I have the following console log errors on reboot:

2024-09-10 10:14:05.812513 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: Updated BTM identifiers: 00000000-0000-0000-0000-000000000000 New LWCR needed: 1
2024-09-10 10:14:05.812623 (system/systems.determinate.nix-installer.nix-hook [561]) <Error>: Service could not initialize: posix_spawn(/bin/sh), error 0x1e - Read-only file system
2024-09-10 10:14:05.812625 (system/systems.determinate.nix-installer.nix-hook [561]) <Error>: initialization failure: 23G93: xpcproxy + 31268 [1103][CDB83CCE-085E-3A01-A393-295B41C75A17]: 0x1e
2024-09-10 10:14:05.812626 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: internal event: INIT, code = 30
2024-09-10 10:14:05.812830 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: xpcproxy exited due to exit(78)
2024-09-10 10:14:05.812834 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: exited due to exit(78), ran for 27ms
2024-09-10 10:14:05.812836 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: already handled failed init, ignoring
2024-09-10 10:14:05.812838 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: service state: exited
2024-09-10 10:14:05.812841 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: internal event: EXITED, code = 0
2024-09-10 10:14:05.812843 (system) <Notice>: service inactive: systems.determinate.nix-installer.nix-hook
2024-09-10 10:14:05.812846 (system/systems.determinate.nix-installer.nix-hook [561]) <Notice>: service state: not running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant