Distributed build: Difference between revisions
corrected speedFactor comment |
m Minor wording changes |
||
| Line 244: | Line 244: | ||
* How do I know why my builds aren't being distributed? | * How do I know why my builds aren't being distributed? | ||
** Run <code>nix build -vvvvvvvvv 2>&1 | less</code> and search for <code>decline</code>. | ** Run <code>nix build -vvvvvvvvv 2>&1 | less</code> and search for <code>decline</code>. | ||
* I can <code>nix store | * I can <code>nix store info</code> but the build doesn't distribute. | ||
** If on NixOS, Check that <code>nix store | ** If on NixOS, Check that <code>nix store info</code> works when run as root. | ||
** If you configured builders on the command line | ** If you configured builders on the command line with the <code>--builders</code> flag, make sure your account is in <code>nix.trustedUsers</code> in <code>/etc/nixos/configuration.nix</code>. Otherwise only <code>/etc/nix/nix.conf</code> is taken into account. | ||
* I can | * I can <code>nix store info</code> as root, but I'm getting "broken pipe" errors when trying to distribute. | ||
** You may have hit bug {{Issue|46038}}. Add <code>nix.distributedBuilds = true;</code> to <code>configuration.nix</code> and <code>nixos-rebuild switch</code>. | ** You may have hit bug {{Issue|46038}}. Add <code>nix.distributedBuilds = true;</code> to <code>configuration.nix</code> and <code>nixos-rebuild switch</code>. | ||