Originally created by @ElderMedic on GitHub (Mar 26, 2024).
Bug Report
Description
Error during docker compose build, file at RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - is not available. But I can download it with wget.
Bug Summary:
Steps to Reproduce:
~/Playground/open-webui$ docker compose -f docker-compose.yaml -f docker-compose.gpu.yaml up -d --build
WARN[0000] /home/WUR/ke003/Playground/open-webui/docker-compose.yaml: `version` is obsolete
WARN[0000] /home/WUR/ke003/Playground/open-webui/docker-compose.gpu.yaml: `version` is obsolete
[+] Running 1/1
✔ ollama Pulled 1.3s
[+] Building 3.4s (14/29) docker:default
=> [open-webui internal] load .dockerignore 0.0s
=> => transferring context: 239B 0.0s
=> [open-webui internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.19kB 0.0s
=> [open-webui] resolve image config for docker.io/docker/dockerfile:1 0.4s
=> CACHED [open-webui] docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be00 0.0s
=> [open-webui internal] load metadata for docker.io/library/python:3.11-slim-bookworm 0.5s
=> [open-webui internal] load metadata for docker.io/library/node:alpine 0.4s
=> [open-webui internal] load build context 0.0s
=> => transferring context: 16.58kB 0.0s
=> [open-webui base 1/15] FROM docker.io/library/python:3.11-slim-bookworm@sha256:90f8795536170fd08236d2ceb74fe7065dbf74f738d8b84bfbf263 0.0s
=> [open-webui build 1/7] FROM docker.io/library/node:alpine@sha256:577f8eb599858005100d84ef3fb6bd6582c1b6b17877a393cdae4bfc9935f068 0.0s
=> CACHED [open-webui build 2/7] WORKDIR /app 0.0s
=> ERROR [open-webui build 3/7] RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - 2.3s
=> CACHED [open-webui base 2/15] WORKDIR /app/backend 0.0s
=> CACHED [open-webui base 3/15] COPY ./backend/requirements.txt ./requirements.txt 0.0s
=> CANCELED [open-webui base 4/15] RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y 2.3s
------
> [open-webui build 3/7] RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - -C /app:
2.295 wget: bad address 'chroma-onnx-models.s3.amazonaws.com'
2.296 tar: invalid magic
2.296 tar: short read
------
failed to solve: process "/bin/sh -c wget \"https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz\" -O - | tar -xzf - -C /app" did not complete successfully: exit code: 1
Originally created by @ElderMedic on GitHub (Mar 26, 2024).
# Bug Report
## Description
Error during docker compose build, file at `RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - ` is not available. But I can download it with wget.
**Bug Summary:**
**Steps to Reproduce:**
```bash
~/Playground/open-webui$ docker compose -f docker-compose.yaml -f docker-compose.gpu.yaml up -d --build
WARN[0000] /home/WUR/ke003/Playground/open-webui/docker-compose.yaml: `version` is obsolete
WARN[0000] /home/WUR/ke003/Playground/open-webui/docker-compose.gpu.yaml: `version` is obsolete
[+] Running 1/1
✔ ollama Pulled 1.3s
[+] Building 3.4s (14/29) docker:default
=> [open-webui internal] load .dockerignore 0.0s
=> => transferring context: 239B 0.0s
=> [open-webui internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.19kB 0.0s
=> [open-webui] resolve image config for docker.io/docker/dockerfile:1 0.4s
=> CACHED [open-webui] docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be00 0.0s
=> [open-webui internal] load metadata for docker.io/library/python:3.11-slim-bookworm 0.5s
=> [open-webui internal] load metadata for docker.io/library/node:alpine 0.4s
=> [open-webui internal] load build context 0.0s
=> => transferring context: 16.58kB 0.0s
=> [open-webui base 1/15] FROM docker.io/library/python:3.11-slim-bookworm@sha256:90f8795536170fd08236d2ceb74fe7065dbf74f738d8b84bfbf263 0.0s
=> [open-webui build 1/7] FROM docker.io/library/node:alpine@sha256:577f8eb599858005100d84ef3fb6bd6582c1b6b17877a393cdae4bfc9935f068 0.0s
=> CACHED [open-webui build 2/7] WORKDIR /app 0.0s
=> ERROR [open-webui build 3/7] RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - 2.3s
=> CACHED [open-webui base 2/15] WORKDIR /app/backend 0.0s
=> CACHED [open-webui base 3/15] COPY ./backend/requirements.txt ./requirements.txt 0.0s
=> CANCELED [open-webui base 4/15] RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y 2.3s
------
> [open-webui build 3/7] RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf - -C /app:
2.295 wget: bad address 'chroma-onnx-models.s3.amazonaws.com'
2.296 tar: invalid magic
2.296 tar: short read
------
failed to solve: process "/bin/sh -c wget \"https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz\" -O - | tar -xzf - -C /app" did not complete successfully: exit code: 1
```
## Environment
- **Operating System:** Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-97-generic x86_64)
## Reproduction Details
**Confirmation:**
- [ x ] I have read and followed all the instructions provided in the README.md.
- [ x ] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [ x ] I have included the Docker container logs.
## Installation Method
docker compose with gpu support
## Additional Information
But when I try to download the file in question with wget there's no issue:
```bash
:~/Playground/open-webui$ wget https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz
--2024-03-26 14:21:45-- https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz
Resolving chroma-onnx-models.s3.amazonaws.com (chroma-onnx-models.s3.amazonaws.com), ...
Connecting to chroma-onnx-models.s3.amazonaws.com (chroma-onnx-models.s3.amazonaws.com)|52.216.88.83|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83178821 (79M) [application/x-gzip]
Saving to: ‘onnx.tar.gz’
onnx.tar.gz 100%[===================================================================>] 79.33M 24.6MB/s in 3.2s
2024-03-26 14:21:49 (24.6 MB/s) - ‘onnx.tar.gz’ saved [83178821/83178821]
```
docker compose works as expected for me under a Ubuntu 22.04 Desktop VM using the debian package version (didn't try the snap version). According to your output:
2.295 wget: bad address 'chroma-onnx-models.s3.amazonaws.com'
@ghost commented on GitHub (Mar 26, 2024):
`docker compose` works as expected for me under a Ubuntu 22.04 Desktop VM using the debian package version (didn't try the snap version). According to your output:
> 2.295 wget: bad address 'chroma-onnx-models.s3.amazonaws.com'
This seems to indicate a hostname resolution problem likely related to your DNS configuration. By default Docker attempts to use the host DNS configuration but if you're running in an environment that executes Docker within a VM, that VM configuration needs to be working. See: https://docs.docker.com/network/#dns-services & https://docs.docker.com/compose/compose-file/05-services/#dns
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 @ElderMedic on GitHub (Mar 26, 2024).
Bug Report
Description
Error during docker compose build, file at
RUN wget "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz" -O - | tar -xzf -is not available. But I can download it with wget.Bug Summary:
Steps to Reproduce:
Environment
Reproduction Details
Confirmation:
Installation Method
docker compose with gpu support
Additional Information
But when I try to download the file in question with wget there's no issue:
@ghost commented on GitHub (Mar 26, 2024):
docker composeworks as expected for me under a Ubuntu 22.04 Desktop VM using the debian package version (didn't try the snap version). According to your output:This seems to indicate a hostname resolution problem likely related to your DNS configuration. By default Docker attempts to use the host DNS configuration but if you're running in an environment that executes Docker within a VM, that VM configuration needs to be working. See: https://docs.docker.com/network/#dns-services & https://docs.docker.com/compose/compose-file/05-services/#dns