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

{'error': [{'message': 'leader not found'}]} when using LangChain, and Singularity instead of docker

$
0
0

Description

When I was trying to populate the database with “db = WeaviateVectorStore.from_documents(docs, hf_emb, client=weaviate_client)”, I received “UnexpectedStatusCodeError: Collection may not exist.! Unexpected status code: 500, with response body: {‘error’: [{‘message’: ‘failed to execute query: leader not found’}]}.”.

Server Setup Information

I set up the weaviate instance with Singularity (since docker is not available in my case). I first pulled a built image, and then run the “singularity exec” command as follows:
singularity exec
–bind ~/weaviate_data:/var/lib/weaviate
–env “QUERY_DEFAULTS_LIMIT=25”
–env “AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true”
–env “PERSISTENCE_DATA_PATH=/var/lib/weaviate”
–env “ENABLE_API_BASED_MODULES=true”
–env “ENABLE_MODULES=text2vec-ollama,generative-ollama”
–env “CLUSTER_HOSTNAME=node1”
~/singularity/weaviate_1.27.6.sif
weaviate --host 0.0.0.0 --port 8095 --scheme http
.

  • Weaviate Server Version: 1.27.6
  • Deployment Method: Singularity
  • Multi Node? Number of Running Nodes: 1
  • Client Language and Version: Python v4

Viewing all articles
Browse latest Browse all 3625

Trending Articles