Memberlist failed to get final advertise address: No private IP address found, and explicit IP not provided

This error means that VPC is not configured properly, the IP addresses that are assigned to your pods should be in valid private ip address range

Hey!
I get the same Error just when I first try to use weaviate on my mac on VSC in a jupyter notebook.

just running the starter code:
import weaviate
import os

client = weaviate.connect_to_embedded(
version=“1.23.7”, # e.g. “1.23.3”
headers={
“X-OpenAI-Api-Key”: os.getenv(“OPENAI_API_KEY”)
}
)

#DO SOMETHING

client.close()

and get this error message:

action":“startup”,“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-02-05T18:23:42+01:00”}
{“action”:“startup”,“auto_schema_enabled”:true,“level”:“info”,“msg”:“auto schema enabled setting is set to "true"”,“time”:“2024-02-05T18:23:42+01:00”}
{“action”:“memberlist_init”,“bind_port”:63512,“error”:“Failed to get final advertise address: No private IP address found, and explicit IP not provided”,“hostname”:“Embedded_at_8079”,“level”:“error”,“msg”:“memberlist not created”,“time”:“2024-02-05T18:23:42+01:00”}
{“action”:“startup”,“error”:“create member list: Failed to get final advertise address: No private IP address found, and explicit IP not provided”,“level”:“error”,“msg”:“could not init cluster state”,“time”:“2024-02-05T18:23:42+01:00”}

I read your solution, but since I am not on AWS or anything, but on my local Mac. weaviate-client-4.4.2

Is there an easy solution for that? The same code runs perfectly on a colab notebook, but I would need it to run locally.
Thanks

Hi @hebkon

I was not able to reproduce this on a mac m2 pro.

As embedded is experimental, can you run it locally using docker? I can help if that is an option.

About this issue, this may be some misconfiguration before Weaviate, as it seems it is not being able to attach to an IP.

Let me know if that helps.

Hi Duda!
Thanks for your reply. I’ll try once more with a new pip environment instead of conda, but if that is not working I’ll work with Docker :slight_smile:

Thank you

Hi Guys,

Any solution on this problem I am currently facing the same issue after upgrading loki version 2.9.2