hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Building derivation fails when remote machine has already built it

Open basvandijk opened this issue 8 years ago • 3 comments

My hydra server is configured to use rpibuild3 (a Raspberry Pi 3) as a build machine. When hydra attempts to perform a remote build on that machine I see the following repeating in my journal:

Dec 11 14:32:44 hera hydra-queue-runner[27440]: performing step ‘/nix/store/l7iibqga4l9rk7zr9nvdhccyyvd0g236-smb-dummy.conf.drv’ 1 times on ‘root@rpibuild3’ (needed by build 14 and 0 others)
Dec 11 14:32:45 hera hydra-queue-runner[27440]: outputs of ‘/nix/store/l7iibqga4l9rk7zr9nvdhccyyvd0g236-smb-dummy.conf.drv’ substituted or already valid on ‘root@rpibuild3’
Dec 11 14:32:45 hera hydra-queue-runner[27440]: killing process 28795
Dec 11 14:32:45 hera hydra-queue-runner[27440]: will disable machine ‘root@rpibuild3’ for 87s
Dec 11 14:32:45 hera hydra-queue-runner[27440]: possibly transient failure building ‘/nix/store/l7iibqga4l9rk7zr9nvdhccyyvd0g236-smb-dummy.conf.drv’ on ‘root@rpibuild3’: unexpected end-of-file
Dec 11 14:32:45 hera hydra-queue-runner[27440]: will retry ‘/nix/store/l7iibqga4l9rk7zr9nvdhccyyvd0g236-smb-dummy.conf.drv’ after 1620s

What I understand from this is that rpibuild3 has already built /nix/store/l7iibqga4l9rk7zr9nvdhccyyvd0g236-smb-dummy.conf.drv. What I don't understand is why process 28795 got killed.

Is this a bug?

basvandijk avatar Dec 11 '16 14:12 basvandijk

unexpected end-of-file: full disk?

domenkozar avatar Dec 11 '16 18:12 domenkozar

@domenkozar unfortunately it's not that easy. I still have 110G available.

basvandijk avatar Dec 11 '16 19:12 basvandijk

For anyone in the future coming across this, to debug: on the hydra machine, sudo -u hydra-queue-runner nix build -L -j0 <your_derivation>. You'll be able to see whatever underlying error occurred on the remote builder.

npry avatar May 11 '24 15:05 npry