Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3628

Weaviate Cluster Setup with Docker on Different Servers Failing

$
0
0

Hello everyone,
I’m trying to set up a Weaviate cluster consisting of 3 nodes, each running on a different server, using Docker. However, I’m encountering an issue where the nodes fail to join the cluster. The error message I’m seeing is:
code{“action”:“bootstrap”,“error”:“could not join a cluster from [172.18.0.2:8300]”,“level”:“warning”,“msg”:“failed to join cluster, will notify next if voter”,“servers”:[“172.18.0.2:8300”],“time”:“2024-08-08T08:02:08Z”,“voter”:true}{“action”:“bootstrap”,“candidates”:[{“Suffrage”:0,“ID”:“192.168.1.52”,“Address”:“172.18.0.2:8300”}],“level”:“info”,“msg”:“starting cluster bootstrapping”,“time”:“2024-08-08T08:02:08Z”}

Below is the docker-compose.yml file I’m using for each node:
codeversion: '3.7’services:weaviate:image: cr.weaviate.io/semitechnologies/weaviate:1.25.4environment:- AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true- ASYNC_INDEXING=true- PERSISTENCE_DATA_PATH=/var/lib/weaviate- ENABLE_MODULES=text2vec-ollama,generative-ollama- RAFT_JOIN=192.168.1.52:8300,192.168.1.23:8300,192.168.1.24:8300- CLUSTER_HOSTNAME=192.168.1.52- CLUSTER_GOSSIP_BIND_PORT=7100- CLUSTER_GOSSIP_JOIN=192.168.1.23:7100,192.168.1.24:7100ports:- 8080:8080- 50051:50051volumes:- weaviate_data1:/var/lib/weaviatenetworks:- weaviate-clusternetworks:weaviate-cluster:driver: bridgevolumes:weaviate_data1:

Each server has a unique IP address (192.168.1.52, 192.168.1.23, 192.168.1.24). Despite correctly setting the RAFT_JOIN and CLUSTER_GOSSIP_JOIN environment variables, the nodes aren’t able to join the cluster, and the error above persists.
Has anyone experienced this issue before or can provide insights on how to resolve it? Any help would be greatly appreciated!
Thank you!


Viewing all articles
Browse latest Browse all 3628

Trending Articles