Skip to content
,

Ollama Logs: Where to Find server.log on Windows, Mac, Linux and Docker (2026)

6–8 minutes
Woman in a modern office holding a card reading LOGS, hook fix Ollama read the logs

When Ollama crashes, runs on the CPU instead of the GPU, or a model refuses to load, the error you see in the terminal is often vague. The real reason is almost always in the server log.

This guide shows exactly where Ollama keeps its logs on Windows, macOS, Linux and Docker, how to turn on debug logging, and how to read the lines that matter: GPU detection, memory, model loading and crashes.

TL;DR

  • Windows: press Win+R, type explorer %LOCALAPPDATA%\Ollama, open server.log. Older logs are server-1.log, server-2.log and so on.
  • macOS: cat ~/.ollama/logs/server.log
  • Linux (systemd): journalctl -u ollama --no-pager --follow --pager-end
  • Docker: docker logs <container-name>
  • More detail: set OLLAMA_DEBUG=1 and restart Ollama.

New to Ollama? My Ollama guide covers install, models, commands and fixes in one place.

Where Ollama Logs Are (Quick Table)

How Ollama runs Where the log is Command
Windows app %LOCALAPPDATA%\Ollama\server.log explorer %LOCALAPPDATA%\Ollama
macOS app ~/.ollama/logs/server.log cat ~/.ollama/logs/server.log
Linux service systemd journal journalctl -u ollama
Docker Container stdout/stderr docker logs ollama
ollama serve by hand The same terminal Just read the window

Note that the CLI (ollama run) is only a client. The useful information is written by the server, the background process that loads models. That is why the terminal you chat in often shows little more than “Error: …”.

Windows

The Windows app writes its logs to your local app data folder.

  1. Press Win + R.
  2. Type explorer %LOCALAPPDATA%\Ollama and press Enter.
  3. Open server.log in Notepad or VS Code. That is the current run. server-1.log, server-2.log and so on are older runs.

To watch the log live in PowerShell:

Get-Content "$env:LOCALAPPDATA\Ollama\server.log" -Wait -Tail 50

Other useful Windows folders from Ollama’s troubleshooting docs:

  • %LOCALAPPDATA%\Programs\Ollama: the program files (the installer adds this to your PATH).
  • %HOMEPATH%\.ollama: models and configuration.
  • %TEMP%: temporary files in ollama* folders.

If you moved your models with OLLAMA_MODELS, the logs still stay in %LOCALAPPDATA%\Ollama. See how to move Ollama models to another drive.

macOS

The Mac app writes to a log file in your home folder:

cat ~/.ollama/logs/server.log

# follow it live
tail -f ~/.ollama/logs/server.log

You can also open it in Finder: press Cmd + Shift + G, paste ~/.ollama/logs and press Enter.

Linux

The official install script sets Ollama up as a systemd service, so logs go to the journal:

# follow the log live
journalctl -u ollama --no-pager --follow --pager-end

# last 200 lines
journalctl -u ollama -n 200 --no-pager

# only since the last boot
journalctl -u ollama -b --no-pager

If journalctl says you have no permission, add sudo or add your user to the systemd-journal group.

Need to restart the service after changing a setting? Run sudo systemctl restart ollama, then follow the log again.

Docker

In a container, Ollama prints its log to standard output:

docker ps                     # find the container name
docker logs ollama            # full log
docker logs -f --tail 100 ollama   # follow the last 100 lines

If GPU detection fails in Docker, the log usually says so near the start. My Ollama Docker guide covers the NVIDIA and AMD container setup.

Running ollama serve Yourself

If you quit the app or stop the service and start the server by hand, the log appears right in that terminal:

ollama serve

This is the easiest way to watch what happens while you reproduce a problem. Open a second terminal for ollama run. If you get “address already in use”, the app or service is still running; quit it first.

Turn On Debug Logging

Normal logs are short. Set OLLAMA_DEBUG=1 to get much more detail, especially about GPU discovery and memory.

Windows (from Ollama’s docs). Quit the app from the tray menu first, then in PowerShell:

$env:OLLAMA_DEBUG="1"
& "ollama app.exe"

macOS / Linux, quick test:

OLLAMA_DEBUG=1 ollama serve

Linux service, permanent: run sudo systemctl edit ollama.service and add:

