AstraBert / qdurllm

Search your favorite websites and chat with them, on your desktop🌐
https://astrabert.github.io/qdurllm/
MIT License
13 stars 1 forks source link

Connection issue between Docker containers using Qdrant client #1

Open amirhosein-vedadi opened 2 weeks ago

amirhosein-vedadi commented 2 weeks ago

Description

I'm experiencing a connection issue between my application container and the Qdrant service container in a Docker Compose setup. The application is unable to connect to the Qdrant service, resulting in a "Name or service not known" error.

Error Msg

Traceback (most recent call last): ... httpcore.ConnectError: [Errno -2] Name or service not known

The above exception was the direct cause of the following exception:

Traceback (most recent call last): ... qdrant_client.http.exceptions.ResponseHandlingException: [Errno -2] Name or service not known

Steps to Reproduce

  1. Run docker-compose up.
  2. The local-search-application container fails to connect to the Qdrant service.

Expected Behavior

The local-search-application should be able to connect to the Qdrant service using the service name as the hostname within the Docker network.

Actual Behavior

The application fails to resolve the hostname "qdrant" and cannot connect to the Qdrant service.

AstraBert commented 2 weeks ago

Hi @amirhosein-vedadi,

This might happen sometimes: would you mind telling me on what OS and with what version of docker and docker-compose are you running the application?

amirhosein-vedadi commented 2 weeks ago

Hi @AstraBert,

AstraBert commented 2 weeks ago

Ok thanks!

Docker and docker-compose seem ok, I'll test the application on my Ubuntu to see wether there is any problem and, if so, how we can fix it :)

Thanks for bringing that up!

AstraBert commented 2 weeks ago

Hi @amirhosein-vedadi,

I wasn't unfortunately able to reproduce the issue: do you have any particular net restrictions that do not allow or block certain kind of http traffic? Because I had a similar issue (on Windows) with my net in the past days, and when I switched to another one it worked. Could you please try it?

Let me know, Astra :)