Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)
Open WebUI reached Ollama, but Ollama failed while loading or running the model and only returned “Internal Server Error.”
The message
Ollama: 500, message='Internal Server Error', url='http://localhost:11434/api/chat'
Affects: Open WebUI, Ollama, Docker Desktop
Why is this happening?
Unlike a connection error, the request reaches Ollama here. Error 500 means Ollama itself failed while loading or computing, but Open WebUI only shows the short version of that. People affected have cited causes such as an Ollama version that is too old for a new model, not enough RAM, a corrupted model file, a context length set too high, or too many layers on the graphics card (num_gpu). Newer Open WebUI versions often show Ollama’s actual error message directly instead of just “500.”
How to fix it
- Test the same model directly in the terminal with
ollama run <modellname>. There, Ollama shows the real error message, for example “model requires more system memory” or “unknown model architecture.” There are separate entries for these messages. - Open the file
server.logwithexplorer %LOCALAPPDATA%\Ollamaand read the lines from the time of the error. If Ollama is running in Docker, you can see the log withdocker logs <containername>. - Update Ollama (right-click the taskbar icon → “Restart to update” or install it again from ollama.com). A common case: the model is newer than your Ollama version.
- If you raised the context length (
num_ctx) ornum_gpufor the model in Open WebUI, reset the values to default and try again. - Delete the model and download it again if the file is corrupted:
ollama rm <modellname>and thenollama pull <modellname>. - If you don’t have enough memory, use a smaller variant of the model or close other programs that use a lot of RAM or VRAM.
Better not: Don’t look for the error in Open WebUI’s connection settings: with a 500, Ollama is reachable, and the problem is with the model or with Ollama itself.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI… - Chat with your own documents (AnythingLLM)
Set up AnythingLLM Desktop on Windows, load PDFs into a workspace, and ask questions locally — with sources and privacy.
Terms for this
Similar errors
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- Docker Desktop: WSL needs updating / WSL 2 installation is incomplete
- Open WebUI or AnythingLLM can't find Ollama
- Ollama: POST predict … /completion: EOF / wsarecv: An existing connection was forcibly closed by the remote host (model process crashed in the middle of the response)
- Model forgets the beginning or ignores long texts (context length too small)
Sources
- https://github.com/open-webui/open-webui/issues/3553
- https://github.com/open-webui/open-webui/discussions/3554
- https://github.com/open-webui/open-webui/issues/9453
- https://docs.ollama.com/troubleshooting
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.