Coder Social home page Coder Social logo

Comments (17)

Hoverbear avatar Hoverbear commented on September 26, 2024

Hmm this may be related to auto-allocate-uids. I'll try to reproduce it. It may require some fix upstream.

from nix-installer.

bketelsen avatar bketelsen commented on September 26, 2024

same error for LXD containers

from nix-installer.

derekmahar avatar derekmahar commented on September 26, 2024

same error for LXD containers

The Alpine Linux container in which I tried to run nix-installer is an LXD container.

from nix-installer.

manan-gup avatar manan-gup commented on September 26, 2024

Same for an ArchLinux container using Distrobox with "--init" flag.

from nix-installer.

nexhub avatar nexhub commented on September 26, 2024

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.

Hoverbear avatar Hoverbear commented on September 26, 2024

Does it work if you pass --extra-conf "sandbox = false" ? I wonder if it's sandboxing...

from nix-installer.

Hoverbear avatar Hoverbear commented on September 26, 2024

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.

derekmahar avatar derekmahar commented on September 26, 2024

Does #638 resolve this issue?

from nix-installer.

derekmahar avatar derekmahar commented on September 26, 2024

Does #638 resolve this issue?

nix-installer 0.14.0 successfully installed Nix 2.18.1 in my Alpine Linux container.

from nix-installer.

manan-gup avatar manan-gup commented on September 26, 2024

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.

derekmahar avatar derekmahar commented on September 26, 2024

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.

manan-gup avatar manan-gup commented on September 26, 2024

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.

manan-gup avatar manan-gup commented on September 26, 2024

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.

derekmahar avatar derekmahar commented on September 26, 2024

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.

manan-gup avatar manan-gup commented on September 26, 2024

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.

Hoverbear avatar Hoverbear commented on September 26, 2024

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.

manan-gup avatar manan-gup commented on September 26, 2024

Yeah sure. I'll do it tomorrow. Night time here. 🙂

from nix-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.