DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.32k stars 58 forks source link

Failed to start ensure-symlinked-units-resolve.service #646

Open bitestring opened 1 year ago

bitestring commented 1 year ago

On Fedora Silverblue 38, ensure-symlinked-units-resolve.service is not starting up.

Nix version: nix (Nix) 2.17.0

Steps to reproduce:

  1. Install Nix with curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
  2. Reboot
  3. Check systemctl status ensure-symlinked-units-resolve
bitestring@fedora-silverblue-vm ~> sudo systemctl status ensure-symlinked-units-resolve
[sudo] password for bitestring: 
× ensure-symlinked-units-resolve.service - Ensure Nix related units which are symlinked resolve
     Loaded: loaded (/etc/systemd/system/ensure-symlinked-units-resolve.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Wed 2023-09-27 21:12:14 IST; 1min 49s ago
    Process: 664 ExecStart=/usr/bin/systemctl daemon-reload (code=exited, status=0/SUCCESS)
    Process: 708 ExecStart=/usr/bin/systemctl restart --no-block nix-daemon.socket (code=exited, status=5)
   Main PID: 708 (code=exited, status=5)
        CPU: 25ms

Sep 27 21:12:13 fedora-silverblue-vm systemd[1]: Starting ensure-symlinked-units-resolve.service - Ensure Nix related units which are symlinked re>
Sep 27 21:12:14 fedora-silverblue-vm systemctl[708]: Failed to restart nix-daemon.socket: Unit nix-daemon.socket not found.
Sep 27 21:12:14 fedora-silverblue-vm systemd[1]: ensure-symlinked-units-resolve.service: Main process exited, code=exited, status=5/NOTINSTALLED
Sep 27 21:12:14 fedora-silverblue-vm systemd[1]: ensure-symlinked-units-resolve.service: Failed with result 'exit-code'.
Sep 27 21:12:14 fedora-silverblue-vm systemd[1]: Failed to start ensure-symlinked-units-resolve.service - Ensure Nix related units which are symli>
axelsimon commented 4 months ago

Same issue here. Happened after i ran the suggested sudo -i nix upgrade-nix to upgrade nix.