[GH-ISSUE #8303] Warning: could not connect to a running Ollama instance #5316

Closed
opened 2026-04-12 16:30:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @rcjdut on GitHub (Jan 4, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8303

What is the issue?

I manually installed Ollama and successfully ran the command 'ollama serve' in a terminal,but when i try to ran the command 'ollama -v',it showed 'Warning: could not connect to a running Ollama instance
Warning: client version is 0.5.4'
屏幕截图 2025-01-04 162123
屏幕截图 2025-01-04 162203

OS

Linux

GPU

Nvidia

CPU

No response

Ollama version

No response

Originally created by @rcjdut on GitHub (Jan 4, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8303 ### What is the issue? I manually installed Ollama and successfully ran the command 'ollama serve' in a terminal,but when i try to ran the command 'ollama -v',it showed 'Warning: could not connect to a running Ollama instance Warning: client version is 0.5.4' ![屏幕截图 2025-01-04 162123](https://github.com/user-attachments/assets/124d01b6-d540-4d89-8b4f-b84e59cdc274) ![屏幕截图 2025-01-04 162203](https://github.com/user-attachments/assets/c2815813-408d-46c6-a4ad-16530c4c7e50) ### OS Linux ### GPU Nvidia ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 16:30:41 -05:00
Author
Owner

@rcjdut commented on GitHub (Jan 4, 2025):

After I changed the port for Ollama, the issue was resolved. It really was an unfortunate afternoon.
屏幕截图 2025-01-04 163817
屏幕截图 2025-01-04 163911

<!-- gh-comment-id:2570777215 --> @rcjdut commented on GitHub (Jan 4, 2025): After I changed the port for Ollama, the issue was resolved. It really was an unfortunate afternoon. ![屏幕截图 2025-01-04 163817](https://github.com/user-attachments/assets/509e8876-9bf2-4640-9d63-4f743e5791ff) ![屏幕截图 2025-01-04 163911](https://github.com/user-attachments/assets/ff2c4d25-762e-4518-9b62-f1ccc414b079)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5316