New Tool Radar

Local AI

How to Read Ollama’s Server Logs to Find Why a Model Will Not Load

When a model will not load, the answer is usually in Ollama's server log — find the log for your platform first, then search it for the error, instead of reinstalling.

Schematic diagram with three steps: find the server log for your platform, search it for error lines, and turn on debug logging with OLLAMA_DEBUG=1.

A model that will not load usually fails with a short error in the terminal, and that error is only the headline. Ollama’s troubleshooting page says one of the best ways to figure out what happened is to take a look at the logs, and the server log is where the full story is written: which model was loading, how much memory it needed, and whether the graphics card was found at all. The first job is finding the log, because it lives in a different place on every platform.

Find the log on your platform

The log is written by the server, not by the ollama run command in your terminal, so look in the server’s location, not in your chat window.

How Ollama runs Where the log is Command to read it
macOS app ~/.ollama/logs/server.log cat ~/.ollama/logs/server.log
Linux, systemd service The systemd journal, not a file journalctl -u ollama --no-pager
Windows app %LOCALAPPDATA%\Ollama Open server.log there; older logs are server-1.log, server-2.log and so on
Docker container Container standard output and error docker logs <container-name>
Started by hand The terminal you started it in Read the window where you ran ollama serve

On Linux, add -f to follow new entries live (journalctl -u ollama -f), and on macOS tail -f ~/.ollama/logs/server.log does the same. On Linux, journalctl -u ollama --since "1 hour ago" shows only recent entries, which keeps a long log readable.

What to search for

Ollama writes structured lines in the form time=... level=INFO source=... msg="...". Start with the problem lines, not the startup lines:

What you search for What it means
level=WARN or level=ERROR Problems worth reading first; on Linux, journalctl -u ollama --since today | grep -E "level=(WARN|ERROR)" filters to them
out of memory The model, or its context size, does not fit in the available RAM or video memory
GPU discovery error codes such as 3, 46, 100 or 999 The graphics card was not initialised (3), is unavailable (46), was not found (100), or failed for an unknown reason (999) — a driver problem, not a model problem
offload and layers How many model layers were placed on the GPU; few or zero layers on the GPU explains slow responses

Turn on debug logging when the log is too quiet

Normal logs are short. For more detail, set OLLAMA_DEBUG=1 before the server starts. On macOS, quit the Ollama app from the menu bar first, then run OLLAMA_DEBUG=1 ollama serve in a terminal. On Linux with the systemd service, run sudo systemctl edit ollama, add Environment="OLLAMA_DEBUG=1" under [Service], then run sudo systemctl daemon-reload and sudo systemctl restart ollama and follow the log with journalctl -u ollama -f. On Windows, quit Ollama from the system tray, then in PowerShell run $env:OLLAMA_DEBUG="1" followed by ollama serve.

Try it: find a failed load in the log

For a fictional example, on Linux, ollama run llama3.2:3b fails and the terminal error says only that the model could not be loaded. Run journalctl -u ollama --since today | grep -E "level=(WARN|ERROR)" and look at the matching lines. In this example one line says out of memory, which means the model plus its context does not fit the machine’s memory — so the fix is a smaller model or a smaller context window, not reinstalling Ollama. Expected result. We checked Ollama’s troubleshooting page and the Support Tools log guide. We did not read a real server log or run a model that failed to load.

Limits

The log names the cause; it does not apply the fix. An out-of-memory line means the model is too big for the machine, and a GPU discovery code means the driver needs attention — neither is fixed by restarting the server and hoping. If the log shows nothing at all, restart with debug logging turned on before concluding the log is empty. Ollama’s troubleshooting page suggests asking for help interpreting the logs in its Discord community if a line makes no sense. We did not test any failure ourselves.

Sources

See all