Skip to content

skaffold dev does not log port-forward errors #9812

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

Open
nathanperkins opened this issue May 5, 2025 · 12 comments
Open

skaffold dev does not log port-forward errors #9812

nathanperkins opened this issue May 5, 2025 · 12 comments

Comments

@nathanperkins
Copy link

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.

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Mark down

@DUB0929
Copy link

DUB0929 commented May 12, 2025

use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

9 similar comments
@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

@DUB0929
Copy link

DUB0929 commented May 12, 2025

Use markdown to format your comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants