nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Build failure: fmd-server

Open j0hax opened this issue 8 months ago • 5 comments

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

Running nix run nixpkgs#fmd-server serve results in an error for the fmd-server-web-ui-pnpm-deps subpackage.

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/325287787

Relevant log output

error: Cannot build '/nix/store/2z75q0v279wza5g6kaqc0n209kwq4spn-fmd-server-web-ui-pnpm-deps.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/wdqpfcad9h501r7hipqnirpwf47f59cf-fmd-server-web-ui-pnpm-deps
       Last 2 log lines:
       > Running phase: unpackPhase
       > variable $src or $srcs should point to the source
       For full logs, run:
         nix log /nix/store/2z75q0v279wza5g6kaqc0n209kwq4spn-fmd-server-web-ui-pnpm-deps.drv
error: Cannot build '/nix/store/f5jmn5ixndkwfbnlgmqhgldjafgq571q-fmd-server-0.14.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/595rdha3zgznivz8s5ibrm6i7nmsjhq4-fmd-server-0.14.1

Additional context

No response

System metadata

  • system: "aarch64-linux"
  • host os: Linux 6.18.20, NixOS, 26.05 (Yarara), 26.05.20260401.1e6f1bb
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.3
  • channels(root): "nixos"
  • nixpkgs: /nix/store/2a8kg67dvsr672sra15jyy7nyf107mwd-source

Notify maintainers

@jthulhu @j0hax


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

j0hax avatar Apr 02 '26 11:04 j0hax

This should be fixed along with the updates in #501917.

MiniHarinn avatar Apr 02 '26 12:04 MiniHarinn

@MiniHarinn the update has already been merged in nixpkgs, see #502650.

@j0hax I cannot reproduce this issue locally:

$ cd nixpkgs
$ git co 1a5741a079d9214ded7e3b4cac5ecc9a13edf4a4
$ nix run .#fmd-server version
1.14.1
$

Furthermore, I actually run fmd-server in production without any issue.

jthulhu avatar Apr 02 '26 13:04 jthulhu

@MiniHarinn the update has already been merged in nixpkgs, see #502650.

@j0hax I cannot reproduce this issue locally:

$ cd nixpkgs $ git co 1a5741a079d9214ded7e3b4cac5ecc9a13edf4a4 $ nix run .#fmd-server version 1.14.1 $

Furthermore, I actually run fmd-server in production without any issue.

I was able to reproduce the issue on master.

Interestingly, switching to commit 1a5741a079d9214ded7e3b4cac5ecc9a13edf4a4 after building successfully once like you did and building it worked initially, but after performing a system garbage collection it failed again. Not sure what causes this.

Image

This should now be fully fixed in #506090.

kybe236 avatar Apr 02 '26 19:04 kybe236

Interestingly, switching to commit https://github.com/NixOS/nixpkgs/commit/1a5741a079d9214ded7e3b4cac5ecc9a13edf4a4 after building successfully once like you did and building it worked initially, but after performing a system garbage collection it failed again. Not sure what causes this.

Ah, I should have thought of that, it's a common pitfall: if you change the build recipe of something, but without changing its declared hash, it won't be built again if it's been built successfully once, because a derivation with the same hash is already in the store.

jthulhu avatar Apr 03 '26 07:04 jthulhu

Nice work, thanks for addressing the issue so quickly 👍🏼

j0hax avatar Apr 04 '26 08:04 j0hax