-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Trying to run it dockerized and getting "HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url" #1872
Comments
I'm pretty sure this has nothing to do with |
I've pretty much tried to dockerize it according to the docs |
Is Ollama running from inside the container too? (localhost) |
Please unsubscribe me.
2024년 4월 21일 (일) 오후 4:49, Pol Dellaiera ***@***.***>님이 작성:
… Is Ollama running from inside the container too? (localhost)
—
Reply to this email directly, view it on GitHub
<#1872 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4ZVIQMMQD7SRSFZI2E4G3Y6NVRVAVCNFSM6AAAAABGRE3LGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXHE2DKOJSGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
no |
That's the issue. From the container |
it makes sense, but then again I'm surprised how come I need to change anything given I'm simply following the documentation. Maybe I need to expose port 11434 to this container ? |
No, that is pointless. What you need to do instead is to replace occurrences of |
Not sure I understand where exactly. |
private-gpt/settings-ollama.yaml Line 16 in c1802e7
What you need to do is to create your custom YAML file and use it in Docker (via a directory binding?). AFAIK and since there's no environment variable to change that Ollama URL, you don't have other choice. |
ok... so |
I guess your machine has a local IP address ? Then use it. |
I ended up changing it to the container name:
Now I'm having a different issue:
|
That's very good news. That means you succeeded to connect to Ollama. Now you need to read and hopefully tackle the next issue. To fix it, just do: |
it worked! |
I have no knowledge in |
actually this docker file belongs to the private-gpt image, so I'll need to figure this out somehow, but I will document it once I'll find a suitable solution. Thanks a lot for your help |
@BenBatsir You can't add this line to In this situation, I have three ideas on how to fix it:
Anyway, we will talk internally about this problem and try to fix a solution to prevent further related problems. |
It works perfectly when running it locally (without docker), but when I tried to import a doc via UI (inside a container), I'm getting the bellow:
The text was updated successfully, but these errors were encountered: