-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
version: v0.4.5-rc.1
I left Rancher running at a breakpoint for ~1 hour, and when I unpaused it it panicked with the following trace:
panic: close of closed channel
goroutine 19740 [running]:
k8s.io/client-go/tools/portforward.(*PortForwarder).forward(0xc0011a98c0)
/home/jfh/go/pkg/mod/k8s.io/client-go@v0.32.2/tools/portforward/portforward.go:238 +0x2ca
k8s.io/client-go/tools/portforward.(*PortForwarder).ForwardPorts(0xc0011a98c0)
/home/jfh/go/pkg/mod/k8s.io/client-go@v0.32.2/tools/portforward/portforward.go:210 +0x498
github.com/rancher/remotedialer/forward.(*PortForward).runForwarder(0xc000555f10, {0x17c7c2b8, 0xc0057800f0}, 0xc009564380, {0xc00095c6e0, 0x1, 0x1})
/home/jfh/go/pkg/mod/github.com/rancher/remotedialer@v0.4.5-rc.1/forward/forward.go:149 +0x933
github.com/rancher/remotedialer/forward.(*PortForward).Start.func1()
/home/jfh/go/pkg/mod/github.com/rancher/remotedialer@v0.4.5-rc.1/forward/forward.go:89 +0x149
created by github.com/rancher/remotedialer/forward.(*PortForward).Start in goroutine 522
/home/jfh/go/pkg/mod/github.com/rancher/remotedialer@v0.4.5-rc.1/forward/forward.go:82 +0x238
Debugger finished with the exit code 0
I see 2025/06/13 16:48:33 [ERROR] Lost connection to pod: lost connection to pod, retrying in 1 secs. present in the log, but it looks like runForwarder closes the channel (https://github.com/kubernetes/client-go/blob/master/tools/portforward/portforward.go#L238) so I'm not sure that this method can be used.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels