Comments (17)
Hmm this may be related to auto-allocate-uids
. I'll try to reproduce it. It may require some fix upstream.
from nix-installer.
same error for LXD containers
from nix-installer.
same error for LXD containers
The Alpine Linux container in which I tried to run nix-installer is an LXD container.
from nix-installer.
Same for an ArchLinux container using Distrobox with "--init" flag.
from nix-installer.
I've got the same error on a Proxmox 6.4 host with an Ubuntu 20.04 guest, installer 0.10.0.
Edit: There are similar issues with the official installer (multi user)
from nix-installer.
Does it work if you pass --extra-conf "sandbox = false"
? I wonder if it's sandboxing...
from nix-installer.
This may be possible to detect with heuristics.
Problem machine:
concrete-woodcock% cat /proc/self/uid_map
0 165536 10000001
Non-problem machine
❯ cat /proc/self/uid_map
0 0 4294967295
We may be able to set start-id
https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-start-id to something else and also configure id-count
https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-id-count, we want id-count
to be at least 65536. @edolstra suggests start-id
may need to be a multiple of id-count
.
So on concrete-woodcock
you could set
start-id = 131072
id-count = 65536
And it would start working.
from nix-installer.
Does #638 resolve this issue?
from nix-installer.
Does #638 resolve this issue?
nix-installer 0.14.0 successfully installed Nix 2.18.1 in my Alpine Linux container.
from nix-installer.
The installation works in containers now but if I try anything after that, like using the nix run
command with a package, it gives me a "No space left on device" error. Both with and without an init system. Don't know what I'm doing wrong.
from nix-installer.
The installation works in containers now but if I try anything after that, like using the
nix run
command with a package, it gives me a "No space left on device" error. Both with and without an init system. Don't know what I'm doing wrong.
That's strange. Are you running Nix inside a container, like Alpine Linux, that doesn't use systemd? In such containers, you must run Nix using sudo nix
.
from nix-installer.
I tried in an Alpine and also an Arch container. I did use sudo when there was no init system but got the same error. The error without sudo is about permissions and not device storage.
from nix-installer.
I'm getting this error with nix-installer on my host OS as well. I also used the official nix bash installation script
and I'm getting similar storage related errors. There's more than 50 GB free on my system, so, I'm stumped here.
On running nix run nixpkgs#hello
I get something like:
error:
… while fetching the input 'github:NixOS/nixpkgs/nixpkgs-unstable'
error: creating directory '/nix/store/tmp-3165-0/x/pkgs/tools/misc/sl': No space left on device
I guess I should ask about this at a more appropriate forum but any help is appreciated.
from nix-installer.
Is it possible that your root partition or specifically /nix
is mapped to a different device or volume that is full? What does df
report?
from nix-installer.
No, its on my main disk. It might be a problem with setting $TMPDIR but setting it manually isn't fixing the problem. Anyway, thanks for the help.
from nix-installer.
If you're facing this issue with the official bash scripts as well, could I invite you to open an issue on the Nix repo? :)
from nix-installer.
Yeah sure. I'll do it tomorrow. Night time here. 🙂
from nix-installer.
Related Issues (20)
- System has not been booted with systemd as init system (PID 1). Can't operate. HOT 1
- macOS 15 has group id 301 occupied. might need changing HOT 6
- MacOS 15.0 Beta broke users - attempting to re-install HOT 2
- nix-installer not placing nix on path in arch linux
- Crashes with `trying to unpack outside of destination path: /nix/temp-install-dir` if `/nix/temp-install-dir` exists
- Can't install or repair due to corrupted Nix store HOT 1
- nix-installer is inconsistent about what it does with nix-daemon.service
- --force has no effect if `nix-daemon.service` already exists
- Feature request: `/nix/nix-installer uninstall --keep-store`
- "uninstall" deletes files beyond those it says it will delete
- <autogenerated-issue>
- linux-multi - No such file or directory (os error 2) HOT 1
- `/Library/LaunchDaemons/org.nixos.darwin-store.plist` contents differs HOT 1
- <autogenerated-issue> HOT 1
- <autogenerated-issue> HOT 1
- user id 301 already exists on macOS 15 HOT 2
- Installer macOs do not work on MacOs 15.0 cause user Ids 301-304 are taken HOT 1
- `/nix/var` exists with a different uid (1000) than planned (0) HOT 5
- nixpkgs channel not found after install
- Failed to execute command `"mount" "-d"`: No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-installer.