# Helath Check failure

**URL:** <https://community.temporal.io/t/helath-check-failure/1561>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [February 22, 2021, 2:56am UTC](https://community.temporal.io/t/helath-check-failure/1561 "2021-02-22T02:56:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohits](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mohits](https://community.temporal.io/u/mohits)\
**Post date:** [February 22, 2021, 2:56am UTC](https://community.temporal.io/t/helath-check-failure/1561/1 "2021-02-22T02:56:11Z")

</div>

I am trying to register the workflow and the activity using the worker code

```auto
	c, err := client.NewClient(opts)
	if err != nil {
		log.Fatalln("unable to create Temporal client", err)
	}

```

i am getting below error for health check even though the connection is getting established  
2021/02/22 02:50:21 unable to create Temporal client health check error: context deadline exceeded

i do not find any errors in temporal server related to the connection failure.

Initially i have deployed using docker-compose and everything worked fine.I am able to register the workflows and the activities and i could do all the fun work.  
But when i deployed using Helm i am getting the health check error.

Can someone help ?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [February 22, 2021, 7:27pm UTC](https://community.temporal.io/t/helath-check-failure/1561/2 "2021-02-22T19:27:13Z")

</div>

What are the options passed to the `NewClient` call?

---

<div class="post-metadata">

**Author:** ![mohits](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mohits](https://community.temporal.io/u/mohits)\
**Post date:** [February 22, 2021, 8:12pm UTC](https://community.temporal.io/t/helath-check-failure/1561/3 "2021-02-22T20:12:51Z")

</div>

I am using opts:=client.Options{HostPort:“serverhost:port”,Namespace:“default”}

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [February 22, 2021, 8:13pm UTC](https://community.temporal.io/t/helath-check-failure/1561/4 "2021-02-22T20:13:48Z")

</div>

Are you able to connect to that “serverhost:port” using tctl from the same host?

---

<div class="post-metadata">

**Author:** ![mohits](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mohits](https://community.temporal.io/u/mohits)\
**Post date:** [February 22, 2021, 8:32pm UTC](https://community.temporal.io/t/helath-check-failure/1561/5 "2021-02-22T20:32:58Z")

</div>

I haven’t tried tctl, i checked the connection using telnet and it worked.  
Do you want me to try with tctl ?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [February 22, 2021, 9:58pm UTC](https://community.temporal.io/t/helath-check-failure/1561/6 "2021-02-22T21:58:55Z")

</div>

I think tctl performs a much deeper check than telnet.

---

<div class="post-metadata">

**Author:** ![mohits](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mohits](https://community.temporal.io/u/mohits)\
**Post date:** [February 22, 2021, 10:37pm UTC](https://community.temporal.io/t/helath-check-failure/1561/7 "2021-02-22T22:37:15Z")

</div>

My bad,Actually i am trying to connect to wrong pod.Thanks for helping though.
