-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
NixOps libvirtd fails since username can't be detected #71157
Comments
This seems to also be the case with 19.09. |
I seem to be also affected by this issue. I am currently in process of bisecting Nixpkgs to see which commit introduced this behavior. |
It seems like the bug is caused by Nix update from 2.3 to 2.3.1 (Nixpkgs commit 3ab3614 by @edolstra). If only one could bisect Nix versions, applying each version to Nixpkgs. I think cloning Nix separately and running |
The error probably comes from https://github.com/NixOS/nix/blob/804910fb0eeb6a14ec8d6f98c7fd219da8d04581/src/libstore/local-store.cc#L80. You could try to set |
@edolstra Right now I'm building Nix 2.3 with update commit in Nixpkgs reverted. I will try adding |
Reverting the commit fixes the issue. Building with |
Experiencing this issue as well. Any updates on this? |
The issue in nixops was resolved through nix-community/nixops-libvirtd#4. However the issue in |
When is the time to mark a package broken? |
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * NixOS#71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * #71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5 (cherry picked from commit 687e219)
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * #71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5 (cherry picked from commit 687e219)
Within coming channel bumps of 19.09, 20.03, and unstable, this should be fixed. See #80680. |
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * NixOS#71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5
@samueldr, I'm on nixos-20.03 channel and still have "error: cannot figure out user name" while deploying on libvirtd. |
Eek, right,
I noted there that it wasn't the fix for the Nixops-side issue, but didn't re-open that issue. Sorry. Though, the issue, in Nixops, has been solved. I don't know why there has not been an update to it to use the now fixed plugin. I am not involved with the Nixops project though. @eadwu I updated the title to better reflect the situation, since runInLinuxVM now doesn't fail under the same situation. Tell me if the title is wrong. |
At the time the issue was created, the bug was in [1] nix-community/nixops-libvirtd@1c29f6c#diff-379b2f3643afdd2d648411d50c054080L9 |
Is there any fix or workaround for this issue? I cannot use nixops with libvirtd (this issue) and virtualbox (NixOS/nixops#1207). |
Is there any update on this issue? I thought nixops would be a fundamental part of nixos? |
Is this not fixed already on nixops side? |
(not a nixops user) AFAIUI not from a released version. |
Almost begs the question if it might be worth considering some kind of funding, similar to what we did for the nix re-write, for NixOps. I feel it's a very fundamental part of NixOS and would benefit from some dedicated work. |
Or at least finally mark the package broken, as it is broken (!) for months now. Probably this would lead to a little bit of attention to the issue. |
I'm getting this on NixOS 20.09:
|
So, what's the status of this now? |
Read my comment from July. NixOPS is probably just an unsupported side project. Why else would this issue be existing since 2019? Don't use NixOPS. |
So, what would you use instead? |
@devhell NixOps and nixops-libvirtd + nixops seem to still work if you use the overlay from this comment (although I haven't gone much further than the trivial examples). |
I marked this as stale due to inactivity. → More info |
Describe the bug
Specifically through nixops creating
libvirtd-image
, it fails witherror: cannot figure out user name
aroundchroot /mnt ${config.nix.package.out}/bin/nix-store --load-db
[2].whoami
outputswhoami: cannot find name for user ID 0: No such file or directory
.To Reproduce
Steps to reproduce the behavior:
Any nixops machine deployed through libvirtd.
nixops create -d a ./.
nixops deploy -d a
Expected behavior
Create a QEMU image successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result.Maintainer information:
nix-community/nixops-libvirtd#5
[2] https://github.com/nix-community/nixops-libvirtd/blob/master/nix/libvirtd-image.nix#L67
The text was updated successfully, but these errors were encountered: