Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch connection failed from python backend #391

Closed
Vijaygawate opened this issue Feb 11, 2025 · 2 comments
Closed

Elasticsearch connection failed from python backend #391

Vijaygawate opened this issue Feb 11, 2025 · 2 comments

Comments

@Vijaygawate
Copy link

Hello,
I am trying to deploy python app with elasticsearch docker container, but it is failing the connections

in python code .env I am using elasticsearch url as http://elasticsearch:9200 but its not connecting

Error connecting to Elasticsearch: Elasticsearch cluster is not reachable

I have checked elasticsearch docker container and its still running

@codefromthecrypt
Copy link
Collaborator

If you are referring to chatbot-rag-app, make sure you elasticsearch ports are available from your docker host and set the URL to use localhost instead. that may be the easier way vs creating networks to do similar https://github.com/elastic/elasticsearch-labs/blob/main/example-apps/chatbot-rag-app/docker-compose.yml#L36-L37

@codefromthecrypt
Copy link
Collaborator

please comment if you have the same issue after trying latest code. good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants