!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

284 Members
https://github.com/nix-community/NixOS-WSL56 Servers

Load older messages


SenderMessageTime
4 Sep 2024
@ss:someonex.netSomeoneSerge (utc+3) changed their display name from SomeoneSerge (UTC+3) to SomeoneSerge (nix.camp).21:49:10
6 Sep 2024
@rosssmyth:matrix.orgrosssmyth joined the room.14:11:16
@rosssmyth:matrix.orgrosssmyth
In reply to @silver:matrix.brendan.ie
getting error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused and teh alst thing I did to the system was a GC
Yeah this has been happening to me every time I boot into WSL. My fix has been running sudo nixos-rebuild switch --flake $MY_CONFIG once after starting WSL, then the daemon is started.
14:14:47
@k900:0upti.meK900Hmm, I wonder if this is something that got broken in the latest WSL update14:15:15
@k900:0upti.meK900I have not updated since the version that unshipped 6.614:15:24
@k900:0upti.meK900So I can have a normal OOM killer14:15:28
@rosssmyth:matrix.orgrosssmythYeah, sadly I am not attentive enough to say when it started but I think in the past week or so? I'll try disabling gc to see if it makes any difference though that would be weird.14:17:01
@rosssmyth:matrix.orgrosssmythnope14:18:41
@k900:0upti.meK900 What does systemctl status nix-daemon say on first boot? 14:19:23
@rosssmyth:matrix.orgrosssmyth Failed to connect to bus: No such file or directory 14:20:29
@rosssmyth:matrix.orgrosssmythAfter running nixos-rebuild it does output something14:21:09
@k900:0upti.meK900Uhh14:21:37
@k900:0upti.meK900That sounds like systemd might not be starting14:21:43
@k900:0upti.meK900Oh wait14:21:44
@k900:0upti.meK900OH WAIT.14:21:45
@k900:0upti.meK900Oh. Wait.14:21:47
@k900:0upti.meK900 cat /proc/cmdline? 14:21:58
@rosssmyth:matrix.orgrosssmythWhen, any time?14:22:19
@k900:0upti.meK900Any time14:22:30
@rosssmyth:matrix.orgrosssmyth initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=19 hv_utils.timesync_implicit=1 console=hvc0 debug pty.legacy_count=0 14:22:41
@k900:0upti.meK900OK yeah14:22:47
@k900:0upti.meK900
In reply to@k900:0upti.me
Do you have

[wsl2]
kernelCommandLine = cgroup_no_v1=all

in your .wslconfig?
^ do this
14:23:21
@k900:0upti.meK900Otherwise your systemd is not starting14:23:29
@rosssmyth:matrix.orgrosssmythOkie dokie14:23:37
@k900:0upti.meK900 @silver same problem probably actually 14:23:52
@rosssmyth:matrix.orgrosssmythThat worked!14:24:40
@rosssmyth:matrix.orgrosssmythThanks.14:24:42
@pgkrusl:matrix.orgKrusl Lee joined the room.14:57:03
@common16:matrix.orgcommon16 joined the room.14:57:05
@bumperboat:matrix.orgbumperboat joined the room.14:57:35

Show newer messages


Back to Room ListRoom Version: 9