# Not able to connect to weaviate instance from vectordbBench

**URL:** <https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441>\
**Category:** Support\
**Created:** [November 4, 2024, 3:16pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441 "2024-11-04T15:16:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 4, 2024, 3:16pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/1 "2024-11-04T15:16:50Z")

</div>

I am trying to run vectored bench on weaviate which is running on Kubernetes on EC2 instance. when vectordb is trying to connect to weaviate its getting the below error:

**“failed to run, reason=Weaviate did not start up in 5 seconds. Either the Weaviate URL [http://10.103.208.135:80/v1](http://10.103.208.135/v1) is wrong or Weaviate did not start up in the interval given in 'startup\_period”**

Now, when I opened weaviate logs below are the output:

**ubuntu@ip-172-30-7-158** : **~** $ kubectl logs weaviate-0 --namespace weaviate

Defaulted container “weaviate” out of: weaviate, configure-sysctl (init)

{“action”:“config\_load”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“config\_file\_path”:“/weaviate-config/conf.yaml”,“level”:“info”,“msg”:“Usage of the weaviate.conf.json file is deprecated and will be removed in the future. Please use environment variables.”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“deprecation”:{“apiType”:“Configuration”,“id”:“config-files”,“locations”:[“–config-file=""”],“mitigation”:“Configure Weaviate using environment variables.”,“msg”:“use of deprecated command line argument --config-file”,“sinceTime”:“2020-09-08T09:46:00.000Z”,“sinceVersion”:“0.22.16”,“status”:“deprecated”},“level”:“warning”,“msg”:“use of deprecated command line argument --config-file”,“time”:“2024-11-04T08:59:46Z”}

{“action”:“startup”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“default\_vectorizer\_module”:“none”,“level”:“info”,“msg”:“the default vectorizer modules is set to "none", as a result all new schema classes without an explicit vectorizer setting, will use this vectorizer”,“time”:“2024-11-04T08:59:46Z”}

{“action”:“startup”,“auto\_schema\_enabled”:true,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“auto schema enabled setting is set to "true"”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“No resource limits set, weaviate will use all available memory and CPU. To limit resources, set LIMIT\_RESOURCES=true”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“module offload-s3 is enabled”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“open cluster service”,“servers”:{“weaviate-0”:8300},“time”:“2024-11-04T08:59:46Z”}

{“address”:“10.244.0.13:8301”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“starting cloud rpc server …”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“starting raft sub-system …”,“time”:“2024-11-04T08:59:46Z”}

{“address”:“10.244.0.13:8300”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“tcp transport”,“tcpMaxPool”:3,“tcpTimeout”:10000000000,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“loading local db”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“local DB successfully loaded”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“schema manager loaded”,“n”:0,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“metadata\_only\_voters”:false,“msg”:“construct a new raft node”,“name”:“weaviate-0”,“time”:“2024-11-04T08:59:46Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“index”:10,“level”:“info”,“msg”:“raft initial configuration”,“servers”:“[[{Suffrage:Voter ID:weaviate-0 Address:10.244.0.10:8300}]]”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“last\_snapshot\_index”:0,“last\_store\_applied\_index\_on\_start”:0,“level”:“info”,“msg”:“raft node constructed”,“raft\_applied\_index”:0,“raft\_last\_index”:10,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“hasState”:true,“level”:“info”,“msg”:“raft init”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“10.244.0.13:8300”],“time”:“2024-11-04T08:59:46Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“follower”:{},“leader-address”:“”,“leader-id”:“”,“level”:“info”,“msg”:“raft entering follower state”,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“attempted to join and failed”,“remoteNode”:“10.244.0.13:8300”,“status”:8,“time”:“2024-11-04T08:59:46Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“10.244.0.13:8300”],“time”:“2024-11-04T08:59:47Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“attempted to join and failed”,“remoteNode”:“10.244.0.13:8300”,“status”:8,“time”:“2024-11-04T08:59:47Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“last-leader-addr”:“”,“last-leader-id”:“”,“level”:“warning”,“msg”:“raft heartbeat timeout reached, starting election”,“time”:“2024-11-04T08:59:47Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“raft entering candidate state”,“node”:{},“term”:7,“time”:“2024-11-04T08:59:47Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“raft pre-vote successful, starting election”,“refused”:0,“tally”:1,“term”:7,“time”:“2024-11-04T08:59:47Z”,“votesNeeded”:1}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“raft election won”,“tally”:1,“term”:7,“time”:“2024-11-04T08:59:47Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“leader”:{},“level”:“info”,“msg”:“raft entering leader state”,“time”:“2024-11-04T08:59:47Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“configured versions”,“server\_version”:“1.27.0”,“time”:“2024-11-04T08:59:48Z”,“version”:“1.27.0”}

{“action”:“grpc\_startup”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“grpc server listening at [::]:50051”,“time”:“2024-11-04T08:59:48Z”}

{“address”:“10.244.0.13:8300”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“current Leader”,“time”:“2024-11-04T08:59:48Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“starting migration from old schema”,“time”:“2024-11-04T08:59:48Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“legacy schema is empty, nothing to migrate”,“time”:“2024-11-04T08:59:48Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“migration from the old schema has been successfully completed”,“time”:“2024-11-04T08:59:48Z”}

