!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

300 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.108 Servers

Load older messages


SenderMessageTime
11 Dec 2024
@jade_:matrix.orgjade_
In reply to @rhelmot:matrix.org
I've been having this problem with nix forever and just working around it but now that lix is here and I can have nice things I figured I would ask - does anyone know why the nix/lix testcases fail when you build it in a sandboxed nix daemon that is NOT running on nixos? Asking here first on the off chance that this is a known quantity and I can save myself some debugging time :)
thats weird because it does not happen to me and i have been building lix since day 0
21:11:15
@jade_:matrix.orgjade_so i think you might want to file a bug :)21:11:25
@jade_:matrix.orgjade_it may be kernel weird or other weird21:11:41
@rhelmot:matrix.orgrhelmotbluh21:11:57
@rhelmot:matrix.orgrhelmotokie21:11:58
@jade_:matrix.orgjade_which distro is it?21:12:39
@rhelmot:matrix.orgrhelmotubuntu21:16:30
@rhelmot:matrix.orgrhelmotalso my university kubernetes cluster which I expect is also ubuntu21:16:46
@rhelmot:matrix.orgrhelmotin both of these cases the nix used was NOT the ubuntu distro - it was built from nixpkgs21:17:07
@rhelmot:matrix.orgrhelmotI am penning the issue rn. will include as much info as I can21:19:06
@puck:puck.moepuckwhat's the error you're getting, btw? is it about namespaces?21:19:42
@rhelmot:matrix.orgrhelmotone of them is about namespaces21:19:53
@rhelmot:matrix.orgrhelmot`unshare: write failed /proc/self/uid_map: Operation not permitted``21:20:10
@puck:puck.moepuckyeah, okay, that's not quite the same error but useful to keep track of21:20:32
@puck:puck.moepuck OH it's inside kubernetes 21:20:37
@puck:puck.moepuck * OH it's inside kubernetes/a container 21:20:44
@rhelmot:matrix.orgrhelmotthis also happens just on my laptop21:20:49
@rhelmot:matrix.orgrhelmotnot containerized21:20:53
@puck:puck.moepuckokay, that's more reasonable to debug then21:20:56
@rhelmot:matrix.orgrhelmotyeah thank god21:21:04
@rhelmot:matrix.orgrhelmotI gave the container full fuck-you-escape-the-sandbox permissions so hopefully that's not related21:21:27
@puck:puck.moepuck
In reply to @rhelmot:matrix.org
`unshare: write failed /proc/self/uid_map: Operation not permitted``
oh, looking up that error, might be useful to check if /proc/sys/kernel/apparmor_restrict_unprivileged_userns is 1, and if it is, if echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns solves the issue here
21:23:37
@rhelmot:matrix.orgrhelmotAPPARMOR????21:23:48
@rhelmot:matrix.orgrhelmotlsjkdj21:23:49
@puck:puck.moepuck(also, dmesg maybe has audit logs here)21:25:06
@rhelmot:matrix.orgrhelmothmmm... the kubernetes cluster doesn't have that option. the kernel is pretty old (5.15.0-125-generic) though21:26:03
@puck:puck.moepuckyeah, it seems to have been introduced in 24.04 (LTS)21:26:58
@puck:puck.moepuckor, no, 23.10?21:27:36
@jade_:matrix.orgjade_oh i think we might have an uwuntu bug already actually21:36:17
@jade_:matrix.orgjade_i think this has been complained about already21:36:31

Show newer messages


Back to Room ListRoom Version: 10