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
MacOS Ollama not binding to 0.0.0.0 #3581
Comments
Do you see this in your log?
|
I don't! `❯ cat ~/.ollama/logs/server.log | grep -i listening ~ I did the launchctl setenv thing, and I see the OLLAMA_HOST in any given terminal, but apart from that Ollama does not seem to care... |
restarted the server after running |
Restarted the server and restarted my Mac. |
@kellerkind84 is this working now? It's covered in the FAQ. As @dims mentioned, just:
Make sure you're looking in the last log file for step 4. |
What? Why would it be working now? I clearly stated twice that I did both steps and it does not work? Did you change something? |
@kellerkind84 no, it was unclear from your message. I just tried the steps and it works fine, so I'm having problems reproducing what you're seeing. What version of MacOS are you using? |
@kellerkind84 But explicitly setting variable using 'set OLLAMA_HOST=0.0.0.0:8080' and then ollama serve works properly |
Yeah that should not have happened. But these lines are a starting point to find out what is wrong... my default shell is not exactly standard. So I'll test from the command line, maybe I'll get some helpful output. On Monday, though. |
Alright, I had another look, fixed an error on my shell loading and even switched back to zsh. However, still not working when I start via the "app". That said, simply running "ollama serve" works. Don't have to set the environment variable or anything. It's an interesting workaround and working for now, but something does not work as expected here either way. |
I had the same issue. My setup is ollama installed via homebrew on m1 mac mini. What seems to have worked for me is to update environment variable in: Steps I took that resolved issue:
Add the environment variable lines in plist format:
On checking the open ports again it's now listed as desired |
Thanks for the Tipp! I actually installed via download, but I might make the switch to homebrew. I was not even aware that ollama was available via homebrew. |
Yeah that did the trick, thanks! |
In my own experience, |
I'm going to go ahead and close this since there is a workaround. There are some changes coming for the mac version which will let you set this through a setting by clicking on the tray icon which should make everything a lot easier. |
There are two ollamas in brew, only the cask version has the menu icon(tray). |
What is the issue?
So when set the OLLAMA_HOST to 0.0.0.0, I cannot access Ollama via the IP, but I can still access it via localhost.
What did you expect to see?
I expect it to be available under :11434
Steps to reproduce
No response
Are there any recent changes that introduced the issue?
No response
OS
macOS
Architecture
arm64
Platform
No response
Ollama version
0.1.31
GPU
Apple
GPU info
No response
CPU
Apple
Other software
No response
The text was updated successfully, but these errors were encountered: