[GH-ISSUE #1925] Ollama is running in background in MacOS #63145

Open
opened 2026-05-03 12:17:10 -05:00 by GiteaMirror · 19 comments
Owner

Originally created by @MagzhanUnited on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1925

Even if I exit the ollama app I can see the ollama among run processes

Originally created by @MagzhanUnited on GitHub (Jan 11, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1925 Even if I exit the ollama app I can see the ollama among run processes
GiteaMirror added the bug label 2026-05-03 12:17:10 -05:00
Author
Owner

@jmorganca commented on GitHub (Jan 11, 2024):

Hi @MagzhanUnited, sorry, that definitely shouldn't be the case. Will look into this

<!-- gh-comment-id:1887569911 --> @jmorganca commented on GitHub (Jan 11, 2024): Hi @MagzhanUnited, sorry, that definitely shouldn't be the case. Will look into this
Author
Owner

@MagzhanUnited commented on GitHub (Jan 12, 2024):

Hi @MagzhanUnited, sorry, that definitely shouldn't be the case. Will look into this

Thanks. I also couldn't kill process. Ollama always recreates a new process

<!-- gh-comment-id:1888892359 --> @MagzhanUnited commented on GitHub (Jan 12, 2024): > Hi @MagzhanUnited, sorry, that definitely shouldn't be the case. Will look into this Thanks. I also couldn't kill process. Ollama always recreates a new process
Author
Owner

@ramirosandoval commented on GitHub (Jan 15, 2024):

Happening to me at POP OS (ubuntu distro)

<!-- gh-comment-id:1892506775 --> @ramirosandoval commented on GitHub (Jan 15, 2024): Happening to me at POP OS (ubuntu distro)
Author
Owner

@maderix commented on GitHub (Jan 21, 2024):

for ubuntu atleast the way to stop ollama serve is "sudo systemctl stop ollama.service"

<!-- gh-comment-id:1902546089 --> @maderix commented on GitHub (Jan 21, 2024): for ubuntu atleast the way to stop ollama serve is "sudo systemctl stop ollama.service"
Author
Owner

@dhiltgen commented on GitHub (Jan 27, 2024):

@MagzhanUnited the behavior you describe makes it sound like the App is still running. Is it possible it's "hidden" by the camera notch on your laptop due to lots of other tray apps running? The CLI will auto-start the App on MacOS if it's not running, and the App in turn will start the server.

<!-- gh-comment-id:1912863700 --> @dhiltgen commented on GitHub (Jan 27, 2024): @MagzhanUnited the behavior you describe makes it sound like the App is still running. Is it possible it's "hidden" by the camera notch on your laptop due to lots of other tray apps running? The CLI will auto-start the App on MacOS if it's not running, and the App in turn will start the server.
Author
Owner

@rovo79 commented on GitHub (Feb 2, 2024):

I have not started Ollama in a while, and I don't have running but I still continue to see an Ollama process in the background:
image

<!-- gh-comment-id:1923717591 --> @rovo79 commented on GitHub (Feb 2, 2024): I have not started Ollama in a while, and I don't have running but I still continue to see an Ollama process in the background: <img width="734" alt="image" src="https://github.com/ollama/ollama/assets/117691/249e68cf-6488-4ed6-8aa9-190fa56b36a5">
Author
Owner

@dhiltgen commented on GitHub (Feb 2, 2024):

@rovo79 ollama is a client-server application, with a GUI component on MacOS. The server process is managed by the tray (menu bar) app. When you quit the app from the pull-down menu, it should stop the server process running in the background. If you try to run the CLI later, it detects the app isn't running, and will start it, which in turn starts the server.

<!-- gh-comment-id:1924722531 --> @dhiltgen commented on GitHub (Feb 2, 2024): @rovo79 ollama is a client-server application, with a GUI component on MacOS. The server process is managed by the tray (menu bar) app. When you quit the app from the pull-down menu, it should stop the server process running in the background. If you try to run the CLI later, it detects the app isn't running, and will start it, which in turn starts the server.
Author
Owner

@psylone commented on GitHub (Mar 28, 2024):

Also Ollama could be in the System Settings -> General -> Login Items: Open at Login section on macOS. It means that after restart Ollama app will start automatically.

<!-- gh-comment-id:2024443039 --> @psylone commented on GitHub (Mar 28, 2024): Also Ollama could be in the System Settings -> General -> Login Items: Open at Login section on macOS. It means that after restart Ollama app will start automatically.
Author
Owner

@markus-seidl commented on GitHub (Apr 1, 2024):

Every time I remove OLlama from the login items, it re-adds itself again. That's very annoying.

<!-- gh-comment-id:2029862916 --> @markus-seidl commented on GitHub (Apr 1, 2024): Every time I remove OLlama from the login items, it re-adds itself again. That's very annoying.
Author
Owner

@jmorganca commented on GitHub (May 10, 2024):

@markus-seidl that's definitely a bug – will look into this

<!-- gh-comment-id:2103669268 --> @jmorganca commented on GitHub (May 10, 2024): @markus-seidl that's definitely a bug – will look into this
Author
Owner

@oricoh commented on GitHub (Jun 30, 2024):

Any update on this? It still keeps re-adding itself to the login items

<!-- gh-comment-id:2198806358 --> @oricoh commented on GitHub (Jun 30, 2024): Any update on this? It still keeps re-adding itself to the login items
Author
Owner

@dhiltgen commented on GitHub (Jul 3, 2025):

This should be resolved in the latest version of the mac app. If you disable login support, it shouldn't reset it back now.

<!-- gh-comment-id:3033936510 --> @dhiltgen commented on GitHub (Jul 3, 2025): This should be resolved in the latest version of the mac app. If you disable login support, it shouldn't reset it back now.
Author
Owner

@j05hau commented on GitHub (Jul 28, 2025):

This is still a problem with the latest dmg.

I don't see the app in Open at Login settings

I can't uninstall, even with:

sudo rm /usr/local/bin/ollama
rm -rf "~/Library/Application Support/Ollama"
rm -rf "~/Library/Saved Application State/com.electron.ollama.savedState"
rm -rf ~/Library/Caches/com.electron.ollama/
rm -rf ~/Library/Caches/ollama
rm -rf ~/Library/WebKit/com.electron.ollama
rm -rf ~/.ollama

However it does show itself in the Allow in Background section

Moving the app to the bin from Applications doesn't delete it as it starts back up the next time macOS boots and asks to move Ollama to the Applications folder and to install the CLI. So something uninstalls but something clearly remains. The app must be in some temp folder and attempts to reinstall itself from some sort of linkage.

Pretty annoying, I am going to have to reset the mac over this.

<!-- gh-comment-id:3126053087 --> @j05hau commented on GitHub (Jul 28, 2025): This is still a problem with the latest dmg. I don't see the app in Open at Login settings I can't uninstall, even with: ```sudo rm -rf /Applications/Ollama.app sudo rm /usr/local/bin/ollama rm -rf "~/Library/Application Support/Ollama" rm -rf "~/Library/Saved Application State/com.electron.ollama.savedState" rm -rf ~/Library/Caches/com.electron.ollama/ rm -rf ~/Library/Caches/ollama rm -rf ~/Library/WebKit/com.electron.ollama rm -rf ~/.ollama ``` However it does show itself in the Allow in Background section Moving the app to the bin from Applications doesn't delete it as it starts back up the next time macOS boots and asks to move Ollama to the Applications folder and to install the CLI. So something uninstalls but something clearly remains. The app must be in some temp folder and attempts to reinstall itself from some sort of linkage. Pretty annoying, I am going to have to reset the mac over this.
Author
Owner

@j05hau commented on GitHub (Jul 29, 2025):

Figured it out - the deleted .app that was in the trash can resurrected itself after every reboot of macOS. That's a malware-tier bug. This ain't fixed!

source=app_darwin.go:215 msg="starting Ollama" app="/Users/username/.Trash/Ollama 6.14.32\u202fpm.app" version=0.9.6 OS=Darwin/24.5.0
<!-- gh-comment-id:3131488630 --> @j05hau commented on GitHub (Jul 29, 2025): Figured it out - the deleted .app **that was in the trash can** resurrected itself after every reboot of macOS. That's a malware-tier bug. This ain't fixed! ``` source=app_darwin.go:215 msg="starting Ollama" app="/Users/username/.Trash/Ollama 6.14.32\u202fpm.app" version=0.9.6 OS=Darwin/24.5.0 ```
Author
Owner

@jmorganca commented on GitHub (Jul 29, 2025):

@j05hau sorry you hit this. I can't reproduce this on the newest version of macOS (15.5) but will investigate older versions which may have this issue. Which version of macOS are you on?

<!-- gh-comment-id:3133047872 --> @jmorganca commented on GitHub (Jul 29, 2025): @j05hau sorry you hit this. I can't reproduce this on the newest version of macOS (15.5) but will investigate older versions which may have this issue. Which version of macOS are you on?
Author
Owner

@j05hau commented on GitHub (Aug 19, 2025):

@j05hau sorry you hit this. I can't reproduce this on the newest version of macOS (15.5) but will investigate older versions which may have this issue. Which version of macOS are you on?

Sorry for the delayed response, @jmorganca. I'm on the latest version, 15.6. I can't really give you repro steps unfortunately, because it just happened from the basic installation process. I'm having a couple problems with the app, it won't auto-update either, just sits there with 'restart to update' and when i click it nothing happens. Must have got a dud.

I believe that macOS doesn't have a check for apps in the trash and will just run them if they are called, pretty insane.

<!-- gh-comment-id:3199220048 --> @j05hau commented on GitHub (Aug 19, 2025): > [@j05hau](https://github.com/j05hau) sorry you hit this. I can't reproduce this on the newest version of macOS (15.5) but will investigate older versions which may have this issue. Which version of macOS are you on? Sorry for the delayed response, @jmorganca. I'm on the latest version, 15.6. I can't really give you repro steps unfortunately, because it just happened from the basic installation process. I'm having a couple problems with the app, it won't auto-update either, just sits there with 'restart to update' and when i click it nothing happens. Must have got a dud. I believe that macOS doesn't have a check for apps in the trash and will just run them if they are called, pretty insane.
Author
Owner

@Kyvrel commented on GitHub (Aug 23, 2025):

+1, I deleted the "open at login" items, but it still starts up when I boot up.

<!-- gh-comment-id:3216675495 --> @Kyvrel commented on GitHub (Aug 23, 2025): +1, I deleted the "open at login" items, but it still starts up when I boot up.
Author
Owner

@ChristopherSchultz commented on GitHub (Aug 24, 2025):

I was a bit confused by the behavior as well. When run run the Ollama application, it also runs what looks like a helper application which appears in the menu bar extras (over by the WiFi and stuff). When you quit the main application, that helper app continues to run. If you quit both the main application and then quit the helper application, the background web server process does stop.

I'm not happy with how this worked and I was ready to scorch the earth. I may still do so, because this is really not an okay for an application to behave.

<!-- gh-comment-id:3218283327 --> @ChristopherSchultz commented on GitHub (Aug 24, 2025): I was a bit confused by the behavior as well. When run run the Ollama application, it also runs what looks like a helper application which appears in the menu bar extras (over by the WiFi and stuff). When you quit the main application, that helper app continues to run. If you quit both the main application *and then* quit the helper application, the background web server process does stop. I'm not happy with how this worked and I was ready to scorch the earth. I may still do so, because this is really not an okay for an application to behave.
Author
Owner

@Qhilm commented on GitHub (Apr 21, 2026):

Same here on macOS 26.4.1. Opening ollama.app or running "ollama" in the terminal will launch a bunch of ollama processes which are not terminated when exiting. I can exit any process containing "ollama" using the activity monitor, but that is not really optimal.

<!-- gh-comment-id:4285896864 --> @Qhilm commented on GitHub (Apr 21, 2026): Same here on macOS 26.4.1. Opening ollama.app or running "ollama" in the terminal will launch a bunch of ollama processes which are not terminated when exiting. I can exit any process containing "ollama" using the activity monitor, but that is not really optimal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63145