Skip to content

How-ToGPU

How to Find Ollama Logs on Windows, Linux and Docker (and Turn On Debug Logging)

Where to find Ollama's server logs on Windows, Linux, macOS and Docker, how to turn on extra debug logging with OLLAMA_DEBUG, and what to look for when a local AI model won't load or Ollama ignores your GPU.

By , Systems & Technical Editor

4 min read

How to Find Ollama Logs on Windows, Linux and Docker (and Turn On Debug Logging)

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.

The bottom line

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.

Sources

  1. 01Ollama, Troubleshooting (Ollama documentation)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How-To

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

Marcus Thorne8 min