[GH-ISSUE #8559] Model list cleared after starting as a service using nssm #52036

Closed
opened 2026-04-28 21:43:07 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @AncientMystic on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8559

I have started Ollama as a service in windows hoping that how windows handles services will allow for a slight improvement in performance, but after starting ollama in this way the model list is gone.

Both starting as a service and through the app now have the same result, no models.

All the model files are still present in the model folder and the folder is defined manually with the ollama_models environment variable.

Is there any way to restore or rebuild the list? I have around 450gb of models installed, so i would really rather not have to start all over.... many of them are also from huggingface so it would be a long process of finding a re-downloadling many of them

Originally created by @AncientMystic on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8559 I have started Ollama as a service in windows hoping that how windows handles services will allow for a slight improvement in performance, but after starting ollama in this way the model list is gone. Both starting as a service and through the app now have the same result, no models. All the model files are still present in the model folder and the folder is defined manually with the ollama_models environment variable. Is there any way to restore or rebuild the list? I have around 450gb of models installed, so i would really rather not have to start all over.... many of them are also from huggingface so it would be a long process of finding a re-downloadling many of them
Author
Owner

@rick-github commented on GitHub (Jan 24, 2025):

The list of models is just the contents of the manifests directory. If that directory and the blobs directory exist, you should be able to just set OLLAMA_MODELS and the models should be available. What have you set OLLAMA_MODELS to, and what's in your server logs?

<!-- gh-comment-id:2612045788 --> @rick-github commented on GitHub (Jan 24, 2025): The list of models is just the contents of the `manifests` directory. If that directory and the `blobs` directory exist, you should be able to just set `OLLAMA_MODELS` and the models should be available. What have you set `OLLAMA_MODELS` to, and what's in your [server logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues)?
Author
Owner

@AncientMystic commented on GitHub (Feb 1, 2025):

I was able to get the ollama app to finally reload the list, still trying to make the service load the list (seems to run fine and just load nothing)

<!-- gh-comment-id:2628695419 --> @AncientMystic commented on GitHub (Feb 1, 2025): I was able to get the ollama app to finally reload the list, still trying to make the service load the list (seems to run fine and just load nothing)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52036