# Weavite client connectToLocal failure

**URL:** <https://forum.weaviate.io/t/weavite-client-connecttolocal-failure/7539>\
**Category:** Support\
**Created:** [November 11, 2024, 3:03pm UTC](https://forum.weaviate.io/t/weavite-client-connecttolocal-failure/7539 "2024-11-11T15:03:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleksandr\_Yakovliev](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/oleksandr_yakovliev/32/2848_2.png) [@Oleksandr\_Yakovliev](https://forum.weaviate.io/u/Oleksandr_Yakovliev)\
**Post date:** [November 11, 2024, 3:03pm UTC](https://forum.weaviate.io/t/weavite-client-connecttolocal-failure/7539/1 "2024-11-11T15:03:39Z")

</div>

### Description

I’m trying to initialize client connection to local instance of weavite server from one docker container to another and experiencing next error:

```auto
WeaviateStartUpError: Weaviate startup failed with message: Weaviate failed to startup with message: fetch failed

```

meanwhile connection to this local instance is available from Postman (this is the response **from [http://localhost:8086/v1/meta](http://localhost:8086/v1/meta)** endpoint):

```auto
{
    "grpcMaxMessageSize": 10485760,
    "hostname": "http://[::]:8080",
    "modules": {
        "text2vec-openai": {
            "documentationHref": "https://platform.openai.com/docs/guides/embeddings/what-are-embeddings",
            "name": "OpenAI Module"
        }
    },
    "version": "1.27.1"
}

```

running code example:

```auto
const client = await weaviate.connectToLocal({
      host: "127.0.0.1",
      port: 8086,
      grpcPort: 50051, 
});

```

Docker config for weaviate service in docker compose file:

```auto
weaviate:
    command: --host 0.0.0.0 --port '8080' --scheme http
    container_name: dowow-weaviate
    image: cr.weaviate.io/semitechnologies/weaviate:1.27.1
    restart: always
    volumes:
      - weaviate_data:/var/lib/weaviate
    networks:
      dowow:
        ipv4_address: 172.16.41.55
    ports:
    - 8086:8080
    - 50051:50051
    - 2112:2112
    environment:
      QUERY_DEFAULTS_LIMIT: 25
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
      PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
      DEFAULT_VECTORIZER_MODULE: 'text2vec-openai'
      ENABLE_MODULES: 'text2vec-openai'
      CLUSTER_HOSTNAME: 'node1'

volumes:
  weaviate_data:
    driver: local

```

### Server Setup Information

- Weaviate Server Version: **1.27.1**
- Deployment Method: **docker**
- Multi Node? Number of Running Nodes:
- Client Language and Version: **TS client v3 (3.2.2)**
- Multitenancy?:

How this can be fixed?

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Yakovliev](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/oleksandr_yakovliev/32/2848_2.png) [@Oleksandr\_Yakovliev](https://forum.weaviate.io/u/Oleksandr_Yakovliev)\
**Post date:** [November 11, 2024, 3:43pm UTC](https://forum.weaviate.io/t/weavite-client-connecttolocal-failure/7539/2 "2024-11-11T15:43:04Z")

</div>

You may close the topic. I was missing the correct config for host and port between containers

---

<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 11, 2024, 3:58pm UTC](https://forum.weaviate.io/t/weavite-client-connecttolocal-failure/7539/3 "2024-11-11T15:58:18Z")

</div>

hi @Oleksandr_Yakovliev !!

Welcome to our community 🤗

Thanks for sharing!
