Install clobbers /etc/systemd/system/ollama.service file destroying any custom configurations like specifying IP or PORT being served or preventing cors errors #53

Closed
opened 2025-11-11 14:03:23 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Dougie777 on GitHub (Nov 24, 2023).

Describe the bug
A clear and concise description of what the bug is.

Upgrading to the latest version clobbers my /etc/systemd/system/ollama.service file. If the file exists it should not be overwritten. Or the distro should only include a sample file like so /etc/systemd/system/ollama.service.sample

To Reproduce
Steps to reproduce the behavior:

1 Install ollama-webui as a service
2 Customize /etc/systemd/system/ollama.service like adding:
Environment=OLLAMA_HOST=0.0.0.0
Environment=OLLAMA_ORIGINS=*
3 Upgrade to the latest ollama-webui version

Expected behavior
A clear and concise description of what you expected to happen.
/etc/systemd/system/ollama.service is overwritten, destroying any customizations to this file.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
    ubuntu - but applies to all

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Originally created by @Dougie777 on GitHub (Nov 24, 2023). **Describe the bug** A clear and concise description of what the bug is. Upgrading to the latest version clobbers my /etc/systemd/system/ollama.service file. If the file exists it should not be overwritten. Or the distro should only include a sample file like so /etc/systemd/system/ollama.service.sample **To Reproduce** Steps to reproduce the behavior: 1 Install ollama-webui as a service 2 Customize /etc/systemd/system/ollama.service like adding: Environment=OLLAMA_HOST=0.0.0.0 Environment=OLLAMA_ORIGINS=* 3 Upgrade to the latest ollama-webui version **Expected behavior** A clear and concise description of what you expected to happen. /etc/systemd/system/ollama.service is overwritten, destroying any customizations to this file. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] ubuntu - but applies to all **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
Author
Owner

@tjbck commented on GitHub (Nov 24, 2023):

Hi, Could you tell us how exactly you installed/upgraded the web ui? I'll close this issue for now, as the WebUI does not contain any code that edit any system service files. Keep us updated, Thanks!

@tjbck commented on GitHub (Nov 24, 2023): Hi, Could you tell us how exactly you installed/upgraded the web ui? I'll close this issue for now, as the WebUI does not contain any code that edit any system service files. Keep us updated, Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#53