[PR #1131] [MERGED] return failure details when unauthorized to push #72770

Closed
opened 2026-05-05 04:18:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1131
Author: @BruceMacD
Created: 11/14/2023
Status: Merged
Merged: 11/16/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/unauth-push


📝 Commits (3)

  • 09a1ef8 return failure details when unauthorized to push
  • 88a3685 return lastErr
  • 7270d40 Update server/images.go

📊 Changes

1 file changed (+8 additions, -3 deletions)

View changed files

📝 server/images.go (+8 -3)

📄 Description

Previous behavior:
Pushing to the default namespace or a namespace you don't have access to results in a vague error.

$ ollama push mario
retrieving manifest
Error: max retries exceeded

New behavior:
Pushing to the default namespace or a namespace you don't have access to results the reason for the error.

$ ollama push mario
retrieving manifest
Error: unable to push library/mario, make sure this namespace exists and you are authorized to push to it

$ ollama push bruxe/mario
retrieving manifest
Error: unable to push bruxe/mario, make sure this namespace exists and you are authorized to push to it

Resolves #1140


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1131 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 11/14/2023 **Status:** ✅ Merged **Merged:** 11/16/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/unauth-push` --- ### 📝 Commits (3) - [`09a1ef8`](https://github.com/ollama/ollama/commit/09a1ef8cc52007fbf024f5876c751a878642287b) return failure details when unauthorized to push - [`88a3685`](https://github.com/ollama/ollama/commit/88a368530c7dae3b28c415e70dc53d9f013add41) return lastErr - [`7270d40`](https://github.com/ollama/ollama/commit/7270d4011d87c082f144aa79e854885191be82e1) Update server/images.go ### 📊 Changes **1 file changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+8 -3) </details> ### 📄 Description Previous behavior: Pushing to the default namespace or a namespace you don't have access to results in a vague error. ``` $ ollama push mario retrieving manifest Error: max retries exceeded ``` New behavior: Pushing to the default namespace or a namespace you don't have access to results the reason for the error. ``` $ ollama push mario retrieving manifest Error: unable to push library/mario, make sure this namespace exists and you are authorized to push to it $ ollama push bruxe/mario retrieving manifest Error: unable to push bruxe/mario, make sure this namespace exists and you are authorized to push to it ``` Resolves #1140 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 04:18:54 -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#72770