skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

skaffold dev does not log port-forward errors

Open nathanperkins opened this issue 7 months ago • 12 comments

When using skaffold dev with a profile that has portForwarding, the port-forward can encounter errors that don't show in the logs.

This is problematic when the file watch functionality of skaffold dev rolls out changes to a deployment, which changes the pods and causes the next request to fail.

With skaffold dev, the next request will fail with no logs shown in skaffold or in the server.

When the port-forward is established manually via kubectl, you see these errors:

E0505 16:21:52.279993 1912197 portforward.go:413] "Unhandled Error" err="an error occurred forwarding 50051 -> 50051: error forwarding port 50051 to pod <redacted>, uid : network namespace for sandbox \"<redacted>\" is closed"
error: lost connection to pod

Ideally, we would see port-forward errors in the skaffold dev logs, so that it is obvious the failure coming from the port-forward, rather than from an issue with your application.

nathanperkins avatar May 05 '25 23:05 nathanperkins

Mark down

DUB0929 avatar May 12 '25 19:05 DUB0929

use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929

Use markdown to format your comment

DUB0929 avatar May 12 '25 19:05 DUB0929