[Service]
Environment="OLLAMA_DEBUG=1"

Then run sudo systemctl daemon-reload && sudo systemctl restart ollama.

Turn it off again when you are done, because debug logs grow fast. For GPU-specific problems, Ollama’s docs also mention CUDA_ERROR_LEVEL=50 for NVIDIA and AMD_LOG_LEVEL=3 for AMD. All variables are explained in my Ollama environment variables guide.

How to Read the Log

A server log has three useful parts. Search for these words (Ctrl+F) instead of reading every line:

Search for What it tells you
inference compute Which GPUs Ollama found at start-up, their driver and VRAM. If you only see CPU here, Ollama never saw your GPU.
offload / layers How many model layers went to the GPU. “Offloaded 20/48 layers” means the rest runs slowly on the CPU.
error, panic, failed The actual cause of a crash or a failed load.
Ollama cloud disabled Confirms local-only mode is on, if you set it.
out of memory, OOM The model plus its context did not fit in VRAM or RAM.

Exact wording changes between releases, so look for the idea rather than an exact sentence. Compare the log with ollama ps: its PROCESSOR column shows the GPU/CPU split of a loaded model.

Common Log Errors and Fixes

No GPU detected / model runs on the CPU

Update your GPU driver first, then restart Ollama. On Linux with NVIDIA, Ollama’s docs list error codes such as 3 (not initialised), 46 (device unavailable), 100 (no device) and 999 (unknown).

Try sudo nvidia-modprobe -u, reload the uvm driver (sudo rmmod nvidia_uvm, then sudo modprobe nvidia_uvm), or reboot. Full checklist: Ollama not using GPU.

“failure during GPU discovery … failed to finish discovery before timeout” (AMD)

Ollama’s docs say this usually means your AMD driver is too old. Ollama bundles ROCm 7 libraries on Linux, which need a ROCm 7 kernel driver. Upgrade with AMD’s amdgpu-install, reboot and restart Ollama. More in my AMD GPU for AI guide.

Docker starts on the GPU, then falls back to the CPU

If the log shows GPU discovery failures after a while, Ollama’s docs recommend adding "exec-opts": ["native.cgroupdriver=cgroupfs"] to /etc/docker/daemon.json on the host, then restarting Docker.

Out of memory or the model only partly loads

The model or its context is too big. Use a smaller quantization, lower num_ctx, or close other GPU apps. See Ollama context length and CUDA out of memory fix.

“noexec” or permission errors on Linux

If your temp folder is mounted noexec, set OLLAMA_TMPDIR to a folder the ollama user can write to, as Ollama’s troubleshooting page suggests.

Strange characters like ←[?25h in the Windows terminal

That is a known bug in old Windows 10 builds (such as 21H1). Update Windows 10 to 22H1 or newer, or use Windows Terminal.

Sharing Logs Safely

When you ask for help on GitHub, Discord or Reddit, paste only the part around the error, not the whole file. Before posting:

  • Remove your username from file paths (for example C:\Users\yourname).
  • Remove any API keys, tokens or private hostnames.
  • Include your Ollama version (ollama -v), OS and GPU model.

Ollama’s own docs point to their Discord for help reading logs.

FAQ

Can I delete old Ollama log files?

Yes. On Windows, the older server-#.log files are safe to delete while Ollama is closed. Deleting logs does not touch your models.

Why is server.log empty?

Ollama may not be running through the app. If you started ollama serve in a terminal or as a service, the log goes there instead.

Does the log contain my prompts?

Normal logs focus on start-up, hardware and model loading. Debug logs are more detailed, so treat them as private and check them before you share.

Where are the logs on WSL2?

Inside WSL, Ollama behaves like Linux: use journalctl -u ollama if it runs as a service, or the terminal where you ran ollama serve. See my WSL2 local AI setup.

How do I update Ollama after finding a bug?

Many log errors disappear in newer releases. Follow how to update Ollama; your models are kept.

Sources

  • Ollama docs: Troubleshooting (log locations per OS, OLLAMA_DEBUG on Windows, NVIDIA/AMD error codes, Docker cgroup fix, OLLAMA_TMPDIR, Windows terminal bug)
  • Ollama docs: FAQ (setting environment variables, systemd edits, cloud-disabled log line)
Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a modern office holding a card reading LOGS, hook fix Ollama read the logs