[GH-ISSUE #7726] Proxy does not work for ollama, but does work for curl #4932

Closed
opened 2026-04-12 15:59:38 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @lk-1984 on GitHub (Nov 18, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7726

What is the issue?

Ollama does not work with the HTTPS_PROXY

foo@FOOBAR ~ % ollama pull llama3.2                                                     
pulling manifest 
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llama3.2/manifests/latest": dial tcp 104.21.75.227:443: i/o timeout

Curl works in same terminal with the same HTTPS_PROXY value.

foobar@FOOBAR~ % curl https://registry.ollama.ai/v2/library/llama3.2/manifests/latest
{"schemaVersion":2,"mediaType":"application/vnd.docker.distribution.manifest.v2+json","config":{"digest":"sha256:34bb5ab01051a11372a91f95f3fbbc51173eed8e7f13ec395b9ae9b8bd0e242b","mediaType":"application/vnd.docker.container.image.v1+json","size":561},"layers":[{"digest":"sha256:dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff","mediaType":"application/vnd.ollama.image.model","size":2019377376},{"digest":"sha256:966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396","mediaType":"application/vnd.ollama.image.template","size":1429},{"digest":"sha256:fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d","mediaType":"application/vnd.ollama.image.license","size":7711},{"digest":"sha256:a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd","mediaType":"application/vnd.ollama.image.license","size":6016},{"digest":"sha256:56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb","mediaType":"application/vnd.ollama.image.params","size":96}]}

Note: the company proxy starts with "http://" even for HTTPS_PROXY..

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.4.2

Originally created by @lk-1984 on GitHub (Nov 18, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7726 ### What is the issue? Ollama does not work with the HTTPS_PROXY ``` foo@FOOBAR ~ % ollama pull llama3.2 pulling manifest Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llama3.2/manifests/latest": dial tcp 104.21.75.227:443: i/o timeout ``` Curl works in same terminal with the same HTTPS_PROXY value. ``` foobar@FOOBAR~ % curl https://registry.ollama.ai/v2/library/llama3.2/manifests/latest {"schemaVersion":2,"mediaType":"application/vnd.docker.distribution.manifest.v2+json","config":{"digest":"sha256:34bb5ab01051a11372a91f95f3fbbc51173eed8e7f13ec395b9ae9b8bd0e242b","mediaType":"application/vnd.docker.container.image.v1+json","size":561},"layers":[{"digest":"sha256:dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff","mediaType":"application/vnd.ollama.image.model","size":2019377376},{"digest":"sha256:966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396","mediaType":"application/vnd.ollama.image.template","size":1429},{"digest":"sha256:fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d","mediaType":"application/vnd.ollama.image.license","size":7711},{"digest":"sha256:a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd","mediaType":"application/vnd.ollama.image.license","size":6016},{"digest":"sha256:56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb","mediaType":"application/vnd.ollama.image.params","size":96}]} ``` Note: the company proxy starts with "http://" even for HTTPS_PROXY.. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.4.2
GiteaMirror added the bug label 2026-04-12 15:59:38 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 18, 2024):

You need to set HTTP(S)_PROXY in the server environment.

<!-- gh-comment-id:2482941809 --> @rick-github commented on GitHub (Nov 18, 2024): You need to set HTTP(S)_PROXY in the [server environment](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server).
Author
Owner

@lk-1984 commented on GitHub (Nov 18, 2024):

You need to set HTTP(S)_PROXY in the server environment.

Yes, you are correct. I updated the service in Mac, and restarted. It works. Stupid user exception.

<!-- gh-comment-id:2483000948 --> @lk-1984 commented on GitHub (Nov 18, 2024): > You need to set HTTP(S)_PROXY in the [server environment](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server). Yes, you are correct. I updated the service in Mac, and restarted. It works. Stupid user exception.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4932