Description
I’m trying to initialize client connection to local instance of weavite server from one docker container to another and experiencing next error:
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 endpoint):
{
"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:
const client = await weaviate.connectToLocal({
host: "127.0.0.1",
port: 8086,
grpcPort: 50051,
});
Docker config for weaviate service in docker compose file:
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?