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
error: while setting up the build environment: getting attributes of path '/etc/hosts': Permission denied #41651
Comments
@magnetophon Can you provide a log of the |
@ryantm here is the config, and here's the log:
|
Does anyone have an idea what's going on here? |
@magnetophon Thank you for trying the latest nixos-unstable. A suggestion I have for you is to try simplifying your configuration until you figure out which part of it is causing the error. You could start by combining all your configuration into one file and then remove half of it and binary search your way to what line is causing the problem. |
Status update: I've been able to update my system by commenting out certain pkgs:
I havent found a link between these pkgs yet. |
Are you still getting the same error message? |
@ryantm Yes I am. Also, as a user,I tried:
|
What is the output of For me, it's:
|
@ryantm
|
Another odd thing about this: |
@ryantm I've simplified my configuration to the maximum, and stil get the same error, as long as I include one of the affected packages. This nixpkgs has a new version and hash for The content of
The output is:
I also get the error if I change
into:
and build without How can I continue troubleshooting? |
@magnetophon How about we try using the |
@ryantm Thanks, but unfortunately that doesn't tell us much:
|
Sorry, I don't have any other ideas. I see you don't have the stateVersion set, but I'm not sure how that would be relevant. Maybe try posting on the forum. Or asking on IRC. |
You could try installing your configuration on another machine or virtual machine and see if there is some state-based issue. |
@ryantm Thanks. Now we know it isn't config-related, It would have to be a state-based issue, wouldn't it? If it is a state-based issue, would I have to reinstall my machine, or is there another way? |
@ryantm I had some HW issues in the meantime, but now I'm back in buisiness, and on a decent net pipe. The debugging continues. |
Currently I'm running |
That didn't fix it, unfortunately. |
I got this same error when I by accident added my ssh private key to the sandbox (file permission 600)... I'd assume this should be a bug then? As the only way to recover that I know of is, booting into a previous generation. Setting the file permission to 777 temporarily, still results in the same error. |
Ran into this error when running More context: nix daemon was refrencing paths from |
I get the above error when I
nixos-rebuild
.Technical details
"x86_64-linux"
Linux 4.16.11, NixOS, 18.09pre140958.696c6bed4e8 (Jellyfish)
no
yes
nix-env (Nix) 2.0.2
""
"nixos"
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: