Open pikajude opened 6 years ago
This isn't really a solution but have you tried restarting hydra-queue-runner (systemctl restart hydra-queue-runner
)? For whatever reason I need to do this every now and then when it gets "stuck". Attempts at isolating what causes such a state haven't panned out, unfortunately. Might not help but if you haven't tried it you definitely should :).
Nope, restarting hydra-queue-runner doesn't do anything. The original post has the output that I see every time I restart it.
Try adding the following supportedFeatures
line in your hydra master's /etc/nixos/configuration.nix:
nix.buildMachines = [
{ hostName = "localhost";
systems = ["builtin" "x86_64-linux" "i686-linux"];
supportedFeatures = [ "nixos-test" "benchmark" ];
};
];
Looks like adding builtin
to the systems
line was actually what fixed it here. Do you know why that's a requirement?
Not precisely. There were days of mystery, much searching and nixos-rebuilding, and eventually I stumbled on the above. :-) I can't remember the details, but this is an area that could use a little more illumination in hydra, as echoed by some of the other issues. I'm glad this was helpful to you as well.
BTW, you may be interested in my (currently underdocumented) vernix tool (https://github.com/kquick/vernix) which has a --hydra
option that generates the hydra declarative configuration information. If you do try it out, I'd be appreciative of any feedback.
Looks like adding builtin to the systems line was actually what fixed it here.
Same here. So far I've been using system = "x86_64-linux";
, since that's what's documented in man configuration.nix
under "nix.buildMachines". But since a few months (I think) my hydra has been broken due to this apparent need for systems = [ "builtin" ... ]
thing, which I had no idea about. (I tried to debug it once, but gave up. Too many bugs, too little time.)
Already fixed by 5a1f2a5, I suggest running latest hydra if possible.
@sorki I'd love to be able to, but generally the Hydra release that makes it into nixpkgs is the only one that ever works reliably. About half the time it fails to compile with the version of nix
that's in my nixpkgs and the other half of the time the server itself doesn't run (this time specifically, there's a Perl package missing from the release build)
My private Hydra server shows 7 queued jobs, all of which are listed as
x86_64-linux
, none of which are running (queued 13 hours ago).Based on reading previous issues along these lines, I tried creating
nix.buildMachines
in my system configuration and specifyingsupportedFeatures
. While this does make localhost show up on the Hydra "Build machines" admin page, it doesn't affect builds running or not.I'm using https://github.com/nixos/nixpkgs/commit/3688ab8f5d524cd54fd3f4e3d820d82f77f2940d without any hydra-specific overrides in my nixops system expression. My system is running nix-daemon with nix 2.0.4 and hydra-2017-11-21.
Here's the log output from
hydra-queue-runner
:What's the next step to debug this?