The log locations and commands below come from Ollama's official troubleshooting documentation, read on 23 November 2026. Ollama changes quickly, so check the documentation if a path or command doesn't match what you see.
When a local AI model refuses to load, runs far slower than expected or suddenly stops using your graphics card, guessing rarely helps. Ollama's own documentation says one of the best ways to work out what happened is to look at the logs. The server log records which GPU libraries Ollama found, how much memory it detected and any errors it hit while starting up or loading a model.
Where Ollama keeps its logs on Windows
On Windows, Ollama spreads its files across a few folders. Press Windows key + R to open the Run box and type one of these:
explorer %LOCALAPPDATA%\Ollama opens the logs folder. The newest server log is server.log, and older ones are named server-#.log.
explorer %LOCALAPPDATA%\Programs\Ollama opens the program files. The installer adds this folder to your user PATH.
explorer %HOMEPATH%\.ollama opens the folder where models and configuration are stored.
explorer %TEMP% shows temporary executable files, which sit in one or more folders whose names start with ollama.
Open server.log in Notepad or any text editor. If you've just reproduced a problem, the most recent lines at the bottom are usually the ones that matter.
Where to find logs on Linux, macOS and Docker
Linux with systemd: run journalctl -u ollama --no-pager --follow --pager-end to see the service log and follow new lines as they arrive. If you installed Ollama with the official script, see our guide to installing Ollama on Linux.
macOS: run cat ~/.ollama/logs/server.log.
Docker: the logs go to the container's standard output, so run docker logs <container-name>. Use docker ps to find the container name.
Running ollama serve yourself: if you start the server manually in a terminal, the logs appear in that terminal window.
How to turn on debug logging on Windows
The normal log is enough for most problems, but Ollama can write extra detail. On Windows, the documentation says to quit the running Ollama app from the system tray menu first, then open PowerShell and run:
$env:OLLAMA_DEBUG="1"
& "ollama app.exe"
This starts Ollama again with additional debug logging for that session. Reproduce the problem, then check server.log again. Close the app when you've finished so it starts normally next time.
What to look for in the log
Which GPU libraries were found. Ollama includes several LLM libraries built for different GPUs and CPU features, and it tries to pick the best one for your system. The server log shows a line listing the available libraries, such as CUDA, ROCm and CPU variants. The exact wording varies between releases. If you expected your graphics card to be used, our guide to checking whether Ollama is using your GPU explains the next steps.
GPU discovery errors. When Ollama starts, it takes an inventory of your GPUs to work out compatibility and how much VRAM is available, and the documentation notes that this can sometimes fail. On Linux with NVIDIA cards, the troubleshooting page says failures can appear in the server log as error codes such as 3 (not initialized), 46 (device unavailable), 100 (no device) or 999 (unknown). Its first suggestion is to run the latest NVIDIA driver. If you have more than one card, see how to choose which GPU Ollama uses.
Docker falling back to the CPU. If Ollama works on the GPU in a Docker container at first and then switches to the CPU, with GPU discovery failures in the log, the documentation says this can be fixed by disabling systemd cgroup management in Docker. You do that by adding "exec-opts": ["native.cgroupdriver=cgroupfs"] to /etc/docker/daemon.json on the host.
Forcing a specific library (experimental)
If autodetection picks the wrong library or your GPU crashes, Ollama has an experimental override. Setting OLLAMA_LLM_LIBRARY to one of the libraries listed in your log bypasses autodetection. For example, OLLAMA_LLM_LIBRARY="cpu_avx2" ollama serve forces the CPU library with AVX2 support even if you have a CUDA card. According to the documentation, cpu_avx2 is the fastest CPU option, followed by cpu_avx, while plain cpu is the slowest but most compatible. Treat this as a diagnostic step rather than a permanent setting, because running on the CPU will be much slower than on a supported GPU.
Our verdict
Before you change settings or reinstall Ollama, read its server log. On Windows, type explorer %LOCALAPPDATA%\Ollama in the Run box and open server.log. On Linux, use journalctl -u ollama, and in Docker use docker logs. If the normal log doesn't explain the problem, quit Ollama and restart it with OLLAMA_DEBUG="1" for more detail. Look for which GPU libraries were detected and any discovery errors, because those explain most cases where Ollama ignores your graphics card.