[GH-ISSUE #9390] The results returned by “ollama list” and “/api/tags” are inconsistent #31886

Closed
opened 2026-04-22 12:40:44 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @loilisxka on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9390

What is the issue?

I changed the model storage location to /data/ollama_backup by modifying ollama.service.

When I view the model locally, everything works fine, and I can also use the ollama run command to start the program.

>>>ollama list
NAME               ID              SIZE     MODIFIED     
deepseek-r1:32b    38056bbcbb2d    19 GB    44 hours ago

But when I remotely connect to the Ollama server and read the model list, I get an empty list. What's going on? This result is confusing.

>>> curl http://my_pc:4399/api/tags
{"models":[]}%

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @loilisxka on GitHub (Feb 27, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9390 ### What is the issue? I changed the model storage location to `/data/ollama_backup` by modifying ollama.service. When I view the model locally, everything works fine, and I can also use the ollama run command to start the program. ``` >>>ollama list NAME ID SIZE MODIFIED deepseek-r1:32b 38056bbcbb2d 19 GB 44 hours ago ``` But when I remotely connect to the Ollama server and read the model list, I get an empty list. What's going on? This result is confusing. ``` >>> curl http://my_pc:4399/api/tags {"models":[]}% ``` ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 12:40:44 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 27, 2025):

You are running two different ollama servers.

<!-- gh-comment-id:2687270357 --> @rick-github commented on GitHub (Feb 27, 2025): You are running two different ollama servers.
Author
Owner

@loilisxka commented on GitHub (Feb 27, 2025):

You are running two different ollama servers.

You are right, I just found the problem, I started the ollama service on port 8888 and port 11434 at the same time

<!-- gh-comment-id:2687279142 --> @loilisxka commented on GitHub (Feb 27, 2025): > You are running two different ollama servers. You are right, I just found the problem, I started the ollama service on port 8888 and port 11434 at the same time
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31886