Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in Ollama example: pulling error from ollama: "stalled; retrying. If this persists" #378

Open
gusseppe opened this issue Feb 2, 2025 · 2 comments

Comments

@gusseppe
Copy link

gusseppe commented Feb 2, 2025

If having the following error when running this script (download.sh) to download models from ollama:

time=2025-01-19T16:09:54.920+03:30 level=INFO source=download.go:370 msg="170370233dd5 part 11 stalled; retrying. If this persists, press ctrl-c to exit, then 'ollama pull' to find a faster connection."

You can change the following part to make it working.

From this:

/bin/ollama pull $ollama_model_name

To this:

until timeout 10s /bin/ollama pull "$ollama_model_name"; do
  echo "Pull timed out or stalled. Retrying..."
  sleep 1
done

Inspired on this issue from ollama repo.

@nstogner
Copy link
Contributor

nstogner commented Feb 5, 2025

Thanks for filing the issue, will take a look soon!

@nstogner nstogner changed the title pulling error from ollama: "stalled; retrying. If this persists" Built-in Ollama example: pulling error from ollama: "stalled; retrying. If this persists" Feb 15, 2025
@nstogner
Copy link
Contributor

After reviewing this, I think we will wait for this to be fixed in the Ollama project since we are just providing this script as an example. Feel free to add a PR with documentation, or we can leave this issue open until upstream finds a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants