nixos-vscode-server icon indicating copy to clipboard operation
nixos-vscode-server copied to clipboard

Error: `builder for '...' failed to produce output path for output 'out' at '...'`

Open samuela opened this issue 3 years ago • 3 comments

I'm seeing the following error when running home-manager switch:

error: builder for '/nix/store/s31vlk12dslzkna3cncvg5a6636vyyf5-auto-fix-vscode-server.service.drv' failed to produce output path for output 'out' at '/nix/store/s31vlk12dslzkna3cncvg5a6636vyyf5-auto-fix-vscode-server.service.drv.chroot/nix/store/nhyc3xdqbw2gljn30y4wi2zwl1ki4mn1-auto-fix-vscode-server.service'
error: 1 dependencies of derivation '/nix/store/z02sq9nc2h1qw0vwayhzz594bir90iz1-home-manager-files.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sxb36xzkgj7zp2ng8g3k7l9szxw108nl-home-manager-generation.drv' failed to build

I'm seeing this now after upgrading to 22.05. Previously the exact same config worked without issue. Has anything changed in nixos-vscode-server to cause this? Or possibly a new nix version?

samuela avatar Jun 19 '22 00:06 samuela

I have not updated anything recently, so it should be Nix or HM (Home Manager) that is the caused something to change that triggers this error. I don't use HM myself, are you aware of any changes on how services are defined? The NixOS service variant does work (reinstalled the latest 2 weeks ago and used it successfully on my machines).

msteen avatar Jun 19 '22 14:06 msteen

Thanks for following up @msteen! Perhaps I'll give the NixOS service variant a try.

samuela avatar Jun 19 '22 19:06 samuela

just set up the NixOS config version and that seems to be working fine. Thanks for everything @msteen!

samuela avatar Jun 20 '22 06:06 samuela

I'm having the same error as @samuela , although I'm on home-manager version 21.11. Unfortunately I don't have the luxury to try the other methods, due to corporate environment I only have access to the home-manager configuration. Do you know what could be causing this issue?

CommanderKrons-Deuses avatar Sep 23 '22 15:09 CommanderKrons-Deuses

This issue seems to be caused by home-manager failing to create systemd service files: https://github.com/nix-community/home-manager/pull/2867 I'll try upgrading to 22.11

CommanderKrons-Deuses avatar Sep 26 '22 07:09 CommanderKrons-Deuses

I assume this was something related to a home manager bug and not on our end, if it is a bug of some kind in the home module of this project, let me know so I can address it.

msteen avatar Feb 14 '23 19:02 msteen