[GH-ISSUE #3965] Serving Ollama behind a corporate proxy - Not working in Mac M3 #2453

Closed
opened 2026-04-12 12:46:44 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nagarjunr on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3965

What is the issue?

Encountered an error while running ollama behind corporate proxy.

Error:
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/gemma/manifests/2b": dial tcp: lookup registry.ollama.ai: no such host

Tried https://github.com/ollama/ollama/issues/729, But it is not working in Mac M3.

PS: I installed ollam using homebrew. So applied the solution mentioned in #729 in the file "sudo nano /opt/homebrew/opt/ollama/homebrew.ollama.service"

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.1.32

Originally created by @nagarjunr on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3965 ### What is the issue? Encountered an error while running ollama behind corporate proxy. Error: pulling manifest Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/gemma/manifests/2b": dial tcp: lookup registry.ollama.ai: no such host Tried https://github.com/ollama/ollama/issues/729, But it is not working in Mac M3. PS: I installed ollam using homebrew. So applied the solution mentioned in #729 in the file "sudo nano /opt/homebrew/opt/ollama/homebrew.ollama.service" ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.1.32
GiteaMirror added the bug label 2026-04-12 12:46:44 -05:00
Author
Owner

@nagarjunr commented on GitHub (Apr 28, 2024):

Update:
Tried How do I use Ollama behind a proxy?. Set both the HTTP_PROXY and HTTPS_PROXY environment variables and installed proxy certificate as a system certificate. But it was not working.

Finally able to get it working by setting the environment variable in the context of terminal used by ollama using the following commands:
launchctl setenv HTTP_PROXY "<PROXY_SERVER_ADDRESS>"
launchctl setenv HTTPS_PROXY "<PROXY_SERVER_ADDRESS>"
Then restart the ollama service (brew services restart ollama)

<!-- gh-comment-id:2081330212 --> @nagarjunr commented on GitHub (Apr 28, 2024): Update: Tried [How do I use Ollama behind a proxy?](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-use-ollama-behind-a-proxy). Set both the HTTP_PROXY and HTTPS_PROXY environment variables and installed proxy certificate as a system certificate. But it was not working. Finally able to get it working by setting the environment variable in the context of terminal used by ollama using the following commands: launchctl setenv HTTP_PROXY "<PROXY_SERVER_ADDRESS>" launchctl setenv HTTPS_PROXY "<PROXY_SERVER_ADDRESS>" Then restart the ollama service (brew services restart ollama)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2453