Distributed build: Difference between revisions

imported>Petercommand
No edit summary
imported>Symphorien
Troubleshooting: don't recommend being a trusted user unconditionnaly on nixos
Line 172: Line 172:
* I can <code>nix ping-store</code> but the build doesn't distribute.
* I can <code>nix ping-store</code> but the build doesn't distribute.
** If on NixOS, Check that <code>nix ping-store</code> command works when run as root.
** If on NixOS, Check that <code>nix ping-store</code> command works when run as root.
** If on NixOS, make sure your account is in <code>nix.trustedUsers</code> in <code>/etc/nixos/configuration.nix</code>.
** If you configured builders on the command line (with <code>--builders</code>), make sure your account is in <code>nix.trustedUsers</code> in <code>/etc/nixos/configuration.nix</code>. Only <code>/etc/nix/nix.conf</code> is taken into account otherwise.
* I can ping the store as root, but I'm getting "broken pipe" errors when trying to distribute.
* I can ping the store 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>.