[PR #10843] [MERGED] server: add hint to the error message when model path access fails #44633

Closed
opened 2026-04-25 00:14:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10843
Author: @rick-github
Created: 5/24/2025
Status: Merged
Merged: 5/24/2025
Merged by: @jmorganca

Base: mainHead: mkdir


📝 Commits (1)

  • 3595791 server: add hint to the error message when model path access fails

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 server/modelpath.go (+2 -2)

📄 Description

A not-uncommon issue when users move the model directory is not realizing that all elements of the path it's being moved to needs to be accessible to the ollama user. Add a hint to the error messages.

Fixes: #10839

Before:

Error: mkdir /usr/share/ollama/.ollama: permission denied

After:

Error: mkdir /usr/share/ollama/.ollama: permission denied: ensure path elements are traversable

🔄 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/10843 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 5/24/2025 **Status:** ✅ Merged **Merged:** 5/24/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `mkdir` --- ### 📝 Commits (1) - [`3595791`](https://github.com/ollama/ollama/commit/35957919fc51be7676a393011db96dce25df388c) server: add hint to the error message when model path access fails ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/modelpath.go` (+2 -2) </details> ### 📄 Description A not-uncommon issue when users move the model directory is not realizing that all elements of the path it's being moved to needs to be accessible to the ollama user. Add a hint to the error messages. Fixes: #10839 Before: ``` Error: mkdir /usr/share/ollama/.ollama: permission denied ``` After: ``` Error: mkdir /usr/share/ollama/.ollama: permission denied: ensure path elements are traversable ``` --- <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-04-25 00:14:30 -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#44633