!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

338 Members
https://github.com/nix-community/NixOS-WSL57 Servers

Load older messages


SenderMessageTime
18 Aug 2024
@k900:0upti.meK900That sounds very wrong20:40:07
@whovian9369:matrix.orgWhovian9369 Tested $ sudo whoami in my original Ubuntu instance and it still appears to work fine too 20:41:01
@whovian9369:matrix.orgWhovian9369

Here's the updated wsl --version output

WSL version: 2.3.17.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.64
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.4780
20:41:30
@whovian9369:matrix.orgWhovian9369(Interestingly, the WSLg and DXCore versions differ now too? Not sure if that's intentional, and/or I'm misreading.)20:42:42
@k900:0upti.meK900Yes, that's normal20:42:47
@whovian9369:matrix.orgWhovian9369Happen to have any ideas, or am I just stuck with this issue for the time being?20:46:26
@k900:0upti.meK900 Can you check dmesg from the Ubuntu instance and see if there's any errors there? 20:47:17
@whovian9369:matrix.orgWhovian9369 Skimming to the end quickly, the output at the bottom exactly matches the one when run from nixpkgs 20:48:28
@whovian9369:matrix.orgWhovian9369 * Skimming to the end quickly, the output at the bottom exactly matches the one when run from Nix20:48:32
@whovian9369:matrix.orgWhovian9369And a couple quick "Page Up"s seems to show that they still match 20:49:38
@k900:0upti.meK900Yes, it is the same kernel20:50:10
@k900:0upti.meK900But it should also have messages from NixOS activatoin20:50:18
@k900:0upti.meK900* But it should also have messages from NixOS activation20:50:20
@k900:0upti.meK900 Actually, can you just try to wsl --shutdown and restart the VM first? 20:50:29
@whovian9369:matrix.orgWhovian9369Just did that actually, and started both NixOS and Ubuntu20:50:42
@whovian9369:matrix.orgWhovian9369
[    2.041577] WSL (2) WARNING: hostname set to nixos-wsl in /etc/wsl.conf
[    2.050661] WSL (2) WARNING: /usr/share/zoneinfo/America/New_York not found. Is the tzdata package installed?
[    2.068520] systemd_shim[1]: /dev/shm is not a symlink, leaving as-is...
[    2.069205] systemd_shim[1]: Remounting / shared...
[    2.069637] systemd_shim[1]: Remounting /nix/store read-only...
[    2.070372] systemd_shim[1]: Running activation script...
[    2.172772] Can't ignore signal CHLD, forcing to default.
[    2.314321] Can't ignore signal CHLD, forcing to default.
[    2.410033] setting up /run/booted-system...
[    2.411011] sh: line 1: grep: command not found
[    2.411305] sh: line 1: systemctl: command not found
[    2.413893] setting up /etc...
[    2.588282] setting up /bin...
[    2.595867] setting up /bin/login...
[    2.599100] setting up /sbin/init shim...
[    2.608438] systemd_shim[1]: Spawning real systemd...
[    2.666790] Failed to connect to bus: No such file or directory
[    2.922972] Failed to connect to bus: No such file or directory

Skimming dmesg made these jump out at me

20:51:48
@k900:0upti.meK900Yeah that seems normal20:52:04
@k900:0upti.meK900Though I wonder why the sh thing is back20:52:20
@k900:0upti.meK900And you are using latest nixos-wsl, correct?20:52:34
@whovian9369:matrix.orgWhovian9369 I believe so yeah, I even updated nixos-wsl's flake input recently while I was updating the rest of my config 20:53:27
@k900:0upti.meK900Oh wait no this is fine20:53:31
@k900:0upti.meK900Because you didn't have a /bin/sh presumably20:53:46
@k900:0upti.meK900So it just lost the race once20:53:59
@k900:0upti.meK900Which is fine probably20:54:02
@k900:0upti.meK900 Check journalctl on the NixOS side, are there any errors 20:54:20
@k900:0upti.meK900 Check journalctl on the NixOS side, are there any errors? 20:54:22
@whovian9369:matrix.orgWhovian9369
[    3.088622] misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22
[    3.094189] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    3.095047] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    3.095696] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    3.096450] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    3.180922] Failed to connect to bus: No such file or directory
[    3.437537] Failed to connect to bus: No such file or directory
[    3.694745] Failed to connect to bus: No such file or directory
[    3.950524] Failed to connect to bus: No such file or directory
[    3.993589] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    4.122778] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    4.123407] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2

This is right after what I posted above -- Lots of Failed to connect to bus: No such file or directory or misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2 after that though

20:54:41
@k900:0upti.meK900Those are fine20:54:56
@k900:0upti.meK900That's just WSLg being weird20:55:08
@k900:0upti.meK900"Failed to connect to bus" is presumably because your user session is still not starting correctly20:55:24

Show newer messages


Back to Room ListRoom Version: 9