[GH-ISSUE #7788] Ollama 0.4.3 ignores HTTPS_PROXY #4975

Closed
opened 2026-04-12 16:02:12 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @0xmeyer on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7788

What is the issue?

Since Ollama 0.4.3 the environment variable HTTPS_RPOXY is ignored. My old deployment ran with Ollama 0.4.1 without any problems.

Should be reproducible:

$ export HTTPS_PROXY=http://<PROXY>:3128
$ ollama -v
Warning: could not connect to a running Ollama instance
Warning: client version is 0.4.3
$ ollama-0.4.1 -v
Warning: could not connect to a running Ollama instance
Warning: client version is 0.4.1

$ ollama serve &> /tmp/ollama-0.4.3.log &
$ ollama pull llama3.2
pulling manifest ⠦

# kill ollama instance and use v0.4.1
kill %1

ollama-0.4.1 serve &> /tmp/ollama-0.4.1.log &
$ ollama pull llama3.2
pulling manifest 
pulling dde5aa3fc5ff... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB                         
pulling 966de95ca8a6... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB                         
pulling fcc5a6bec9da... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB                         
pulling a70ff7e570d9... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████���███████████████████████████████████████████▏ 6.0 KB                         
pulling 56bb8bd477a5... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   96 B                         
pulling 34bb5ab01051... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  561 B                         
verifying sha256 digest 
writing manifest 
success 

OS

Linux

GPU

Nvidia

CPU

No response

Ollama version

0.4.3

Originally created by @0xmeyer on GitHub (Nov 22, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7788 ### What is the issue? Since Ollama `0.4.3` the environment variable `HTTPS_RPOXY` is ignored. My old deployment ran with Ollama `0.4.1` without any problems. Should be reproducible: ```bash $ export HTTPS_PROXY=http://<PROXY>:3128 $ ollama -v Warning: could not connect to a running Ollama instance Warning: client version is 0.4.3 $ ollama-0.4.1 -v Warning: could not connect to a running Ollama instance Warning: client version is 0.4.1 $ ollama serve &> /tmp/ollama-0.4.3.log & $ ollama pull llama3.2 pulling manifest ⠦ # kill ollama instance and use v0.4.1 kill %1 ollama-0.4.1 serve &> /tmp/ollama-0.4.1.log & $ ollama pull llama3.2 pulling manifest pulling dde5aa3fc5ff... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB pulling 966de95ca8a6... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB pulling fcc5a6bec9da... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB pulling a70ff7e570d9... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████���███████████████████████████████████████████▏ 6.0 KB pulling 56bb8bd477a5... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 96 B pulling 34bb5ab01051... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 561 B verifying sha256 digest writing manifest success ``` ### OS Linux ### GPU Nvidia ### CPU _No response_ ### Ollama version 0.4.3
GiteaMirror added the bug label 2026-04-12 16:02:12 -05:00
Author
Owner

@0xmeyer commented on GitHub (Nov 22, 2024):

HTTPS_PROXY works in 0.4.2 aswell:

$ ollama -v
Warning: could not connect to a running Ollama instance
Warning: client version is 0.4.2

$ ollama serve &> /tmp/ollama-0.4.2.log &
$ ollama pull llama3.2
pulling manifest 
pulling dde5aa3fc5ff... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB                         
pulling 966de95ca8a6... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB                         
pulling fcc5a6bec9da... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB                         
pulling a70ff7e570d9... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 6.0 KB                         
pulling 56bb8bd477a5... 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████���████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   96 B                         
pulling 34bb5ab01051... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  561 B                         
verifying sha256 digest 
writing manifest 
success
<!-- gh-comment-id:2492957413 --> @0xmeyer commented on GitHub (Nov 22, 2024): `HTTPS_PROXY` works in `0.4.2` aswell: ```bash $ ollama -v Warning: could not connect to a running Ollama instance Warning: client version is 0.4.2 $ ollama serve &> /tmp/ollama-0.4.2.log & $ ollama pull llama3.2 pulling manifest pulling dde5aa3fc5ff... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB pulling 966de95ca8a6... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB pulling fcc5a6bec9da... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB pulling a70ff7e570d9... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 6.0 KB pulling 56bb8bd477a5... 100% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████���████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 96 B pulling 34bb5ab01051... 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 561 B verifying sha256 digest writing manifest success ```
Author
Owner

@mbbyn commented on GitHub (Nov 25, 2024):

Seeing this issue on 0.4.4 as well, blocked our use for Ollama within corporate environment, unfortunately.

<!-- gh-comment-id:2496853776 --> @mbbyn commented on GitHub (Nov 25, 2024): Seeing this issue on 0.4.4 as well, blocked our use for Ollama within corporate environment, unfortunately.
Author
Owner

@Mazyod commented on GitHub (Nov 25, 2024):

To be more specific, I see the issue is adding a new network call that ignore proxy settings, which leads to an early failure, rather than the proxy settings being ignore from the whole application.

<!-- gh-comment-id:2496966224 --> @Mazyod commented on GitHub (Nov 25, 2024): To be more specific, I see the issue is adding a new network call that ignore proxy settings, which leads to an early failure, rather than the proxy settings being ignore from the whole application.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4975