[GH-ISSUE #7923] Improve handling of pushes without namespace prefix #30831

Open
opened 2026-04-22 10:46:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @BruceMacD on GitHub (Dec 3, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7923

Originally assigned to: @BruceMacD on GitHub.

Currently, when users try to push a model without specifying their namespace (e.g. push model-name instead of push username/model-name), they receive a generic error about not being able to push to that namespace. This happens because the registry implicitly tries to use the "library/" namespace, which is restricted.

Most users naturally create models without a namespace prefix locally

❯ ollama push llama3.2
retrieving manifest 
pushing dde5aa3fc5ff... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB                         
pushing 966de95ca8a6... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB                         
pushing fcc5a6bec9da... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB                         
pushing a70ff7e570d9... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 6.0 KB                         
pushing 56bb8bd477a5... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏   96 B                         
pushing 34bb5ab01051... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏  561 B                         
pushing manifest 
Error: you are not authorized to push to this namespace, create the model under a namespace you own

Proposed Behavior

We should either:

  1. Automatically prefix the push with the username.
    or
  2. Provide a more helpful error message explaining how to name the model correctly.
Originally created by @BruceMacD on GitHub (Dec 3, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7923 Originally assigned to: @BruceMacD on GitHub. Currently, when users try to push a model without specifying their namespace (e.g. push model-name instead of push username/model-name), they receive a generic error about not being able to push to that namespace. This happens because the registry implicitly tries to use the "library/" namespace, which is restricted. Most users naturally create models without a namespace prefix locally ``` ❯ ollama push llama3.2 retrieving manifest pushing dde5aa3fc5ff... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB pushing 966de95ca8a6... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB pushing fcc5a6bec9da... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB pushing a70ff7e570d9... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 6.0 KB pushing 56bb8bd477a5... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 96 B pushing 34bb5ab01051... 100% ▕███████████████████████████████████████████████████████████████████████████████████████████████▏ 561 B pushing manifest Error: you are not authorized to push to this namespace, create the model under a namespace you own ``` # Proposed Behavior We should either: 1. Automatically prefix the push with the username. or 2. Provide a more helpful error message explaining how to name the model correctly.
GiteaMirror added the feature request label 2026-04-22 10:46:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30831