[PR #246] [MERGED] check server is running before running command #72354

Closed
opened 2026-05-05 03:52:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/246
Author: @BruceMacD
Created: 7/31/2023
Status: Merged
Merged: 8/2/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/check-server


📝 Commits (5)

  • e72fe79 check server is running before running command
  • 36d6081 find symlink of mac app
  • 40a25bf pr comments
  • 7659943 use head to check heartbeat
  • 50e87c6 read from os executable

📊 Changes

3 files changed (+91 additions, -25 deletions)

View changed files

📝 api/client.go (+7 -0)
📝 cmd/cmd.go (+81 -25)
📝 server/routes.go (+3 -0)

📄 Description

Check if the server is running rather than returning confusing "connection refused" errors.

If the mac app is available start it, otherwise tell the user to run ollama serve.

resolves #47


🔄 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/246 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 7/31/2023 **Status:** ✅ Merged **Merged:** 8/2/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/check-server` --- ### 📝 Commits (5) - [`e72fe79`](https://github.com/ollama/ollama/commit/e72fe7945fce351f00c75027e898a7f8598c8fa9) check server is running before running command - [`36d6081`](https://github.com/ollama/ollama/commit/36d6081ed179ad78f3061e44161715c4a7f24154) find symlink of mac app - [`40a25bf`](https://github.com/ollama/ollama/commit/40a25bf8c396cd09befc5521cd3d60d1b8acdb01) pr comments - [`7659943`](https://github.com/ollama/ollama/commit/765994362cf2860b9d137d113f23590ba8b2cf16) use head to check heartbeat - [`50e87c6`](https://github.com/ollama/ollama/commit/50e87c66911b18bb7ffbf6951ee5e30b50167bc9) read from os executable ### 📊 Changes **3 files changed** (+91 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+7 -0) 📝 `cmd/cmd.go` (+81 -25) 📝 `server/routes.go` (+3 -0) </details> ### 📄 Description Check if the server is running rather than returning confusing "connection refused" errors. If the mac app is available start it, otherwise tell the user to run `ollama serve`. resolves #47 --- <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 03:52:33 -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#72354