[GH-ISSUE #424] Error: Head "http://localhost:11434/": dial tcp: lookup localhost: no such host #195

Closed
opened 2026-04-12 09:43:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @DreamDevourer on GitHub (Aug 26, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/424

This is very odd, but after updating to the latest v0.0.16, this error started showing when I use ollama. For example,if I try to run a simple "ollama list" this shows up:

Error: Head "http://localhost:11434/": dial tcp: lookup localhost: no such host

I've cleaned any DNS traces, hosts file is untouched and there are no firewall conflicts.

What could be causing this issue? Is it only happening on my end?

Originally created by @DreamDevourer on GitHub (Aug 26, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/424 This is very odd, but after updating to the latest v0.0.16, this error started showing when I use ollama. For example,if I try to run a simple "ollama list" this shows up: Error: Head "http://localhost:11434/": dial tcp: lookup localhost: no such host I've cleaned any DNS traces, hosts file is untouched and there are no firewall conflicts. What could be causing this issue? Is it only happening on my end?
Author
Owner

@jmorganca commented on GitHub (Aug 26, 2023):

Hi @DreamDevourer sorry you hit this error, and thanks for creating an issue. We'll work on fixing this in the next update. In the meantime if possible make sure your /etc/hosts file has an entry like:

127.0.0.1       localhost
<!-- gh-comment-id:1694482136 --> @jmorganca commented on GitHub (Aug 26, 2023): Hi @DreamDevourer sorry you hit this error, and thanks for creating an issue. We'll work on fixing this in the next update. In the meantime if possible make sure your `/etc/hosts` file has an entry like: ``` 127.0.0.1 localhost ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#195