At work we are using a remote builder for our nix needs. I’m looking for a reliable way to get the build log files from this remote builder (for any user, not just the one that requested the build). My situation is as follows:
- The builder builds derivations fine.
- The builder’s store seems accessible, ie,
nix store ping --store ssh://builduser@buildserverreturns OK.
nix log .#myPackagewill show the log for package
myPackage, if and only if I was the (first one) to request that the build server build
- According to the documentation for
nix log, it is possible to query a remote store for a log: nix log - Nix Reference Manual using the
- Running this in my case gives me an error message:
$ nix log --store ssh://builderuser@buildserver .#myPackage error: … while fetching the input 'path:/home/me/my_package' error: operation 'addToStoreFromDump' is not supported by store 'ssh://builderuser@buildserver'
I feel like this final command should work, and that this is probably a bug, but I’m also not 100% confident that a remote builder is also (by default) a nix store that can be queried like this. Should I also set up
builduser@buildserver as a binary cache?
Any help appreciated.