# Upstream connect error or disconnect/reset before headers. reset reason: connection termination

**URL:** <https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412>\
**Category:** General\
**Created:** [January 27, 2020, 9:49pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412 "2020-01-27T21:49:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [January 27, 2020, 9:49pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/1 "2020-01-27T21:49:14Z")

</div>

Hi,

I have Kong-Ingress controller on my managed kubernetes cluster and everything is working fine. I have istio inject enable = true for side car stuff life tracing

And when i activate the plugin zipkin pointing to the istio-system zipkin server i get this error:

**upstream connect error or disconnect/reset before headers. reset reason: connection termination**

Plugin:  
apiVersion: [configuration.konghq.com/v1](http://configuration.konghq.com/v1)  
kind: KongPlugin  
metadata:  
name: zipkin  
labels:  
global: “true”  
config:  
http\_endpoint: [http://zipkin.istio-system:9411/api/v2/spans](http://zipkin.istio-system:9411/api/v2/spans)  
sample\_ratio: 1.0  
plugin: zipkin

Any idea?

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 28, 2020, 5:34pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/2 "2020-01-28T17:34:31Z")

</div>

Since this traffic goes via Istio’s envoy, make sure that the `host` header is correctly set and the side-car envoy can resolve where to send the request to inside the mesh.

---

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [January 28, 2020, 10:39pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/3 "2020-01-28T22:39:30Z")

</div>

> [@hbagdi](#):
>
> host

Sorry, i can not understand your comment.

Just activating the plugin the system doesn´t work. The plugin zipking is pointing to the zipkin istio namespace:port.  
The host header is from who?

Do you have any sample?

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 29, 2020, 3:56pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/4 "2020-01-29T15:56:07Z")

</div>

I don’t have a sample or an Istio cluster with me right now to debug this.

You might want to try to instead use zipkin.istio-system.svc as the service name in http endpoint.

---

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [February 11, 2020, 4:06pm UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/5 "2020-02-11T16:06:37Z")

</div>

still doesn´t work with http endpoint.

---

<div class="post-metadata">

**Author:** ![Luis\_Silva](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/luis_silva/32/1277_2.png) [@Luis\_Silva](https://discuss.konghq.com/u/Luis_Silva)\
**Post date:** [February 15, 2020, 9:04am UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/6 "2020-02-15T09:04:18Z")

</div>

Try it with:  
apiVersion: [configuration.konghq.com/v1](http://configuration.konghq.com/v1)  
kind: KongPlugin  
metadata:  
name: zipkin  
labels:  
global: “true”  
config:  
http\_endpoint: [http://zipkin.istio-system:9411/api/v2/spans](http://zipkin.istio-system:9411/api/v2/spans)  
sample\_ratio: 1  
enabled: true  
plugin: zipkin

I belive that could be istio configuration that is not enable for collector zipkin port

---

<div class="post-metadata">

**Author:** ![Luis\_Silva](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/luis_silva/32/1277_2.png) [@Luis\_Silva](https://discuss.konghq.com/u/Luis_Silva)\
**Post date:** [February 16, 2020, 10:16am UTC](https://discuss.konghq.com/t/upstream-connect-error-or-disconnect-reset-before-headers-reset-reason-connection-termination/5412/7 "2020-02-16T10:16:31Z")

</div>

At this moment it´s working without kong plugin, only with istio side car injector on kong-ingress-controller
