-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nix 2: builder for ‘user-environment.drv’ failed with exit code 1 #1934
Comments
Happening to me on install.
|
FWIW I think this is a different issue. |
I'm seeing something similar on NixOS 18.03. Any installation fails with a similar error message:
|
@garry-cairns That looks like the problem I have. @edolstra I hate to pester, but this seems like a serious problem. I'm willing to try to debug it in my env, but I have no idea how to proceed. |
@nyarly so I've rolled back to 17.09 and now everything works as expected, so this looks like and 18.03 regression at my end. I'm also happy to help debug but will need pointed in the right direction. |
I'm on 17.09, and when I tried to install Nix 2 on it, I had this problem. I wound up having to call Nix 1.12 by absolute path to uninstall 2. I don't know why the builder would fail, or how to get more output. |
I can't reproduce this. |
Can you help us figure out what the cause is and produce a reproduction case? |
After conversation with I'm happy to consider this closed, unless "Nix 2 should error when contacting a 1.11 daemon" is a desired feature. |
I have similar issue
The file
I have nix-daemon
So, both are same, but issue still there. I was able to install package into new profile:
So this should be some kind of corruption of my current profile. @edolstra How can I debug, what's wrong with my profile? |
No idea. Maybe there is some kind of sandbox issue that prevents paths from showing up in the userenv build environment? |
I found this have to do something with my I found, that not all files in
And, most /strange/, removing that package (MPV) makes new regular files out of symlinks!
So, I've tried to remove packages that create such non-symlinks. I found a subset of packages, which I have to remove for Firefox install to work. All of these did create non-symlinks (but not only those):
It isn't a problem with one of these packages, but a combination. @edolstra Can this be used for further debugging? |
@danbst thanks — your commentary got me the workaround I needed. After I uninstalled python3-3.5.3, which was the only thing I had installed that was referenced in the error message I saw, my problem went away. |
That's probably just because one of the parent directories is symlinked. If only one installed package provides a directory (e.g. |
Fixes error: getting status of '/nix/store/j8p0vv89k1pf0cn7kmfsdcs7bshwga1i-firefox-52.7.2esr/share/icons/hicolor/48x48/apps/firefox.png': No such file or directory #1934 Also improve error message on directory/non-directory collisions.
❤️ |
Fixes NixOS#1934 (at least the "error: opening directory '/nix/store/...-linux-config-4.4.14': Not a directory" issue).
Fixes error: getting status of '/nix/store/j8p0vv89k1pf0cn7kmfsdcs7bshwga1i-firefox-52.7.2esr/share/icons/hicolor/48x48/apps/firefox.png': No such file or directory NixOS#1934 Also improve error message on directory/non-directory collisions.
I was trying to uninstall, because this is what happened for all nix-env operations (apart from -q)
The text was updated successfully, but these errors were encountered: