Distributed build: Difference between revisions

imported>Endgame
Add troubleshooting section; document bug wrt distributing builds as a user on NixOS.
imported>Endgame
m Reminder about trustedUsers
Line 121: Line 121:
* 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>.
* 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>.