NixOS auto upgrade failing on two systems - 26.05

Experiencing the same failure on a desktop and laptop running 26.05 for many days now:

Jul 05 08:00:29 T480nixos nixos-upgrade-start[3310]: error: Cannot build ‘/nix/store/85w697yrcvwrx4rizyax7g9irjdipyz7-unit-accounts-daemon.service.drv’.
Jul 05 08:00:29 T480nixos nixos-upgrade-start[3310]: Reason: 1 dependency failed.
Jul 05 08:00:29 T480nixos nixos-upgrade-start[3310]: Output paths:
Jul 05 08:00:29 T480nixos nixos-upgrade-start[3310]: /nix/store/bxddirrnb5cnfnskid85yp0jpa8nv4yr-unit-accounts-daemon.service
Jul 05 08:00:29 T480nixos nixos-upgrade-start[3310]: error: Build failed due to failed dependency
Jul 05 08:00:30 T480nixos nixos-upgrade-start[1784]: Command ‘nix-build ‘<nixpkgs/nixos>’ --attr config.system.build.toplevel --no-out-link --no-build-output’ returned non-zero exit status 1.
Jul 05 08:00:30 T480nixos systemd[1]: nixos-upgrade.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 08:00:30 T480nixos systemd[1]: nixos-upgrade.service: Failed with result ‘exit-code’.
Jul 05 08:00:30 T480nixos systemd[1]: Failed to start NixOS Upgrade.
Jul 05 08:00:30 T480nixos systemd[1]: nixos-upgrade.service: Consumed 9min 38.004s CPU time over 14min 14.698s wall clock time, 6.3G memory peak, 85M read from disk, 6.1G written to disk, 2.7G incoming

unit-accounts-daemon.service doesn’t sound like something that would be specific to my configuration. Any tips on trouble shooting would be much appreciated.

There’s more to the error messages, if you could show more of the log (journalctl -b 0 -u nixos-upgrade), that would help us find what’s wrong.

2 Likes

Many thanks. The problem appears to be RealVNC Viewer:

: error: Cannot build ‘/nix/store/39qbh5c42pi3q9sl87r6qjcs1qapfsfj-VNC-Viewer-7.15.1-Linux-x64.rpm.drv’.
: Reason: builder failed with exit code 1.
: Output paths:
: /nix/store/i7clqnpjj2pfx6fv3kq15wwivvk7ip51-VNC-Viewer-7.15.1-Linux-x64.rpm
: Last 17 log lines:
: > structuredAttrs is enabled
: >
: > trying https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.15.1-Linux-x64.rpm
: > % Total % Received % Xferd Average Speed Time Time Time Current
: > Dload Upload Total Spent Left Speed
: > 0 0 0 0 0 0 0 0 0
: > curl: (22) The requested URL returned error: 404
: > Warning: Problem (retrying all errors). Retrying in 1 second. 3 retries left.
: > 0 0 0 0 0 0 0 0 0
: > curl: (22) The requested URL returned error: 404
: > Warning: Problem (retrying all errors). Retrying in 2 seconds. 2 retries left.
: > 0 0 0 0 0 0 0 0 0
: > curl: (22) The requested URL returned error: 404
: > Warning: Problem (retrying all errors). Retrying in 4 seconds. 1 retry left.
: > 0 0 0 0 0 0 0 0 0
: > curl: (22) The requested URL returned error: 404
: > error: cannot download VNC-Viewer-7.15.1-Linux-x64.rpm from any mirror
: For full logs, run:
: nix-store -l /nix/store/39qbh5c42pi3q9sl87r6qjcs1qapfsfj-VNC-Viewer-7.15.1-Linux-x64.rpm.drv
: error: Cannot build ‘/nix/store/ny5hy6j1i06bawyma5r5zfq8lax5ivci-realvnc-vnc-viewer-7.15.1.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/97hmw6909cczqdgkccg2wzigp6sy08vx-realvnc-vnc-viewer-7.15.1
: error: Build failed due to failed dependency
: error: Cannot build ‘/nix/store/23xml9nrmzcyzcfand2920bwnkm3wz45-system-path.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/ha1kg175jqihhbyjr6gy1rhn9hrgqwyq-system-path
: error: Build failed due to failed dependency
: error: Cannot build ‘/nix/store/6qknpirs5vg29gy3j3d32s88m35y379m-X-Restart-Triggers-polkit.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/zc585z9nlr2srrls9f570y597dxzx90y-X-Restart-Triggers-polkit
: error: Cannot build ‘/nix/store/gr49v0jhmaz0n9vw8qlsx73cj1c8rckc-dbus-1.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/rwk7qhfqslb4mjnmyp7l4m46g71hn7qi-dbus-1
: error: Cannot build ‘/nix/store/sh4ikbii70bxp0jm9fxzyq4lsplz813v-etc.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/n51g11m11zcf7amrxmvcazahcgzvfl98-etc
: error: Cannot build ‘/nix/store/j96n83csbqcly4ya81wxwpg7icglj80v-nixos-system-nixos-26.05.4193.a50de1b7d8a5.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/p8cy9pw708zzpiz9khcr5p5qq3bas1xq-nixos-system-nixos-26.05.4193.a50de1b7d8a5
: error: Cannot build ‘/nix/store/rhm0bnf08kz78f7in08n6775vx2k9ig4-unit-accounts-daemon.service.drv’.
: Reason: 1 dependency failed.
: Output paths:
: /nix/store/qh2k2slpx48jxbwfncywjdca710mpgqg-unit-accounts-daemon.service
: error: Build failed due to failed dependency
Jul 05 13:25:27 nixos nixos-upgrade-start[2160]: Command ‘nix-build ‘<nixpkgs/nixos>’ --attr config.system.build.toplevel --no-out-link --no-build-output’ returned non-zero exit statu>
Jul 05 13:25:27 nixos systemd[1]: nixos-upgrade.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 13:25:27 nixos systemd[1]: nixos-upgrade.service: Failed with result ‘exit-code’.
Jul 05 13:25:27 nixos systemd[1]: Failed to start NixOS Upgrade.

I removed that from my configuration and did a manual nixos-rebuild without error.

1 Like

FYI, this has already been filed as an issue: Build failure: realvnc-vnc-viewer · Issue #534133 · NixOS/nixpkgs · GitHub

2 Likes