#Ollama port issues

1 messages · Page 1 of 1 (latest)

jovial remnant
#

Hi all, I'm new to LibreChat but loving it so far.

I'm trying to follow the ollama guide. I keep running into this issue that when I stop the containers (docker compose stop), ollama seems to stick around. Then, when I try to bring them back up (docker compose up), I see:

Error response from daemon: driver failed programming external connectivity on endpoint librechat-ollama-1 (<id>): Error starting userland proxy: listen tcp4 0.0.0.0:11434: bind: address already in use

I can manually kill the process with:

ollama    27347          ollama    3u  IPv4 116144      0t0  TCP 127.0.0.1:11434 (LISTEN)
> sudo kill -9 27347

But I assume I'm doing something wrong; I'd expect ollama to shut down when all the other containers shut down?

#

Hmm, I spoke too soon.

Though I can kill the process, docker compose up still reports:

Attaching to LibreChat, chat-meilisearch, chat-mongodb, ollama-1, rag_api-1, vectordb-1
Error response from daemon: driver failed programming external connectivity on endpoint librechat-ollama-1 (<id>): Error starting userland proxy: listen tcp4 0.0.0.0:11434: bind: address already in use

If I kill the process, it successfully goes away; however, docker compose up seems to bring it back and then run into a port collision on up.