GoogleContainerTools / GoogleContainerTools/skaffold

skaffold dev does not log port-forward errors

Open
#9,812 12 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

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 , uid : network namespace for sandbox \"\" 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.