[GH-ISSUE #8994] Why do I get this error when I run this Ollama? #5842

Closed
opened 2026-04-12 17:10:56 -05:00 by GiteaMirror · 12 comments
Owner

Originally created by @CutePorker on GitHub (Feb 10, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8994

What is the issue?

Image

Image

I tried uninstalling and reinstalling it, but I still got the same error. What's even stranger is that it actually worked the first time I ran it.
What should I do to get him running again?

Image

Relevant log output


OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.5.7

Originally created by @CutePorker on GitHub (Feb 10, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8994 ### What is the issue? ![Image](https://github.com/user-attachments/assets/439549d6-3ea9-4d2f-88ca-b40526815833) ![Image](https://github.com/user-attachments/assets/171b48dd-fe94-49ea-a3fc-ee472c409b4b) I tried uninstalling and reinstalling it, but I still got the same error. What's even stranger is that it actually worked the first time I ran it. What should I do to get him running again? ![Image](https://github.com/user-attachments/assets/86c2961a-382c-4d6e-bb1d-64b81da36d9d) ### Relevant log output ```shell ``` ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-12 17:10:56 -05:00
Author
Owner

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

It seems you have OLLAMA_MODELS=* in your terminal environment, which is overriding the OLLAMA_MODELS you have set in the system environment. What does the following show:

echo %OLLAMA_MODELS%
<!-- gh-comment-id:2648312652 --> @rick-github commented on GitHub (Feb 10, 2025): It seems you have `OLLAMA_MODELS=*` in your terminal environment, which is overriding the `OLLAMA_MODELS` you have set in the system environment. What does the following show: ```console echo %OLLAMA_MODELS% ```
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

so what should i do?to seek advice
in cmd 'echo %OLLAMA_MODELS%' ??

<!-- gh-comment-id:2648328037 --> @CutePorker commented on GitHub (Feb 10, 2025): so what should i do?to seek advice in cmd 'echo %OLLAMA_MODELS%' ??
Author
Owner

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

In cmd 'echo %OLLAMA_MODELS%'.

<!-- gh-comment-id:2648333608 --> @rick-github commented on GitHub (Feb 10, 2025): In cmd 'echo %OLLAMA_MODELS%'.
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

Image
this ?

<!-- gh-comment-id:2648339895 --> @CutePorker commented on GitHub (Feb 10, 2025): ![Image](https://github.com/user-attachments/assets/5348dcbe-cf39-4cef-a27b-d8dff1b35b66) this ?
Author
Owner

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

OK, so not set in your terminal environment. Somewhere you have configured OLLAMA_MODELS=*. I don't use Windows often enough to know where. However, running ollama serve in your terminal session in not the recommended way. Instead, go to your task bar (the bit on the bottom left where you type commands), type ollama, and click on the app to start it. This will start ollama as a service, using the environment variables from the system settings.

<!-- gh-comment-id:2648355150 --> @rick-github commented on GitHub (Feb 10, 2025): OK, so not set in your terminal environment. Somewhere you have configured `OLLAMA_MODELS=*`. I don't use Windows often enough to know where. However, running `ollama serve` in your terminal session in not the recommended way. Instead, go to your task bar (the bit on the bottom left where you type commands), type `ollama`, and click on the app to start it. This will start ollama as a service, using the environment variables from the system settings.
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

Image
ehh... I added variables to the environment variables in the window, and it has become like this. Do I need to remove the OLLAMA_MODELS condition?

Image

<!-- gh-comment-id:2648371102 --> @CutePorker commented on GitHub (Feb 10, 2025): ![Image](https://github.com/user-attachments/assets/88eedfbb-a011-4c85-a888-9b972953601c) ehh... I added variables to the environment variables in the window, and it has become like this. Do I need to remove the OLLAMA_MODELS condition? ![Image](https://github.com/user-attachments/assets/665196a8-014d-4aee-a9f8-5c21214c86fd)
Author
Owner

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

Yes, remove the OLLAMA_MODELS condition.

<!-- gh-comment-id:2648386310 --> @rick-github commented on GitHub (Feb 10, 2025): Yes, remove the OLLAMA_MODELS condition.
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

Image

Image
now it is this

<!-- gh-comment-id:2648394615 --> @CutePorker commented on GitHub (Feb 10, 2025): ![Image](https://github.com/user-attachments/assets/4f1ad7d5-7281-4f8f-839b-d5ef10f2f85d) ![Image](https://github.com/user-attachments/assets/26ee43b2-ba58-4f10-8288-39d6b84c8442) now it is this
Author
Owner

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

If you stopped ollama serve in order to run ollama -v, this is the expected result - the server is not running because you stopped it.

<!-- gh-comment-id:2648431483 --> @rick-github commented on GitHub (Feb 10, 2025): If you stopped `ollama serve` in order to run `ollama -v`, this is the expected result - the server is not running because you stopped it.
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

Image it‘ OK thank you
I have a small question: why is it downloading so slowly?

<!-- gh-comment-id:2648443695 --> @CutePorker commented on GitHub (Feb 10, 2025): ![Image](https://github.com/user-attachments/assets/4f1090c0-0190-4172-b16f-3e85787e264f) it‘ OK thank you I have a small question: why is it downloading so slowly?
Author
Owner

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

Because of the internet. You can interrupt it and start again, it will keep what was already downloaded and the new connection might be faster.

<!-- gh-comment-id:2648471214 --> @rick-github commented on GitHub (Feb 10, 2025): Because of the internet. You can interrupt it and start again, it will keep what was already downloaded and the new connection might be faster.
Author
Owner

@CutePorker commented on GitHub (Feb 10, 2025):

oh thank you so much!

<!-- gh-comment-id:2648482070 --> @CutePorker commented on GitHub (Feb 10, 2025): oh thank you so much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5842