[PR #7783] [MERGED] logs: explain client aborts better #17788

Closed
opened 2026-04-16 06:14:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7783
Author: @dhiltgen
Created: 11/21/2024
Status: Merged
Merged: 11/22/2024
Merged by: @dhiltgen

Base: mainHead: context_canceled_log


📝 Commits (1)

  • 31e911e logs: explain client aborts better

📊 Changes

2 files changed (+20 additions, -4 deletions)

View changed files

📝 llama/runner/runner.go (+10 -2)
📝 llm/server.go (+10 -2)

📄 Description

Users get confused by "Failed to acquire semaphore" error="context canceled" messages in the logs, which are actually clients giving up. While there could be a legitimate hang bug in the system, sometimes this is just short client timeouts with an overloaded system, so this should help users understand what's going on better.


🔄 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/7783 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 11/21/2024 **Status:** ✅ Merged **Merged:** 11/22/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `context_canceled_log` --- ### 📝 Commits (1) - [`31e911e`](https://github.com/ollama/ollama/commit/31e911e59e7a07072529a633468c7e6f152fc97a) logs: explain client aborts better ### 📊 Changes **2 files changed** (+20 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `llama/runner/runner.go` (+10 -2) 📝 `llm/server.go` (+10 -2) </details> ### 📄 Description Users get confused by "Failed to acquire semaphore" error="context canceled" messages in the logs, which are actually clients giving up. While there could be a legitimate hang bug in the system, sometimes this is just short client timeouts with an overloaded system, so this should help users understand what's going on better. --- <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-16 06:14:01 -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#17788