I currently can’t nixos-rebuild switch
or nixos-rebuild switch --rollback
The problem appears to be independent of generation & configuration.nix as nothing changes either way, so if there’s something I need to change in my configuration, it’s not like I’ll be able to rebuild with the changes AFAIK.
Some errors gotten after attempting to rebuild (full errors at bottom):
Failed to list users: Unit dbus-org.freedesktop.login1.service not found.
, accounts-daemon.service: Failed to set up mount namespacing: /run/systemd/unit-root/usr/lib/modules: Not a directory
, accounts-daemon.service: Failed at step NAMESPACE spawning /nix/store/nld9dik9x218wqjgag90dp56z4gfnrr7-accountsservice-0.6.55/libexec/accounts-daemon: Not a directory
, accounts-daemon.service: Failed with result 'exit-code'.
, Failed to start Accounts Service.
Additionally, while booting up, there are some errors (not the standard ‘OK’) with the message Failed to start User Login Management
I’m using NixOS 20.09 Nightingale on x86_64, kernel version 5.4.114.
building Nix...
building the system configuration...
activating the configuration...
setting up /etc...
Failed to list users: Unit dbus-org.freedesktop.login1.service not found.
setting up tmpfiles
warning: the following units failed: accounts-daemon.service, systemd-logind.service, systemd-timesyncd.service
● accounts-daemon.service - Accounts Service
Loaded: loaded (/nix/store/nld9dik9x218wqjgag90dp56z4gfnrr7-accountsservice-0.6.55/etc/systemd/system/accounts-daemon.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/spddxxcnwaq21v63y6m21v0y6snw7v6p-system-units/accounts-daemon.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Thu 2021-05-20 19:51:04 BST; 116ms ago
Process: 2154 ExecStart=/nix/store/nld9dik9x218wqjgag90dp56z4gfnrr7-accountsservice-0.6.55/libexec/accounts-daemon (code=exited, status=226/NAMESPACE)
Main PID: 2154 (code=exited, status=226/NAMESPACE)
IP: 0B in, 0B out
CPU: 9ms
May 20 19:51:04 nixos systemd[1]: Starting Accounts Service...
May 20 19:51:04 nixos systemd[2154]: accounts-daemon.service: Failed to set up mount namespacing: /run/systemd/unit-root/usr/lib/modules: Not a directory
May 20 19:51:04 nixos systemd[2154]: accounts-daemon.service: Failed at step NAMESPACE spawning /nix/store/nld9dik9x218wqjgag90dp56z4gfnrr7-accountsservice-0.6.55/libexec/accounts-daemon: Not a directory
May 20 19:51:04 nixos systemd[1]: accounts-daemon.service: Main process exited, code=exited, status=226/NAMESPACE
May 20 19:51:04 nixos systemd[1]: accounts-daemon.service: Failed with result 'exit-code'.
May 20 19:51:04 nixos systemd[1]: Failed to start Accounts Service.
● systemd-logind.service - User Login Management
Loaded: loaded (/nix/store/zpzn7c5g58srji21flwqmxzbnaa8w29j-systemd-246.6/example/systemd/system/systemd-logind.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/spddxxcnwaq21v63y6m21v0y6snw7v6p-system-units/systemd-logind.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Thu 2021-05-20 19:51:04 BST; 5s ago
Docs: man:systemd-logind.service(8)
man:logind.conf(5)
https://www.freedesktop.org/wiki/Software/systemd/logind
https://www.freedesktop.org/wiki/Software/systemd/multiseat
Process: 2184 ExecStart=/nix/store/zpzn7c5g58srji21flwqmxzbnaa8w29j-systemd-246.6/lib/systemd/systemd-logind (code=exited, status=226/NAMESPACE)
Main PID: 2184 (code=exited, status=226/NAMESPACE)
IP: 0B in, 0B out
CPU: 3ms
May 20 19:51:04 nixos systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 5.
May 20 19:51:04 nixos systemd[1]: Stopped User Login Management.
May 20 19:51:04 nixos systemd[1]: systemd-logind.service: Start request repeated too quickly.
May 20 19:51:04 nixos systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
May 20 19:51:04 nixos systemd[1]: Failed to start User Login Management.
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/nix/store/zpzn7c5g58srji21flwqmxzbnaa8w29j-systemd-246.6/example/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /nix/store/spddxxcnwaq21v63y6m21v0y6snw7v6p-system-units/systemd-timesyncd.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Thu 2021-05-20 19:51:04 BST; 8s ago
Docs: man:systemd-timesyncd.service(8)
Process: 2175 ExecStart=/nix/store/zpzn7c5g58srji21flwqmxzbnaa8w29j-systemd-246.6/lib/systemd/systemd-timesyncd (code=exited, status=226/NAMESPACE)
Main PID: 2175 (code=exited, status=226/NAMESPACE)
IP: 0B in, 0B out
CPU: 6ms
May 20 19:51:04 nixos systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.
May 20 19:51:04 nixos systemd[1]: Stopped Network Time Synchronization.
May 20 19:51:04 nixos systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
May 20 19:51:04 nixos systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
May 20 19:51:04 nixos systemd[1]: Failed to start Network Time Synchronization.
warning: error(s) occurred while switching to the new configuration