siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.75k stars 540 forks source link

Talosctl dashboard ProcCmdline panic #7437

Closed sergelogvinov closed 1 year ago

sergelogvinov commented 1 year ago

Bug Report

MACOS client got:

panic: open /proc/cmdline: no such file or directory

Description

Logs

# talosctl dashboard
panic: open /proc/cmdline: no such file or directory

goroutine 1 [running]:
github.com/siderolabs/go-procfs/procfs.ProcCmdline.func1()
        /.cache/mod/github.com/siderolabs/go-procfs@v0.1.1/procfs/cmdline.go:129 +0x78
sync.(*Once).doSlow(0x140009c69a0?, 0xe0?)
        /toolchain/go/src/sync/once.go:74 +0x104
sync.(*Once).Do(...)
        /toolchain/go/src/sync/once.go:65
github.com/siderolabs/go-procfs/procfs.ProcCmdline()
        /.cache/mod/github.com/siderolabs/go-procfs@v0.1.1/procfs/cmdline.go:126 +0x3c
github.com/siderolabs/talos/internal/pkg/dashboard.(*ConfigURLGrid).readTemplateFromKernelArgs(0x14000882340?)
        /src/internal/pkg/dashboard/configurl.go:123 +0x1c
github.com/siderolabs/talos/internal/pkg/dashboard.NewConfigURLGrid({0x10758e368, 0x14000e0a1b0}, 0x14000001e00)

Environment

smira commented 1 year ago

This should be fixed in 1.4.6.