{“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“attempting to join”,“remoteNodes”:[“10.244.0.13:8300”],“time”:“2024-11-04T08:59:48Z”}

{“action”:“raft”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“command”:0,“level”:“info”,“msg”:“raft updating configuration”,“server-addr”:“10.244.0.13:8300”,“server-id”:“weaviate-0”,“servers”:“[[{Suffrage:Voter ID:weaviate-0 Address:10.244.0.13:8300}]]”,“time”:“2024-11-04T08:59:48Z”}

{“action”:“restapi\_management”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“Serving weaviate at http://[::]:8080”,“time”:“2024-11-04T08:59:48Z”,“version”:“1.27.0”}

{“action”:“telemetry\_push”,“build\_git\_commit”:“6c571ff”,“build\_go\_version”:“go1.22.8”,“build\_image\_tag”:“”,“build\_wv\_version”:“”,“level”:“info”,“msg”:“telemetry started”,“payload”:“\u0026{MachineID:c02cd97c-78aa-4ad7-bd89-9f3ec42b0524 Type:INIT Version:1.27.0 NumObjects:0 OS:linux Arch:amd64 UsedModules:}”,“time”:“2024-11-04T08:59:48Z”}

---

<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:** [November 4, 2024, 4:12pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/2 "2024-11-04T16:12:37Z")

</div>

Hi!

Are you using our oficial helm chart?

> **[GitHub - weaviate/weaviate-helm: Helm charts to deploy Weaviate to k8s](https://github.com/weaviate/weaviate-helm)**
>
> Helm charts to deploy Weaviate to k8s

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 4, 2024, 4:44pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/3 "2024-11-04T16:44:11Z")

</div>

yes , I was using your official helm chart. using : helm repo add weaviate [Weaviate Helm Charts | Weaviate Helm chart repo](https://weaviate.github.io/weaviate-helm)

---

<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:** [November 4, 2024, 5:39pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/4 "2024-11-04T17:39:07Z")

</div>

Ok!

What is the software you want to connect it with Weaviate?

Were you able to connect using the python client for example?

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 4, 2024, 7:22pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/5 "2024-11-04T19:22:27Z")

</div>

I am trying to run vectorDBbench on weaviate for the performance run. ([GitHub - zilliztech/VectorDBBench: A Benchmark Tool for VectorDB](https://github.com/zilliztech/VectorDBBench)).

Were you able to connect using the python client for example? \>\> I haven’t done this.

---

<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:** [November 4, 2024, 9:30pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/6 "2024-11-04T21:30:17Z")

</div>

Oh, I see.

That code/benchmark is using our old client that doesn’t leverage the recent improvements over GRPC. It also targets our cloud, that should be instantiated first and with the proper resources allocated.

You should be able to connect to your cluster like that:

```python
import weaviate
client = weaviate.Client(
    url="http://localhost:8080",
    auth_client_secret=weaviate.auth.AuthApiKey("YOUR API KEY HERE"),
)

```

that from the same pod running that code.

Note that your error log suggests that you may be passing `http://10.103.208.135:80/v1` as the url instead of `http://10.103.208.135:80`

Let me know if this helps.

---

<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:** [November 4, 2024, 9:31pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/7 "2024-11-04T21:31:01Z")

</div>

And by the way, if you want to learn about our take on benchmarking Weaviate, there are some nice contents here:

> **[Benchmarks | Weaviate](https://weaviate.io/developers/weaviate/benchmarks)**
>
> You can find the following vector database performance benchmarks:

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 5, 2024, 5:28am UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/8 "2024-11-05T05:28:47Z")

</div>

Thanks @DudaNogueira for replying.so , I have three questions here based on ur reply:

1. whether the vectiordbBench benchmark code is compatible with latest weaviate code base?

2. since u have mentioned " It also targets our cloud" , does it mean it cannot connect to my Kubernetes cluster locally?

3. will u be able to tell me which weaviate version (lower version) is compatible with the vectordbBench code?

I will get more clarity on how to move forward, based on these answers.

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 6, 2024, 5:30am UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/9 "2024-11-06T05:30:12Z")

</div>

Hi @DudaNogueira, I tried running the solution u proposed from my local machine using python code.

import weaviate  
client = weaviate.Client(  
url=“[http://localhost:8080](http://localhost:8080)”,  
auth\_client\_secret=weaviate.auth.AuthApiKey(“YOUR API KEY HERE”),  
)

Its showing the error:  
weaviate.exceptions.WeaviateStartUpError: Weaviate did not start up in 5 seconds. Either the Weaviate URL [http://localhost:50051](http://localhost:50051) is wrong or Weaviate did not start up in the interval given in ‘startup\_period’.

So , giving u more info on my setup on which weaviate is running:

I followed: [Create a Kubernetes cluster | Weaviate](https://weaviate.io/developers/academy/deployment/k8s/kubernetes_basics)

so , I installed Minikube and kubectl and dowloaded hem chart. so , in the doc it told me to use Minikube tunnel to expose external ip. so after that when I run the python client its giving the above error.

---

<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:** [November 6, 2024, 1:56pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/10 "2024-11-06T13:56:03Z")

</div>

Oh I see. You will need to forward the http service port from that pod to 8080.

This is not covered on that docs.

Do you know how to forward those?

Are you also using minikube?

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 6, 2024, 2:33pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/11 "2024-11-06T14:33:09Z")

</div>

yes @DudaNogueira , I am using minikuve . I have followed the exact steps mentioned in: [Create a Kubernetes cluster | Weaviate](https://weaviate.io/developers/academy/deployment/k8s/kubernetes_basics). I am facing issue forwarding request inside Minikube into weaviate cluster

---

<div class="post-metadata">

**Author:** ![pavan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pavan/32/2704_2.png) [@pavan](https://forum.weaviate.io/u/pavan)\
**Post date:** [November 7, 2024, 8:58am UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/12 "2024-11-07T08:58:50Z")

</div>

I was able to send requests on http port exposed via Minikube tunnel s external IP. whereas for the grpc port I am not able to get it through to the weaviate running in minikube. I tried port forwarding but that is also not working.

---

<div class="post-metadata">

**Author:** ![00.lope.naughts](https://avatars.discourse-cdn.com/v4/letter/0/df705f/32.png) [@00.lope.naughts](https://forum.weaviate.io/u/00.lope.naughts)\
**Post date:** [November 20, 2024, 6:49pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/13 "2024-11-20T18:49:37Z")

</div>

@pavan @DudaNogueira I also tried minikube, and I followed this blog ([Achieve Zero-Downtime Upgrades with Weaviate’s Multi-Node Setup | Weaviate](https://weaviate.io/blog/zero-downtime-upgrades)). I am unsure if this is already a bit dated (since we have v4 client). I successfully reached step “minikube service weaviate --namespace weaviate” to expose to “outside world”, and it launched [http://127.0.0.1](http://127.0.0.1):/v1and there was no apparent error anywhere. But if I tried to connect using client v4:

client = weaviate.connect\_to\_local(‘localhost’, …)

I got errors, and this may be pertinent:

AioRpcError: \<AioRpcError of RPC that terminated with:  
status = StatusCode.UNAVAILABLE  
details = “failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:50051: Failed to connect to remote host: Connection refused”  
debug\_error\_string = “UNKNOWN:Error received from peer {grpc\_message:“failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:50051: Failed to connect to remote host: Connection refused”, grpc\_status:14, created\_time:“2024-11-20T13:31:57.896269-05:00”}”

> 

it seems it says there’s no grpc available. I thought it was mentioned this is used in the client and not REST. So I suspect the blog is missing another step where grpc should also be exposed?

---

<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:** [November 21, 2024, 2:26pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/14 "2024-11-21T14:26:06Z")

</div>

Hi!

Here is how I do to connect to a minikube cluster with 3 nodes:

```bash
>> minikube start --nodes 3

>> kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane 4m17s v1.31.0
minikube-m02 Ready <none> 4m7s v1.31.0
minikube-m03 Ready <none> 3m59s v1.31.0

>> helm repo add weaviate https://weaviate.github.io/weaviate-helm

>> helm show values weaviate/weaviate > values.yaml

```

edit the values.yaml and enable the openai and set the replicas to 3

create the namespace:

```bash
>> kubectl create namespace weaviate

```

deploy the helm chart:

```bash
>> helm upgrade --install \
  "weaviate" \
  weaviate/weaviate \
  --namespace "weaviate" \
  --values ./values.yaml

```

watch your cluster starting, and wait all pods to be ready

```auto
>> kubectl -n weaviate get pods -w

```

those are the services we have:

```auto
>> kubectl -n weaviate get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
weaviate LoadBalancer 10.107.66.168 <pending> 80:32443/TCP 106s
weaviate-grpc LoadBalancer 10.97.59.100 <pending> 50051:30758/TCP 106s
weaviate-headless ClusterIP None <none> 80/TCP 106s

```

we need to forward both http and grpc ports  
note that the service for http is on port 80 and grpc 50051

```auto
kubectl port-forward service/weaviate 8080:80 -n weaviate
kubectl port-forward service/weaviate-grpc 50051:50051 -n weaviate

```

In order to test the GRPC endpoint, you can use grpcurl. Here is how to test without any auth or ssl

```auto
>> wget https://raw.githubusercontent.com/grpc/grpc/master/src/proto/grpc/health/v1/health.proto
>> grpcurl -plaintext -d '{"service": "Weaviate"}' -proto health.proto localhost:50051 grpc.health.v1.Health/Check
{
  "status": "SERVING"
}

```

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![00.lope.naughts](https://avatars.discourse-cdn.com/v4/letter/0/df705f/32.png) [@00.lope.naughts](https://forum.weaviate.io/u/00.lope.naughts)\
**Post date:** [November 21, 2024, 4:26pm UTC](https://forum.weaviate.io/t/not-able-to-connect-to-weaviate-instance-from-vectordbbench/7441/15 "2024-11-21T16:26:45Z")

</div>

This works! thanks a lot.
