!zghijEASpYQWYFzriI:nixos.org

Hydra

392 Members
110 Servers

Load older messages


SenderMessageTime
15 Apr 2022
@ulrikstrid:matrix.org@ulrikstrid:matrix.org Trying to have hydra build stuff using my m1 but I'm getting this error and I can't reproduce when I ssh into the machine:
‘hydra@192.168.1.254’: error: cannot connect to ‘hydra@192.168.1.254’: zsh:1: command not found: nix-store any ideas?
19:50:06
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgLooks like my exact issue is described here: https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html19:56:34
@ulrikstrid:matrix.org@ulrikstrid:matrix.org With that fixed, now I'm getting ‘hydra@192.168.1.254’: error: unexpected end-of-file any idea how to debug this? 20:34:32
@artturin:matrix.orgArtturin
In reply to @ulrikstrid:matrix.org
With that fixed, now I'm getting ‘hydra@192.168.1.254’: error: unexpected end-of-file any idea how to debug this?
thats usually caused by mismatched nix versions
20:35:02
@artturin:matrix.orgArtturinbetween the daemon and client20:35:35
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgThat seems likely, my hydra runner seems to have nixUnstable (2.8....) and the builder 2.720:38:12
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgTrying to downgrade my hydra machine20:38:18
@artturin:matrix.orgArtturingithub issue search is not the best :/20:39:01
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgNow the question is... why can't I downgrade my server? 😂20:40:19
@artturin:matrix.orgArtturini don't know, i can't see your screen20:43:53
@artturin:matrix.orgArtturin

thse are the nix versions available ```
nix-repl> nixVersions.
nixVersions.unfix nixVersions.override
nixVersions.extend nixVersions.overrideDerivation
nixVersions.nix_2_3 nixVersions.recurseForDerivations
nixVersions.nix_2_4 nixVersions.stable
nixVersions.nix_2_5 nixVersions.unstable
nixVersions.nix_2_6
nixVersions.nix_2_7

20:44:25
@ulrikstrid:matrix.org@ulrikstrid:matrix.org

Yeah, sorry, probably more of a rethorical question...
I have this:

  nix = {
    package = pkgs.nix;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
  };
20:44:34
@artturin:matrix.orgArtturin *

thse are the nix versions available

nix-repl> nixVersions.
nixVersions.**unfix**              nixVersions.override
nixVersions.extend                 nixVersions.overrideDerivation
nixVersions.nix\_2\_3                nixVersions.recurseForDerivations
nixVersions.nix\_2\_4                nixVersions.stable
nixVersions.nix\_2\_5                nixVersions.unstable
nixVersions.nix\_2\_6
nixVersions.nix\_2\_7
20:44:39
@ulrikstrid:matrix.org@ulrikstrid:matrix.org And I apply it via my flake (which works for everything else) with a switch 20:44:52
@ulrikstrid:matrix.org@ulrikstrid:matrix.org But when I ssh in to the server and run nix --version it still tells me 2.8.... 20:45:15
@artturin:matrix.orgArtturin pkgs.nix is 2.7.0 20:45:34
@artturin:matrix.orgArtturinon unstable at least20:46:02
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgI'm on unstable. but it should still be 2.7.020:46:04
@artturin:matrix.orgArtturinforgot you we're trying to go back from 2.820:46:37
@artturin:matrix.orgArtturin * forgot you were trying to go back from 2.820:46:42
@artturin:matrix.orgArtturinrestart the nix daemon20:46:49
@artturin:matrix.orgArtturin sudo systemctl restart nix-daemon.service 20:47:01
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgTrying a full reboot20:48:52
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgNot even that helped20:49:38
@artturin:matrix.orgArtturin Ulrik Strid: nix doctor 20:56:13
@artturin:matrix.orgArtturin * Ulrik Strid: nix doctor -vvvv 20:56:17
@ulrikstrid:matrix.org@ulrikstrid:matrix.org
In reply to @artturin:matrix.org
Ulrik Strid: nix doctor -vvvv

It seems to be pretty happy:

inst store uri: local
[PASS] PATH contains only one nix version.
[PASS] All profiles are gcroots.
[PASS] Client protocol matches store protocol.
21:01:13
@ulrikstrid:matrix.org@ulrikstrid:matrix.org

But I still get

nix --version
nix (Nix) 2.8.0pre20220405_5fe4fe8
21:01:34
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgMy guess is that I have some strange error in my script, but I have to go to bed now so I'll have to figure this out tomorrow21:02:02
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgThanks for the help! :)21:02:07

Show newer messages


Back to Room ListRoom Version: 6