nix-community / NixOS-WSL

NixOS on WSL(2) [maintainer=@nzbr]
Apache License 2.0
1.81k stars 113 forks source link

Systemd user units totally busted after upgrading inputs #527

Closed starcraft66 closed 2 months ago

starcraft66 commented 2 months ago

Bug description

I upgraded my inputs to the latest nixpkgs-unstable and latest nixos-wsl. Now my viscode server stopped working and presumably all systemd user units aren't working either. I always get Failed to connect to bus: No such file or directory.

To Reproduce

Steps to reproduce the behavior: Upgrade your inputs and rebuild.

Logs

@WL-DN0HG14:~ ❯ dmesg
[    0.000000] Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024
[    0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=20 hv_utils.timesync_implicit=1 console=hvc0 debug pty.legacy_count=0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000e0fff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000001fffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x00000000f7ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000003fb9fffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: privilege flags low 0xae7f, high 0x3b8030, hints 0xa4e24, misc 0xe0bed7b2
[    0.000000] Hyper-V Host Build:22621-10.0-3-0.3880
[    0.000000] Hyper-V: Nested features: 0x3e0101
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x1e8480
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000001] tsc: Detected 2918.400 MHz processor
[    0.000008] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000010] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000011] last_pfn = 0x3fba00 max_arch_pfn = 0x400000000
[    0.000028] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.000036] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000041] Using GB pages for direct mapping
[    0.000041] Incomplete global flushes, disabling PCID
[    0.000225] RAMDISK: [mem 0x03dda000-0x03fe1fff]
[    0.000227] ACPI: Early table checksum verification disabled
[    0.000229] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.000233] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000237] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000240] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.000243] ACPI: FACS 0x0000000000101114 000040
[    0.000244] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000246] ACPI: SRAT 0x000000000011F349 0003F0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000248] ACPI: APIC 0x000000000011F739 0000E8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000250] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[    0.000251] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[    0.000252] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[    0.000253] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[    0.000253] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f738]
[    0.000254] ACPI: Reserving APIC table memory at [mem 0x11f739-0x11f820]
[    0.000367] Zone ranges:
[    0.000368]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000369]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000370]   Normal   [mem 0x0000000100000000-0x00000003fb9fffff]
[    0.000371]   Device   empty
[    0.000372] Movable zone start for each node
[    0.000373] Early memory node ranges
[    0.000373]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000374]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000374]   node   0: [mem 0x0000000100000000-0x00000003fb9fffff]
[    0.000376] Initmem setup node 0 [mem 0x0000000000001000-0x00000003fb9fffff]
[    0.000472] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000488] On node 0, zone DMA: 352 pages in unavailable ranges
[    0.007569] On node 0, zone Normal: 17920 pages in unavailable ranges
[    0.007595] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.007757] IOAPIC[0]: apic_id 20, version 17, address 0xfec00000, GSI 0-23
[    0.007759] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.007762] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.007762] TSC deadline timer available
[    0.007763] smpboot: Allowing 20 CPUs, 0 hotplug CPUs
[    0.007768] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.007769] Booting paravirtualized kernel on Hyper-V
[    0.007770] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011522] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:20 nr_node_ids:1
[    0.012290] percpu: Embedded 54 pages/cpu s180696 r8192 d32296 u262144
[    0.012293] pcpu-alloc: s180696 r8192 d32296 u262144 alloc=1*2097152
[    0.012295] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 12 13 14 15
[    0.012299] pcpu-alloc: [0] 16 17 18 19 -- -- -- --
[    0.012307] Hyper-V: PV spinlocks enabled
[    0.012309] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.012312] Built 1 zonelists, mobility grouping on.  Total pages: 4077853
[    0.012313] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=20 hv_utils.timesync_implicit=1 console=hvc0 debug pty.legacy_count=0
[    0.012346] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[    0.012347] printk: log_buf_len individual max cpu contribution: 4096 bytes
[    0.012348] printk: log_buf_len total cpu_extra contributions: 77824 bytes
[    0.012348] printk: log_buf_len min size: 131072 bytes
[    0.012424] printk: log_buf_len: 262144 bytes
[    0.012424] printk: early log buf free: 125616(95%)
[    0.014027] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.014911] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.015018] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.031305] Memory: 4081316K/16573052K available (18452K kernel code, 2628K rwdata, 9648K rodata, 2008K init, 1816K bss, 402292K reserved, 0K cma-reserved)
[    0.031349] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=20, Nodes=1
[    0.031360] ftrace: allocating 52916 entries in 207 pages
[    0.046972] ftrace: allocated 207 pages with 6 groups
[    0.047164] rcu: Hierarchical RCU implementation.
[    0.047165] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=20.
[    0.047167]  Rude variant of Tasks RCU enabled.
[    0.047167]  Tracing variant of Tasks RCU enabled.
[    0.047172] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.047173] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=20
[    0.049570] Using NULL legacy PIC
[    0.049572] NR_IRQS: 16640, nr_irqs: 584, preallocated irqs: 0
[    0.049742] random: crng init done
[    0.049760] Console: colour dummy device 80x25
[    0.049768] ACPI: Core revision 20210730
[    0.049814] Failed to register legacy timer interrupt
[    0.049815] APIC: Switch to symmetric I/O mode setup
[    0.050652] x2apic enabled
[    0.051461] Switched APIC routing to physical x2apic.
[    0.051471] Hyper-V: Using IPI hypercalls
[    0.051508] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2a11290c0c8, max_idle_ns: 440795344938 ns
[    0.051513] Calibrating delay loop (skipped), value calculated using timer frequency.. 5836.80 BogoMIPS (lpj=29184000)
[    0.051567] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[    0.051575] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.051576] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.051578] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.051580] Spectre V2 : Mitigation: Enhanced IBRS
[    0.051580] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.051580] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[    0.051581] RETBleed: Mitigation: Enhanced IBRS
[    0.051582] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.051582] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.051591] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.051592] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.051592] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.051594] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.051594] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.060096] Freeing SMP alternatives memory: 60K
[    0.060099] pid_max: default: 32768 minimum: 301
[    0.060113] LSM: Security Framework initializing
[    0.060117] landlock: Up and running.
[    0.060145] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.060163] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.060293] smpboot: CPU0: 13th Gen Intel(R) Core(TM) i7-13700H (family: 0x6, model: 0xba, stepping: 0x2)
[    0.060347] Performance Events: unsupported p6 CPU model 186 no PMU driver, software events only.
[    0.060355] signal: max sigframe size: 1776
[    0.060362] rcu: Hierarchical SRCU implementation.
[    0.060644] smp: Bringing up secondary CPUs ...
[    0.060679] x86: Booting SMP configuration:
[    0.060680] .... node  #0, CPUs:        #1  #2  #3  #4  #5  #6  #7  #8  #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19
[    0.062096] smp: Brought up 1 node, 20 CPUs
[    0.062100] smpboot: Max logical packages: 1
[    0.062101] smpboot: Total of 20 processors activated (116736.00 BogoMIPS)
[    0.071516] node 0 deferred pages initialised in 10ms
[    0.072481] devtmpfs: initialized
[    0.072481] x86/mm: Memory block size: 128MB
[    0.072481] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.072481] futex hash table entries: 8192 (order: 7, 524288 bytes, linear)
[    0.072481] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.072481] audit: initializing netlink subsys (disabled)
[    0.072481] thermal_sys: Registered thermal governor 'step_wise'
[    0.072481] audit: type=2000 audit(1722949327.020:1): state=initialized audit_enabled=0 res=1
[    0.072481] cpuidle: using governor menu
[    0.072481] ACPI: bus type PCI registered
[    0.072481] PCI: Fatal: No config space access function found
[    0.072481] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.072481] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.072481] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.081652] raid6: skip pq benchmark and using algorithm avx2x4
[    0.081652] raid6: using avx2x2 recovery algorithm
[    0.081652] ACPI: Added _OSI(Module Device)
[    0.081652] ACPI: Added _OSI(Processor Device)
[    0.081652] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.081652] ACPI: Added _OSI(Processor Aggregator Device)
[    0.081652] ACPI: Added _OSI(Linux-Dell-Video)
[    0.081652] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.081652] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.092108] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.092526] ACPI: Interpreter enabled
[    0.092528] ACPI: PM: (supports S0 S5)
[    0.092529] ACPI: Using IOAPIC for interrupt routing
[    0.092533] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.092604] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.093217] iommu: Default domain type: Translated
[    0.093218] iommu: DMA domain TLB invalidation policy: lazy mode
[    0.093257] SCSI subsystem initialized
[    0.093261] ACPI: bus type USB registered
[    0.093267] usbcore: registered new interface driver usbfs
[    0.093270] usbcore: registered new interface driver hub
[    0.093274] usbcore: registered new device driver usb
[    0.093278] pps_core: LinuxPPS API ver. 1 registered
[    0.093279] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.093280] PTP clock support registered
[    0.093297] hv_vmbus: Vmbus version:5.3
[    0.093297] PCI: Using ACPI for IRQ routing
[    0.093297] PCI: System does not support PCI
[    0.093297] clocksource: Switched to clocksource tsc-early
[    0.093297] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    0.093297] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[    0.093297] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[    0.098338] VFS: Disk quotas dquot_6.6.0
[    0.098348] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.098361] FS-Cache: Loaded
[    0.098379] pnp: PnP ACPI init
[    0.098511] pnp: PnP ACPI: found 1 devices
[    0.107959] NET: Registered PF_INET protocol family
[    0.108226] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.109079] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.109088] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.109091] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.109253] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.109310] TCP: Hash tables configured (established 131072 bind 65536)
[    0.109329] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.109346] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.109379] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.109991] RPC: Registered named UNIX socket transport module.
[    0.109991] RPC: Registered udp transport module.
[    0.109992] RPC: Registered tcp transport module.
[    0.109992] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.109994] PCI: CLS 0 bytes, default 64
[    0.110006] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.110006] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[    0.110023] KVM: vmx: using Hyper-V Enlightened VMCS
[    0.110276] Trying to unpack rootfs image as initramfs...
[    0.111279] Freeing initrd memory: 2080K
[    0.225179] kvm: already loaded the other module
[    0.227906] Initialise system trusted keyrings
[    0.227973] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    0.228386] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.228593] NFS: Registering the id_resolver key type
[    0.228596] Key type id_resolver registered
[    0.228596] Key type id_legacy registered
[    0.228598] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.228600] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.228600] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.229030] Key type cifs.idmap registered
[    0.229066] fuse: init (API version 7.34)
[    0.229271] SGI XFS with ACLs, security attributes, realtime, scrub, repair, quota, no debug enabled
[    0.229503] 9p: Installing v9fs 9p2000 file system support
[    0.229507] FS-Cache: Netfs '9p' registered for caching
[    0.229528] FS-Cache: Netfs 'ceph' registered for caching
[    0.229529] ceph: loaded (mds proto 32)
[    0.234669] NET: Registered PF_ALG protocol family
[    0.234671] xor: automatically using best checksumming function   avx
[    0.234672] Key type asymmetric registered
[    0.234673] Asymmetric key parser 'x509' registered
[    0.234695] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.235407] hv_vmbus: registering driver hv_pci
[    0.235574] hv_pci e2f37d47-366b-41f7-9d44-1ad570f445ec: PCI VMBus probing: Using version 0x10004
[    0.236158] hv_pci e2f37d47-366b-41f7-9d44-1ad570f445ec: PCI host bridge to bus 366b:00
[    0.236161] pci_bus 366b:00: root bus resource [mem 0x9ffe00000-0x9ffe02fff window]
[    0.236162] pci_bus 366b:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.236477] pci 366b:00:00.0: [1af4:1043] type 00 class 0x010000
[    0.236901] pci 366b:00:00.0: reg 0x10: [mem 0x9ffe00000-0x9ffe00fff 64bit]
[    0.237151] pci 366b:00:00.0: reg 0x18: [mem 0x9ffe01000-0x9ffe01fff 64bit]
[    0.237398] pci 366b:00:00.0: reg 0x20: [mem 0x9ffe02000-0x9ffe02fff 64bit]
[    0.238591] pci_bus 366b:00: busn_res: [bus 00-ff] end is updated to 00
[    0.238595] pci 366b:00:00.0: BAR 0: assigned [mem 0x9ffe00000-0x9ffe00fff 64bit]
[    0.238789] pci 366b:00:00.0: BAR 2: assigned [mem 0x9ffe01000-0x9ffe01fff 64bit]
[    0.238963] pci 366b:00:00.0: BAR 4: assigned [mem 0x9ffe02000-0x9ffe02fff 64bit]
[    0.239364] hv_pci f3ad5911-4947-4c71-ac71-6eaf208b3bec: PCI VMBus probing: Using version 0x10004
[    0.239727] hv_pci f3ad5911-4947-4c71-ac71-6eaf208b3bec: PCI host bridge to bus 4947:00
[    0.239730] pci_bus 4947:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.239871] pci 4947:00:00.0: [1414:008e] type 00 class 0x030200
[    0.241446] pci_bus 4947:00: busn_res: [bus 00-ff] end is updated to 00
[    0.241552] ACPI: AC: AC Adapter [AC1] (off-line)
[    0.242240] ACPI: battery: Slot [BAT1] (battery present)
[    0.243482] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.259949] Non-volatile memory driver v1.3
[    0.260167] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[    0.260941] printk: console [hvc0] enabled
[    0.263840] brd: module loaded
[    0.264609] loop: module loaded
[    0.264826] hv_vmbus: registering driver hv_storvsc
[    0.265122] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    0.265673] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    0.266085] tun: Universal TUN/TAP device driver, 1.6
[    0.266556] PPP generic driver version 2.4.2
[    0.266884] PPP BSD Compression module registered
[    0.266905] scsi host0: storvsc_host_t
[    0.267096] PPP Deflate Compression module registered
[    0.267100] PPP MPPE Compression module registered
[    0.267649] NET: Registered PF_PPPOX protocol family
[    0.267845] usbcore: registered new interface driver cdc_ether
[    0.268108] usbcore: registered new interface driver cdc_ncm
[    0.268434] usbcore: registered new interface driver r8153_ecm
[    0.268747] hv_vmbus: registering driver hv_netvsc
[    0.269014] VFIO - User Level meta-driver version: 0.3
[    0.269368] usbcore: registered new interface driver cdc_acm
[    0.269624] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.269934] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.270142] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
[    0.270398] vhci_hcd: created sysfs vhci_hcd.0
[    0.270649] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.270918] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.271136] usb usb1: Product: USB/IP Virtual Host Controller
[    0.271305] usb usb1: Manufacturer: Linux 5.15.153.1-microsoft-standard-WSL2 vhci_hcd
[    0.271945] usb usb1: SerialNumber: vhci_hcd.0
[    0.272204] hub 1-0:1.0: USB hub found
[    0.272371] hub 1-0:1.0: 8 ports detected
[    0.272642] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.272912] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[    0.273217] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.273557] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.273802] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.274033] usb usb2: Product: USB/IP Virtual Host Controller
[    0.274239] usb usb2: Manufacturer: Linux 5.15.153.1-microsoft-standard-WSL2 vhci_hcd
[    0.274478] usb usb2: SerialNumber: vhci_hcd.0
[    0.274691] hub 2-0:1.0: USB hub found
[    0.274843] hub 2-0:1.0: 8 ports detected
[    0.275135] hv_vmbus: registering driver hyperv_keyboard
[    0.275313] rtc_cmos 00:00: RTC can wake from S4
[    0.276349] rtc_cmos 00:00: registered as rtc0
[    0.276685] rtc_cmos 00:00: setting system clock to 2024-08-06T13:02:07 UTC (1722949327)
[    0.276991] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    0.277296] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    0.277654] device-mapper: raid: Loading target version 1.15.1
[    0.277866] hid: raw HID events driver (C) Jiri Kosina
[    0.278031] usbcore: registered new interface driver usbhid
[    0.278191] usbhid: USB HID core driver
[    0.278348] hv_utils: Registering HyperV Utility Driver
[    0.278782] hv_vmbus: registering driver hv_utils
[    0.279188] hv_vmbus: registering driver hv_balloon
[    0.279435] hv_vmbus: registering driver dxgkrnl
[    0.279440] hv_utils: TimeSync IC version 4.0
[    0.279895] drop_monitor: Initializing network drop monitor service
[    0.279955] hv_balloon: Using Dynamic Memory protocol version 2.0
[    0.280304] Mirror/redirect action on
[    0.280758] u32 classifier
[    0.280880]     Performance counters on
[    0.281135]     input device check on
[    0.281295]     Actions configured
[    0.281296] Free page reporting enabled
[    0.281554] hv_balloon: Cold memory discard hint enabled with order 9
[    0.282095] IPVS: Registered protocols (TCP, UDP)
[    0.282460] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    0.282804] IPVS: ipvs loaded.
[    0.282926] IPVS: [rr] scheduler registered.
[    0.283080] IPVS: [wrr] scheduler registered.
[    0.283242] IPVS: [sh] scheduler registered.
[    0.283627] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    0.283932] Initializing XFRM netlink socket
[    0.284313] NET: Registered PF_INET6 protocol family
[    0.284797] Segment Routing with IPv6
[    0.284948] In-situ OAM (IOAM) with IPv6
[    0.285343] NET: Registered PF_PACKET protocol family
[    0.285648] Bridge firewalling registered
[    0.285793] 8021q: 802.1Q VLAN Support v1.8
[    0.285923] sctp: Hash tables configured (bind 256/256)
[    0.286099] 9pnet: Installing 9P2000 support
[    0.286269] Key type dns_resolver registered
[    0.286439] Key type ceph registered
[    0.286660] libceph: loaded (mon/osd proto 15/24)
[    0.286881] NET: Registered PF_VSOCK protocol family
[    0.287044] hv_vmbus: registering driver hv_sock
[    0.287221] IPI shorthand broadcast: enabled
[    0.287380] sched_clock: Marking stable (285093822, 1778200)->(301819700, -14947678)
[    0.288039] registered taskstats version 1
[    0.288673] Loading compiled-in X.509 certificates
[    0.290720] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[    0.292841] Freeing unused kernel image (initmem) memory: 2008K
[    0.293045] Write protecting the kernel read-only data: 30720k
[    0.294358] Freeing unused kernel image (text/rodata gap) memory: 2024K
[    0.294828] Freeing unused kernel image (rodata/data gap) memory: 592K
[    0.295112] Run /init as init process
[    0.295231]   with arguments:
[    0.295341]     /init
[    0.295412]   with environment:
[    0.295525]     HOME=/
[    0.295599]     TERM=linux
[    0.295673]     WSL_ROOT_INIT=1
[    0.347961] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    0.356121] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.356502] sd 0:0:0:0: [sda] 795856 512-byte logical blocks: (407 MB/389 MiB)
[    0.357076] sd 0:0:0:0: [sda] Write Protect is on
[    0.357464] sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00
[    0.357813] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    0.359688] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.411956] scsi 0:0:0:1: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    0.412903] EXT4-fs (sda): mounted filesystem without journal. Opts: (null). Quota mode: none.
[    0.421693] sd 0:0:0:1: Attached scsi generic sg1 type 0
[    0.422148] sd 0:0:0:1: [sdb] 8388616 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.422491] sd 0:0:0:1: [sdb] 4096-byte physical blocks
[    0.422749] sd 0:0:0:1: [sdb] Write Protect is off
[    0.422960] sd 0:0:0:1: [sdb] Mode Sense: 0f 00 00 00
[    0.423249] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.425833] sd 0:0:0:1: [sdb] Attached SCSI disk
[    0.450243] Adding 4194304k swap on /dev/sdb.  Priority:-2 extents:1 across:4194304k
[    0.779349] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    0.897100] hv_pci bdd1428c-3e7c-43db-94b9-6ed90c2df657: PCI VMBus probing: Using version 0x10004
[    0.900088] hv_pci bdd1428c-3e7c-43db-94b9-6ed90c2df657: PCI host bridge to bus 3e7c:00
[    0.900671] pci_bus 3e7c:00: root bus resource [mem 0xc00000000-0xe00001fff window]
[    0.901322] pci_bus 3e7c:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.902337] pci 3e7c:00:00.0: [1af4:105a] type 00 class 0x088000
[    0.904092] pci 3e7c:00:00.0: reg 0x10: [mem 0xe00000000-0xe00000fff 64bit]
[    0.905654] pci 3e7c:00:00.0: reg 0x18: [mem 0xe00001000-0xe00001fff 64bit]
[    0.907221] pci 3e7c:00:00.0: reg 0x20: [mem 0xc00000000-0xdffffffff 64bit]
[    0.910047] pci_bus 3e7c:00: busn_res: [bus 00-ff] end is updated to 00
[    0.910598] pci 3e7c:00:00.0: BAR 4: assigned [mem 0xc00000000-0xdffffffff 64bit]
[    0.912448] pci 3e7c:00:00.0: BAR 0: assigned [mem 0xe00000000-0xe00000fff 64bit]
[    0.914627] pci 3e7c:00:00.0: BAR 2: assigned [mem 0xe00001000-0xe00001fff 64bit]
[    0.924278] virtiofs virtio1: Cache len: 0x200000000 @ 0xc00000000
[    0.970016] memmap_init_zone_device initialised 2097152 pages in 10ms
[    0.979075] FS-Cache: Duplicate cookie detected
[    0.979393] FS-Cache: O-cookie c=00000004 [p=00000002 fl=222 nc=0 na=1]
[    0.979639] FS-Cache: O-cookie d=00000000f1add74f{9P.session} n=00000000ea21cf65
[    0.980006] FS-Cache: O-key=[10] '34323934393337333839'
[    0.980361] FS-Cache: N-cookie c=00000005 [p=00000002 fl=2 nc=0 na=1]
[    0.980701] FS-Cache: N-cookie d=00000000f1add74f{9P.session} n=000000004e7b6138
[    0.981083] FS-Cache: N-key=[10] '34323934393337333839'
[    0.985341] FS-Cache: Duplicate cookie detected
[    0.985826] FS-Cache: O-cookie c=00000006 [p=00000002 fl=222 nc=0 na=1]
[    0.986255] FS-Cache: O-cookie d=00000000f1add74f{9P.session} n=000000000b4cdacc
[    0.986933] FS-Cache: O-key=[10] '34323934393337333930'
[    0.987249] FS-Cache: N-cookie c=00000007 [p=00000002 fl=2 nc=0 na=1]
[    0.987560] FS-Cache: N-cookie d=00000000f1add74f{9P.session} n=000000008f523bb5
[    0.988140] FS-Cache: N-key=[10] '34323934393337333930'
[    1.008643] scsi 0:0:0:2: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.019253] sd 0:0:0:2: Attached scsi generic sg2 type 0
[    1.020769] sd 0:0:0:2: [sdc] 2147483648 512-byte logical blocks: (1.10 TB/1.00 TiB)
[    1.022108] sd 0:0:0:2: [sdc] 4096-byte physical blocks
[    1.022780] sd 0:0:0:2: [sdc] Write Protect is off
[    1.023402] sd 0:0:0:2: [sdc] Mode Sense: 0f 00 00 00
[    1.024007] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.028503] sd 0:0:0:2: [sdc] Attached SCSI disk
[    1.241810] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2a11290c0c8, max_idle_ns: 440795344938 ns
[    1.243502] clocksource: Switched to clocksource tsc
[    1.611278] EXT4-fs (sdc): recovery complete
[    1.613212] EXT4-fs (sdc): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered. Quota mode: none.
[    1.895224] WSL (2) WARNING: hostname set to WL-DN0HG14 in /etc/wsl.conf
[    1.901879] WSL (2) WARNING: /usr/share/zoneinfo/America/Toronto not found. Is the tzdata package installed?
[    1.913169] systemd_shim[1]: /dev/shm is not a symlink, leaving as-is...
[    1.914511] systemd_shim[1]: Remounting / shared...
[    1.914806] systemd_shim[1]: Remounting /nix/store read-only...
[    1.915151] systemd_shim[1]: Running activation script...
[    1.969943] Can't ignore signal CHLD, forcing to default.
[    2.043456] misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22
[    2.048289] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    2.048800] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    2.049216] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    2.049666] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    2.052740] Can't ignore signal CHLD, forcing to default.
[    2.099172] setting up /run/booted-system...
[    2.101193] setting up /etc...
[    2.183974] setting up /bin...
[    2.188286] setting up /bin/login...
[    2.189964] setting up /sbin/init shim...
[    2.195079] systemd_shim[1]: Spawning real systemd...
[    2.457940] Failed to connect to bus: No such file or directory
[    2.711329] Failed to connect to bus: No such file or directory
[    2.964786] Failed to connect to bus: No such file or directory
[    3.217981] Failed to connect to bus: No such file or directory
[    3.471240] Failed to connect to bus: No such file or directory
[    3.724607] Failed to connect to bus: No such file or directory
[    3.978674] Failed to connect to bus: No such file or directory
[    4.232295] Failed to connect to bus: No such file or directory
[    4.486140] Failed to connect to bus: No such file or directory
[    4.739959] Failed to connect to bus: No such file or directory
[    4.993187] Failed to connect to bus: No such file or directory
[    5.246616] Failed to connect to bus: No such file or directory
[    5.502133] Failed to connect to bus: No such file or directory
[    5.757554] Failed to connect to bus: No such file or directory
[    6.012768] Failed to connect to bus: No such file or directory
[    6.267437] Failed to connect to bus: No such file or directory
[    6.522816] Failed to connect to bus: No such file or directory
[    6.778229] Failed to connect to bus: No such file or directory
[    7.033533] Failed to connect to bus: No such file or directory
[    7.288458] Failed to connect to bus: No such file or directory
[    7.543889] Failed to connect to bus: No such file or directory
[    7.798927] Failed to connect to bus: No such file or directory
[    8.054253] Failed to connect to bus: No such file or directory
[    8.308842] Failed to connect to bus: No such file or directory
[    8.563090] Failed to connect to bus: No such file or directory
[    8.817902] Failed to connect to bus: No such file or directory
[    9.073591] Failed to connect to bus: No such file or directory
[    9.328947] Failed to connect to bus: No such file or directory
[    9.583446] Failed to connect to bus: No such file or directory
[    9.838024] Failed to connect to bus: No such file or directory
[   10.092703] Failed to connect to bus: No such file or directory
[   10.348239] Failed to connect to bus: No such file or directory
[   10.603540] Failed to connect to bus: No such file or directory
[   10.859776] Failed to connect to bus: No such file or directory
[   11.116639] Failed to connect to bus: No such file or directory
[   11.371929] Failed to connect to bus: No such file or directory
[   11.627965] Failed to connect to bus: No such file or directory
[   11.883823] Failed to connect to bus: No such file or directory
[   12.138756] Failed to connect to bus: No such file or directory
[   12.139858] WSL (2) ERROR: WaitForBootProcess:3342: /sbin/init failed to start within 10000
[   12.139861] ms
[   12.147235] WSL (2): Creating login session for tristan
@WL-DN0HG14:~ ❯ systemctl --user restart auto-fix-vscode-server.service
Failed to connect to bus: No such file or directory

WSL version

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880
SuperSandro2000 commented 2 months ago

You probably need to disable cgroupsv1

https://github.com/microsoft/WSL/issues/10050#issuecomment-1552415151

starcraft66 commented 2 months ago

I can confirm that adding the following to my ~/.wslconfig on the Windows side fixed the issue:

[wsl2]
kernelCommandLine = cgroup_no_v1=all

Thanks.