nix icon indicating copy to clipboard operation
nix copied to clipboard

Nix installation script dies with unknown error if socket is in use

Open felzix opened this issue 3 years ago • 0 comments

Describe the bug

Hit bug running the easy setup script: sh <(curl -L https://nixos.org/nix/install) --daemon.

I only partially cleared out my old nix installation: the socket was still in use because I had run systemctl disable --now nix-daemon.service earlier but hadn't disabled/stopped it.

Nix should die here but it should understand why it's dying. Instead it gave me these outputs:

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo systemctl start nix-daemon.socket

to start the nix-daemon.socket

Job failed. See "journalctl -xe" for details.

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

You can open an issue at https://github.com/nixos/nix/issues

Or feel free to contact the team:
 - Matrix: #nix:nixos.org
 - IRC: in #nixos on irc.libera.chat
 - twitter: @nixos_org
 - forum: https://discourse.nixos.org

felzix avatar Sep 18 '22 19:09 felzix