I have read and followed all the instructions provided in the README.md.
I am on the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Originally created by @choigawoon on GitHub (Apr 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1502
# Bug Report
## Description
webui cannot access to ollama api.
this is my docker compose file.
```yaml
version: "3.8"
services:
# app:
# build: .
# ports:
# - 8000:8000
# - 5678:5678
# volumes:
# - .:/code
# command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
# restart: always
# depends_on:
# - ollama
# - ollama-webui
# networks:
# - ollama-docker
ollama:
volumes:
- ./ollama/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ports:
- 7869:11434
networks:
- ollama-docker
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ollama-webui:
image: ghcr.io/ollama-webui/ollama-webui:main
container_name: ollama-webui
volumes:
- ./ollama/ollama-webui:/app/backend/data
depends_on:
- ollama
ports:
- 3004:8080
environment:
- "/ollama/api=http://ollama:7869/api"
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
networks:
- ollama-docker
networks:
ollama-docker:
external: false
```
**Bug Summary:**
[Provide a brief but clear summary of the bug]
**Steps to Reproduce:**
[Outline the steps to reproduce the bug. Be as detailed as possible.]
**Expected Behavior:**
[Describe what you expected to happen.]
when changing expose port, it link with it.
**Actual Behavior:**
[Describe what actually happened.]
## Environment
- **Operating System:** [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]
- **Browser (if applicable):** [e.g., Chrome 100.0, Firefox 98.0]
wsl2 Ubuntu 22.04
## Reproduction Details
**Confirmation:**
- [ ] I have read and followed all the instructions provided in the README.md.
- [ ] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [ ] I have included the Docker container logs.
## Logs and Screenshots
**Browser Console Logs:**
[Include relevant browser console logs, if applicable]
**Docker Container Logs:**
[Include relevant Docker container logs, if applicable]
**Screenshots (if applicable):**
[Attach any relevant screenshots to help illustrate the issue]
## Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
## Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
## Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
I think a few issues are colliding together here. The OLLAMA_BASE_URL should just be http://ollama:11434 because the ollama container will not be reachable from port 7869 from the open-webui container.
Also the /api at the end of the URLs indicates an outdated open-webui. What version of both are actually running? Try doing a docker compose pull before starting the two to make sure you're up-to-date.
<!-- gh-comment-id:2049154463 -->
@slash-proc commented on GitHub (Apr 11, 2024):
I think a few issues are colliding together here. The OLLAMA_BASE_URL should just be `http://ollama:11434` because the ollama container will not be reachable from port 7869 from the open-webui container.
Also the /api at the end of the URLs indicates an outdated open-webui. What version of both are actually running? Try doing a docker compose pull before starting the two to make sure you're up-to-date.
<!-- gh-comment-id:2049737472 -->
@choigawoon commented on GitHub (Apr 11, 2024):
i used the repo was https://github.com/valiantlynx/ollama-docker.
now i use the docker compose file in this repo, and have some fix. it worked now! thanks a lot!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @choigawoon on GitHub (Apr 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1502
Bug Report
Description
webui cannot access to ollama api.
this is my docker compose file.
Bug Summary:
[Provide a brief but clear summary of the bug]
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Expected Behavior:
[Describe what you expected to happen.]
when changing expose port, it link with it.
Actual Behavior:
[Describe what actually happened.]
Environment
wsl2 Ubuntu 22.04
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@ghost commented on GitHub (Apr 11, 2024):
Hi,
Your environment looks incorrect, see:
https://github.com/open-webui/open-webui/blob/0399a69b73de9789c4221acedea70d528e1346c4/docker-compose.yaml#L27-L29
Try something like
- 'OLLAMA_BASE_URL=http://ollama:7869'@slash-proc commented on GitHub (Apr 11, 2024):
I think a few issues are colliding together here. The OLLAMA_BASE_URL should just be
http://ollama:11434because the ollama container will not be reachable from port 7869 from the open-webui container.Also the /api at the end of the URLs indicates an outdated open-webui. What version of both are actually running? Try doing a docker compose pull before starting the two to make sure you're up-to-date.
@choigawoon commented on GitHub (Apr 11, 2024):
i used the repo was https://github.com/valiantlynx/ollama-docker.
now i use the docker compose file in this repo, and have some fix. it worked now! thanks a lot!