ollama - 💡(How to fix) Fix Ollama tries to pull when it shouldn't [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14593Fetched 2026-04-08 00:34:00
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
0
Participants
Timeline (top)
commented ×2labeled ×2

Error Message

Error: OSS setup failed: Pull failed: pull model manifest: file does not exist

  • Launching codex -p myprofile also fails, even if I have configured base_url = "http://localhost:11434/v1". After the "model metadata not found" error I get:

{"error":{"message":"registry.ollama.ai/library/mymodel:latest does not support tools","type":"api_error","param":null,"code":null}}

Root Cause

Downloaded a local GGUF model. Created Modelfile pointing to GGUF file and did ollama create for my model.

  • ollama list shows my model with the name I assigned and :latest
  • ollama run starts the model and it works (same for ollama launch and selecting "Run a model")
  • ollama launch codex fails... because it tries to pull the model (it shouldn't; there's a local manifest and the model is registered and recognized -- I can pick it from the list when using --config)
RAW_BUFFERClick to expand / collapse

What is the issue?

Downloaded a local GGUF model. Created Modelfile pointing to GGUF file and did ollama create for my model.

  • ollama list shows my model with the name I assigned and :latest
  • ollama run starts the model and it works (same for ollama launch and selecting "Run a model")
  • ollama launch codex fails... because it tries to pull the model (it shouldn't; there's a local manifest and the model is registered and recognized -- I can pick it from the list when using --config)

Error: OSS setup failed: Pull failed: pull model manifest: file does not exist

  • Launching codex -p myprofile also fails, even if I have configured base_url = "http://localhost:11434/v1". After the "model metadata not found" error I get:

{"error":{"message":"registry.ollama.ai/library/mymodel:latest does not support tools","type":"api_error","param":null,"code":null}}

Setting OLLAMA_NO_CLOUD=1 does not fix this.

Relevant log output

OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

0.17.5

extent analysis

Fix Plan

The fix involves modifying the ollama launch codex command to use the local model instead of pulling from the cloud.

  • Set the OLLAMA_MODEL_REGISTRY environment variable to point to the local model registry.
  • Use the --config flag with ollama launch codex to specify the local model configuration.

Example:

OLLAMA_MODEL_REGISTRY=file:///path/to/local/model/registry ollama launch codex --config /path/to/model/config

Alternatively, you can also modify the ollama configuration file to use the local model registry by default.

  • Add the following lines to your ~/.ollama/config file:
model_registry: file:///path/to/local/model/registry

Then, run the ollama launch codex command without any additional flags.

Verification

To verify that the fix worked, run the ollama launch codex command and check that it uses the local model instead of pulling from the cloud. You can also check the ollama logs to ensure that the local model registry is being used.

Extra Tips

  • Make sure to update the OLLAMA_MODEL_REGISTRY environment variable or the ~/.ollama/config file to point to the correct location of your local model registry.
  • If you are using a custom ollama configuration file, make sure to update the model_registry setting accordingly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix Ollama tries to pull when it shouldn't [2 comments, 2 participants]