[PR #8190] [CLOSED] macos: detect potential version skew #12656

Closed
opened 2026-04-13 00:06:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8190
Author: @dhiltgen
Created: 12/20/2024
Status: Closed

Base: mainHead: harden_mac_upgrade


📝 Commits (1)

  • 93c7330 macos: detect potential version skew

📊 Changes

1 file changed (+35 additions, -0 deletions)

View changed files

📝 llm/server.go (+35 -0)

📄 Description

During upgrade, we could get into a scenario where an old serve tries to start newer runner executables, which could have new expectations. This added check will handle non-zero exit status from the runner and double check the current process has the same version as the executable on disk. If the version has skewed, exit the serve process so the app can respawn the new binary.


🔄 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/8190 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 12/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `harden_mac_upgrade` --- ### 📝 Commits (1) - [`93c7330`](https://github.com/ollama/ollama/commit/93c7330ffc7e4e8772c4d2cf3cf8fcdeb35629df) macos: detect potential version skew ### 📊 Changes **1 file changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+35 -0) </details> ### 📄 Description During upgrade, we could get into a scenario where an old serve tries to start newer runner executables, which could have new expectations. This added check will handle non-zero exit status from the runner and double check the current process has the same version as the executable on disk. If the version has skewed, exit the serve process so the app can respawn the new binary. --- <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-13 00:06:07 -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#12656