Lix | 1102 Members | |
| Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms | 294 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Dec 2025 | ||
| i found the problem: containers the other computer it fails on is a lxc container the container only has 16 bit UID and GIDs because of that it fails to chown :872415232 /nix/var/nix/b/5i50qd60sib1gcpvdmbrr667pd: "Invalid argument" | 04:23:39 | |
| * i found the problem: containers the computer it fails on is a lxc container the container only has 16 bit UID and GIDs because of that it fails to chown :872415232 /nix/var/nix/b/5i50qd60sib1gcpvdmbrr667pd: "Invalid argument" | 04:23:49 | |
Are you connecting from outside the container? Also what exactly are you doing, that ID looks suspiciously like one assigned by auto-allocate-uids but that should be about the builder uids, whereas the whown should happen to the requester uid. | 05:16:19 | |
| waiting for lock on '/nix/store/7m50sgfypkh0as0b5r1d89nnwpcykdq2-app.cash.licensee.gradle.plugin-1.13.0.pom'... copying path '/nix/store/g3h31isgd6br4aimdfbm8nmq5s29hc5k-roc-toolkit-0.4.0' from 'https://cache.nixos.org'... error (ignored): error: creating file '/nix/store/y8v2fxx306p7f3k6j8bqiv4abj7jw8vk-gtksourceview-4.8.4/share/gtksourceview-4/language-specs/boo.lang': Too many open files error: opening directory '/nix/store/y689lkv4jyfcqs4mjlhxkf5kphdqyihr-ui-unit-1.10.0-alpha01.jar': Too many open files Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 1. | 07:31:32 | |
| I have problem | 07:31:38 | |
| ❯ ulimit unlimited | 07:32:01 | |
| This is on the daemon, presumably | 07:33:03 | |
| Is there any way to fix, i cant switch | 07:47:21 | |
| Are you running some sort of "hardened" setup? | 07:47:34 | |
| no | 07:55:23 | |
| https://github.com/Aijokey/nix_configs# | 07:58:41 | |
| you can build without the daemon the system | 09:23:41 | |
In reply to @raitobezarius:matrix.orgHow? | 09:24:02 | |
NIX_REMOTE=local <your command that rebuilds your system> if that respects environment variables | 09:24:18 | |
| but i'm more concerned that you are reaching open files limit with the daemon | 09:24:30 | |
what does systemctl cat nix-daemon show? | 09:24:38 | |
In reply to @raitobezarius:matrix.orgFor now I can't access pc, no electricity | 09:25:13 | |
| No problem, let us know when you can access it again | 09:25:31 | |
| OK | 09:25:40 | |
i am on lix 2.93.3 and tried to setup a remote builder following https://docs.lix.systems/manual/lix/stable/advanced-topics/distributed-builds.html and https://nix.dev/tutorials/nixos/distributed-builds-setup but it failes with this message in the systemd log of nix-daemonDec 08 03:27:33 silent nix-daemon[20189]: error: error processing connection: user 'nixremote' is not allowed to connect to the Nix daemon | 11:11:49 | |
can you do nix show-config on the remote system? | 11:18:49 | |
* can you do nix config show on the remote system? | 11:18:59 | |
yep i had auto-allocate-uids enabled | 11:23:16 | |
accept-flake-config = askaccess-tokens =allow-dirty = trueallow-import-from-derivation = trueallow-symlinked-store = falseallow-unsafe-native-code-during-evaluation = falseallowed-impure-host-deps =allowed-uris =allowed-users = @users nixremotealways-allow-substitutes = falseauto-allocate-uids = falseauto-optimise-store = truebash-prompt =bash-prompt-prefix =bash-prompt-suffix =build-dir = /nix/var/nix/buildsbuild-hook = /nix/store/kg6pv5f01vj5w6k7scy2zfvnkcgbifcw-lix-2.93.3/bin/nix __build-remotebuild-poll-interval = 5build-users-group =builders =builders-use-substitutes = truecommit-lockfile-summary =compress-build-log = trueconnect-timeout = 5cores = 0debugger-on-trace = falsedeprecated-features =diff-hook =download-attempts = 5download-speed = 0enable-core-dumps = falseeval-cache = trueeval-system =experimental-features = flakes nix-commandextra-platforms = aarch64-linux i686-linuxfallback = falseflake-registry = vendoredfsync-metadata = truegc-reserved-space = 8388608hashed-mirrors =http-connections = 25http2 = trueid-count = 8388608ignore-try = falseignored-acls = security.csm security.selinux system.nfs4_aclimpersonate-linux-26 = falsekeep-build-log = truekeep-derivations = truekeep-env-derivations = falsekeep-failed = falsekeep-going = falsekeep-outputs = falselog-lines = 25max-build-log-size = 0max-call-depth = 10000max-free = 9223372036854775807max-jobs = 20max-silent-time = 0max-substitution-jobs = 16min-free = 0min-free-check-interval = 5nar-buffer-size = 33554432narinfo-cache-negative-ttl = 3600narinfo-cache-positive-ttl = 2592000netrc-file = /etc/nix/netrcnix-path = nixpkgs=/nix/store/vlnf0dq8nw13qyq3g6niiagw3nsgach1-qlvj3hhq8gl8cr62ryc906lbkmgsr0gl-source nixos-config=//dotfiles/root-silent.nix nixpkgs-overlays=//dotfiles/nixpkgs/overlays.nixpasta-path = /nix/store/2ffwz6yskvpjvg1rih36va4g3gaaq9yh-passt-2025_09_19.623dbf6/bin/pastaplugin-files =post-build-hook =pre-build-hook =preallocate-contents = falseprint-missing = truepure-eval = truerepl-overlays =require-drop-supplementary-groups = falserequire-sigs = truerestrict-eval = falserun-diff-hook = falsesandbox = truesandbox-build-dir = /buildsandbox-dev-shm-size = 50%sandbox-fallback = falsesandbox-paths = /bin/sh=/nix/store/9v6zfa4ws3llr0k6njl6gd03rwpn644b-busybox-1.36.1/bin/busybox /nix/store/cmd2ga70ar0wpyji7yafi0cxj1v6wvm5-qemu-aarch64-binfmt-P /run/binfmtsecret-key-files =show-trace = falsessl-cert-file = /etc/ssl/certs/ca-certificates.crtstalled-download-timeout = 300start-id = 872415232store = autosubstitute = truesubstituters = https://cache.nixos.org/sync-before-registering = falsesystem = x86_64-linuxsystem-features = benchmark big-parallel kvm nixos-testtarball-ttl = 3600temp-dir =timeout = 0trace-function-calls = falsetrace-verbose = falsetrusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=trusted-substituters =trusted-users = root nixremoteuse-case-hack = falseuse-cgroups = falseuse-registries = trueuse-sqlite-wal = trueuse-xdg-base-directories = falseuser-agent-suffix =warn-dirty = true | 11:32:50 | |
| This is the remote builder system, right? Not the local system? Because you have clearly nixremote listed there so I am confused as to how you can get that error | 11:38:29 | |
| i think i actually had that error too somewhen, but fixed it by just making the user trusted, which works in my case but very much shouldn't be the solution cc piegames | 11:41:04 | |
| yes i only have that user on the remote system. | 11:50:02 | |
which user? and making it trusted by a setting that is not just changing the nix.conf to something like trusted-users = root nixremote ? | 11:51:27 | |
| it's already listed trusted user | 11:52:05 | |
this is the error on the client side: | 11:53:16 | |