# Connect weaviate instance installed on EKS

**URL:** <https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768>\
**Category:** Support\
**Tags:** python\
**Created:** [March 19, 2024, 9:17pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768 "2024-03-19T21:17:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmliu213](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/zmliu213/32/3427_2.png) [@zmliu213](https://forum.weaviate.io/u/zmliu213)\
**Post date:** [March 19, 2024, 9:17pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/1 "2024-03-19T21:17:12Z")

</div>

### Description

We deployed weavaite instance through helm chart [weaviate-helm/weaviate/values.yaml at 853a9c212679931fc750e2550e570fe4ce0e92f9 · weaviate/weaviate-helm · GitHub](https://github.com/weaviate/weaviate-helm/blob/853a9c212679931fc750e2550e570fe4ce0e92f9/weaviate/values.yaml#L124). We make sure grpc is enabled in the yaml file. While we could connect client , ingest data, and search data through python v3 sdk, we could not connect the client with python v4 sdk. It keeps giving us ConnectTimeout: timed out error.

The host ([weaviate.xxx.com](http://weaviate.xxx.com)) is from kubernetes ingress, which is redirecting it to the apps in kubernetes.

Python v3:  
from weaviate import Client  
client = Client(“[https://host](https://host)”)  
I could check the schema, add data, and use hybrid search.

Python v4:  
client = weaviate.connect\_to\_custom(  
http\_host=“host”,  
http\_port=8080,  
http\_secure=False,  
grpc\_host=“host”,  
grpc\_port=50051,  
grpc\_secure=False,  
additional\_config=weaviate.config.AdditionalConfig(timeout=(5, 15))  
)

ConnectTimeout: timed out

I also tried to use connect\_to\_local, but got the same connect timeout error.

client = weaviate.connect\_to\_local(  
host=“host”,  
port=8080,  
grpc\_port=50051,  
additional\_config=weaviate.config.AdditionalConfig(timeout=(5, 15))  
)  
Same error: ConnectTimeout: timed out  
Did we miss sth here?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [March 20, 2024, 12:17am UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/2 "2024-03-20T00:17:10Z")

</div>

Hi @zmliu213 !

Can you try adding, to `connect_to_custom`:

`skip_init_checks=True`

If this works, there is probably a high latency between client and the server.

Another way to troubleshoot it this:

```auto
# lets test our grpc connection
❯ wget https://raw.githubusercontent.com/grpc/grpc/master/src/proto/grpc/health/v1/health.proto
❯ grpcurl --plaintext -d '{"service": "Weaviate"}' -proto health.proto grpc.weaviate.mydomain.com:50051 grpc.health.v1.Health/Check
{
  "status": "SERVING"
}

```

**Note** : This command considers that there is not APIKEY required. If you require a Bearer token, you need to adjust this grpcurl call accordingly

Let me know if this helps

---

<div class="post-metadata">

**Author:** ![zmliu213](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/zmliu213/32/3427_2.png) [@zmliu213](https://forum.weaviate.io/u/zmliu213)\
**Post date:** [March 20, 2024, 5:00am UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/3 "2024-03-20T05:00:16Z")

</div>

> [@DudaNogueira](#):
>
> `grpcurl -d '{"service": "Weaviate"}' -proto health.proto grpc.weaviate.mydomain.com:50051 grpc.health.v1.Health/Check`

Thank you for the response. (1) After adding skip\_init\_checks=True, I still get connection timeout error. (2) Failed to dial target host “[grpc.weaviate.mydomain.com:50051](http://grpc.weaviate.mydomain.com:50051)”: dial tcp: lookup [grpc.weaviate.mydomain.com](http://grpc.weaviate.mydomain.com): no such host. So the grpc connection is not successful?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [March 20, 2024, 5:16pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/4 "2024-03-20T17:16:01Z")

</div>

Not really. This message will usually surface if the client couldn’t connect at that host at all.

Can you make sure that url is publicly reachable?

---

<div class="post-metadata">

**Author:** ![suryansh](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/suryansh/32/674_2.png) [@suryansh](https://forum.weaviate.io/u/suryansh)\
**Post date:** [April 29, 2024, 10:28pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/5 "2024-04-29T22:28:38Z")

</div>

I am also getting a similar error. Couldnt connect using python v4 library. Works fine with v3 library.

I used pre-configured AWS cloudformation and followed steps from this link: [AWS Marketplace | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/installation/aws-marketplace)

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 30, 2024, 1:00pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/6 "2024-04-30T13:00:08Z")

</div>

hi @suryansh ! What is the version installed?

I believe those steps will install a version that doesn’t have GRPC.

The new [python v4 client requires Weaviate 1.23.7+](https://weaviate.io/developers/weaviate/client-libraries/python#weaviate-server-version).

So for this deployment, in order to use python v4, you will not only have to make sure are running this version (1.23.7 or higher) and also to expose the GRPC port accordingly.

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![Matthias\_Durivet](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/matthias_durivet/32/1906_2.png) [@Matthias\_Durivet](https://forum.weaviate.io/u/Matthias_Durivet)\
**Post date:** [July 9, 2024, 1:15pm UTC](https://forum.weaviate.io/t/connect-weaviate-instance-installed-on-eks/1768/7 "2024-07-09T13:15:40Z")

</div>

Running into a similar issue. I was able to skip the GRPC error while connecting by adding `skip_init_checks=True`. But then during ingestion I get a GRPC timeout anyway. The ideal solution is to properly expose the port on AWS.

From what I can see GRPC is not configured for the AWS marketplace deployment option. I don’t see any option related to GRPC in the CloudFormation Stack parameters either. Only port 80 is exposed by the load balancers.

The first post mentions `We make sure grpc is enabled in the yaml file.` but I’m not sure what that is about. I didn’t interact with any `yaml` file at all.

`weaviate-client==4.6.5`  
`cr.weaviate.io/semitechnologies/weaviate:1.24.8`
