Useful or not, from you.
helm write: broken pipe

Since version 2.8.0, I'm getting the following error while running helm upgrade --install release_name chart:

E0209 11:21:52.322201 93759 portforward.go:303] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:53674->127.0.0.1:53680: write tcp4 127.0.0.1:53674->127.0.0.1:53680: write: broken pipe

Anyone got a hint, what could be a possible cause for this?

Edit: 2.8.1 does not fix this. I'm on MacOS

That's a useful answer
Without any help

For what it is worth to those trying to get to the bottom of this issue...

Upgraded to 2.13.1. I can lookup version from inside the k8s cluster from another pod.

user@app-pod-9qtnz:/opt/app$ /helm/linux-amd64/helm --tiller-namespace mynamespace version --tls --tls-ca-cert /opt/app/tiller-tls-secrets/ca.cert.pem --tls-cert /opt/app/tiller-tls-secrets/helm-cert --tls-key /opt/app/tiller-tls-secrets/helm-key
Client: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}

The above assumes the local cluster config from the pod.

Cannot do it from the "outside" the cluster using a kubeconfig. Fails 100%. Top block is port-forward, bottom is cooresponding helm cli attempt to get version.

$ kubectl -nmynamespace --kubeconfig=/Users/me/kubeconfig port-forward tiller-deploy 44134:44134
Forwarding from 127.0.0.1:44134 -> 44134
Forwarding from [::1]:44134 -> 44134
Handling connection for 44134
Handling connection for 44134
Handling connection for 44134
E0325 14:48:23.291109   72782 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:44134->127.0.0.1:65378: read: connection reset by peer
Handling connection for 44134
E0325 14:48:24.742180   72782 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:44134->127.0.0.1:65379: read: connection reset by peer
Handling connection for 44134
E0325 14:48:26.876715   72782 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:44134->127.0.0.1:65380: read: connection reset by peer
Handling connection for 44134
E0325 14:48:29.782902   72782 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:44134->127.0.0.1:65381: read: connection reset by peer
Handling connection for 44134
E0325 14:48:34.851637   72782 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:44134->127.0.0.1:65383: read: connection reset by peer
Handling connection for 44134
...
$ HELM_HOST=127.0.0.1:44134 helm version --tls --tls-verify --tls-ca-cert ~/ca-cert --tls-cert ~/helm-cert --tls-key ~/helm-key
Client: &version.Version{SemVer:"v2.13.0", GitCommit:"79d07943b03aea2b76c12644b4b54733bc5958d6", GitTreeState:"clean"}
...(hangs)

/liveness on port 44135 works fine with the port-forward.

$ kubectl -napp-ns-403 --kubeconfig=/Users/me/kubeconfig port-forward tiller-deploy-8d8cb7f47-f8mqm 44135:44135
Forwarding from 127.0.0.1:44135 -> 44135
Forwarding from [::1]:44135 -> 44135
Handling connection for 44135
$ curl localhost:44135/liveness -v
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 44135 (#0)
> GET /liveness HTTP/1.1
> Host: localhost:44135
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 25 Mar 2019 19:59:52 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact

Kubernetes details:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T22:29:25Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.13-eks-g484b8", GitCommit:"484b857e3134d55ac6373fea2f51798fefa0533f", GitTreeState:"clean", BuildDate:"2019-03-08T05:32:36Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}