Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Playground Nyan Cat port-forward Timeout occurred #1558

Closed
linghan-hub opened this issue Feb 22, 2023 · 1 comment
Closed

[BUG] Playground Nyan Cat port-forward Timeout occurred #1558

linghan-hub opened this issue Feb 22, 2023 · 1 comment
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@linghan-hub
Copy link
Collaborator

kubectl --namespace default port-forward service/nyancat 8087:8087
Forwarding from 127.0.0.1:8087 -> 8087
Forwarding from [::1]:8087 -> 8087
Handling connection for 8087
Handling connection for 8087
E0222 15:07:10.054360   40575 portforward.go:392] error copying from local connection to remote stream: read tcp4 127.0.0.1:8087->127.0.0.1:60104: read: connection reset by peer
E0222 15:07:10.063479   40575 portforward.go:379] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:8087->127.0.0.1:60104: write tcp4 127.0.0.1:8087->127.0.0.1:60104: write: broken pipe
Handling connection for 8087
Handling connection for 8087
Handling connection for 8087
Handling connection for 8087
Handling connection for 8087
E0222 15:07:40.829909   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:07:42.823012   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:07:44.823687   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:07:46.822236   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:07:49.356463   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:10.837419   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:12.826435   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:14.829277   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:16.828808   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:19.361932   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:40.838969   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:42.824056   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:44.823666   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:46.820163   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:08:49.347813   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:10.819980   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:12.807471   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:14.808013   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:16.808893   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:19.344305   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:40.827699   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:42.806833   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:44.807135   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:46.811195   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:09:49.348430   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:10.838391   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:12.810066   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:14.809379   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:16.814347   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:19.350345   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:40.841468   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
Handling connection for 8087
E0222 15:10:42.813037   40575 portforward.go:345] error creating error stream for port 8087 -> 8087: Timeout occurred
@linghan-hub linghan-hub added the kind/bug Something isn't working label Feb 22, 2023
@ahjing99 ahjing99 added this to the Release 0.4.0 milestone Mar 7, 2023
@heng4fun heng4fun modified the milestones: Release 0.4.0, Release 0.5.0 Mar 9, 2023
@heng4fun
Copy link
Contributor

This is an issue caused by an official bug in kubectl: kubernetes/kubectl#1368
kubectl port-forward will drop the connection for some type of files, such as video/audio.
Once you get the broken pipe, kubectl's port forwarding seems to get into some weird random timeout state until you restart port forwarding.

Now the static files that caused kubectl port-forward to enter a broken pipe state has been removed, and there are no more timeout issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants