Skip to content
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

Docker build issue #54

Open
LiuZHarvey opened this issue Apr 14, 2024 · 1 comment
Open

Docker build issue #54

LiuZHarvey opened this issue Apr 14, 2024 · 1 comment

Comments

@LiuZHarvey
Copy link

`HarveydeMac-mini:backend liuzhanheng$ docker build . -t wandb/openui --load
[+] Building 220.1s (11/15) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 665B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 341B 0.0s
=> [internal] load metadata for docker.io/library/python:3.12-slim-bookworm 6.7s
=> [internal] load metadata for docker.io/library/python:3.12-bookworm 6.1s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [build-venv 1/4] FROM docker.io/library/python:3.12-bookworm@sha256:c6751fa575260522ca11fbad88394e12cbe31d0d8951d3d29301192745a09aab 186.8s
=> => resolve docker.io/library/python:3.12-bookworm@sha256:c6751fa575260522ca11fbad88394e12cbe31d0d8951d3d29301192745a09aab 0.0s
=> => sha256:1e92f3a395ff98a929e797a3c392bb6d0f05531068d34b81d3cd41ed6ce82ca4 49.60MB / 49.60MB 75.5s
=> => sha256:421c44fab18bc9f4c62ca481e074d50b3a036e7c95c7607b6d036c34d67c5264 63.99MB / 63.99MB 58.3s
=> => sha256:18ba2f0e30767e776ab7dd7056c8342b301fa148a6121d3e044b68c95d43a3fe 7.11kB / 7.11kB 0.0s
=> => sha256:374850c6db1702573c7004d630027931be318b2d71cb28e890e2fcd0f0730712 23.58MB / 23.58MB 19.8s
=> => sha256:c6751fa575260522ca11fbad88394e12cbe31d0d8951d3d29301192745a09aab 1.65kB / 1.65kB 0.0s
=> => sha256:1b43f83fd0fbecda5f733fd91d8f14a58649831cad94144e58cdcd6229d603e1 2.01kB / 2.01kB 0.0s
=> => sha256:b9717a38adec9939307bba3151627c24c2bbac069b221c2fcb0500a40f2736ec 202.54MB / 202.54MB 175.9s
=> => sha256:51795e508cf7cc0fd50df0d1abf30e0e99cc3b9d8c35df081e8c642026675d79 6.47MB / 6.47MB 64.5s
=> => sha256:bc54e015d093dbbb737406a0b0435c74686b53c0a66562dc5a6f30eff80672ee 22.21MB / 22.21MB 87.0s
=> => sha256:3822d8fd74911d66b2022e5bbeb89912c8607001c209cb6df58d6cd84a7b07a0 241B / 241B 76.2s
=> => extracting sha256:1e92f3a395ff98a929e797a3c392bb6d0f05531068d34b81d3cd41ed6ce82ca4 2.7s
=> => sha256:4fc85492ad0c89cc848b998232abbd11e3a39af28fd0278ff52e94dd48b60066 2.70MB / 2.70MB 84.9s
=> => extracting sha256:374850c6db1702573c7004d630027931be318b2d71cb28e890e2fcd0f0730712 0.6s
=> => extracting sha256:421c44fab18bc9f4c62ca481e074d50b3a036e7c95c7607b6d036c34d67c5264 3.6s
=> => extracting sha256:b9717a38adec9939307bba3151627c24c2bbac069b221c2fcb0500a40f2736ec 8.9s
=> => extracting sha256:51795e508cf7cc0fd50df0d1abf30e0e99cc3b9d8c35df081e8c642026675d79 0.3s
=> => extracting sha256:bc54e015d093dbbb737406a0b0435c74686b53c0a66562dc5a6f30eff80672ee 0.8s
=> => extracting sha256:3822d8fd74911d66b2022e5bbeb89912c8607001c209cb6df58d6cd84a7b07a0 0.0s
=> => extracting sha256:4fc85492ad0c89cc848b998232abbd11e3a39af28fd0278ff52e94dd48b60066 0.3s
=> [internal] load build context 0.2s
=> => transferring context: 5.89MB 0.2s
=> [stage-1 1/5] FROM docker.io/library/python:3.12-slim-bookworm@sha256:541d45d3d675fb8197f534525a671e2f8d66c882b89491f9dda271f4f94dcd06 115.1s
=> => resolve docker.io/library/python:3.12-slim-bookworm@sha256:541d45d3d675fb8197f534525a671e2f8d66c882b89491f9dda271f4f94dcd06 0.0s
=> => sha256:541d45d3d675fb8197f534525a671e2f8d66c882b89491f9dda271f4f94dcd06 1.65kB / 1.65kB 0.0s
=> => sha256:adc28c815e882c31ef06e3b07ce6c9c41bcdbe5f668e9a90802ac45eefc32fa2 1.37kB / 1.37kB 0.0s
=> => sha256:88715cf61dda81f2d61e83f95b86e214cbe6dd3dc2e27973ea8f9e82655262c4 6.71kB / 6.71kB 0.0s
=> => sha256:26070551e657534bdf420d43107e85b972b2e8c212413bbbe5d192bd2692c0a7 29.16MB / 29.16MB 101.8s
=> => sha256:a86293a104aeca8f0afb101ae802e777d5020922c574ef074747ebc96aeec384 3.32MB / 3.32MB 90.7s
=> => sha256:72bc35340845159b1762891d9efea6f4e92fd4842b7cf154d7d5b1c7518bc1ca 11.97MB / 11.97MB 113.7s
=> => sha256:14d203a4c9c5ff9ee39859b21efb7f608567632041ace6d8d7e273ecf9a07431 243B / 243B 102.2s
=> => extracting sha256:26070551e657534bdf420d43107e85b972b2e8c212413bbbe5d192bd2692c0a7 2.6s
=> => sha256:09f0810bb7220112ae91a6b2ed302b42b1bad3f4aac64ac40ea9b35d5749aa0d 2.98MB / 2.98MB 103.6s
=> => extracting sha256:a86293a104aeca8f0afb101ae802e777d5020922c574ef074747ebc96aeec384 0.2s
=> => extracting sha256:72bc35340845159b1762891d9efea6f4e92fd4842b7cf154d7d5b1c7518bc1ca 0.6s
=> => extracting sha256:14d203a4c9c5ff9ee39859b21efb7f608567632041ace6d8d7e273ecf9a07431 0.0s
=> => extracting sha256:09f0810bb7220112ae91a6b2ed302b42b1bad3f4aac64ac40ea9b35d5749aa0d 0.5s
=> [build-venv 2/4] COPY pyproject.toml /build/pyproject.toml 0.8s
=> [build-venv 3/4] RUN python -m venv /venv && /venv/bin/pip install --upgrade pip setuptools wheel && mkdir -p /build/openui/util && touch /build/README.md 18.0s
=> ERROR [build-venv 4/4] RUN /venv/bin/pip install --disable-pip-version-check /build 7.8s

[build-venv 4/4] RUN /venv/bin/pip install --disable-pip-version-check /build:
0.554 Processing /build
0.556 Installing build dependencies: started
3.047 Installing build dependencies: finished with status 'done'
3.062 Getting requirements to build wheel: started
3.279 Getting requirements to build wheel: finished with status 'done'
3.283 Installing backend dependencies: started
5.622 Installing backend dependencies: finished with status 'done'
5.623 Preparing metadata (pyproject.toml): started
6.008 Preparing metadata (pyproject.toml): finished with status 'done'
6.036 Collecting weave@ git+https://github.com/wandb/weave.git@fix/tiktoken-images (from openui==0.2)
6.038 Cloning https://github.com/wandb/weave.git (to revision fix/tiktoken-images) to /tmp/pip-install-hmvx92w1/weave_59b29e0cf619498db4baec711a8ed3f5
6.050 Running command git clone --filter=blob:none --quiet https://github.com/wandb/weave.git /tmp/pip-install-hmvx92w1/weave_59b29e0cf619498db4baec711a8ed3f5
7.590 fatal: unable to access 'https://github.com/wandb/weave.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
7.605 error: subprocess-exited-with-error
7.605
7.605 × git clone --filter=blob:none --quiet https://github.com/wandb/weave.git /tmp/pip-install-hmvx92w1/weave_59b29e0cf619498db4baec711a8ed3f5 did not run successfully.
7.605 │ exit code: 128
7.605 ╰─> See above for output.
7.605
7.605 note: This error originates from a subprocess, and is likely not a problem with pip.
7.607 error: subprocess-exited-with-error
7.607
7.607 × git clone --filter=blob:none --quiet https://github.com/wandb/weave.git /tmp/pip-install-hmvx92w1/weave_59b29e0cf619498db4baec711a8ed3f5 did not run successfully.
7.607 │ exit code: 128
7.607 ╰─> See above for output.
7.607
7.607 note: This error originates from a subprocess, and is likely not a problem with pip.


Dockerfile:7

5 | /venv/bin/pip install --upgrade pip setuptools wheel &&
6 | mkdir -p /build/openui/util && touch /build/README.md
7 | >>> RUN /venv/bin/pip install --disable-pip-version-check /build
8 |
9 | # Copy the virtualenv into a distroless image

ERROR: failed to solve: process "/bin/sh -c /venv/bin/pip install --disable-pip-version-check /build" did not complete successfully: exit code: 1
HarveydeMac-mini:backend liuzhanheng$ git clone --filter=blob:none --quiet https://github.com/wandb/weave.git /tmp/pip-install-hmvx92w1/weave_59b29e0cf619498db4baec711a8ed3f5
fatal: unable to access 'https://github.com/wandb/weave.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: could not fetch e80ec2c8b1e5721be290a1322836382ce51b973f from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'`

@vanpelt
Copy link
Contributor

vanpelt commented Apr 15, 2024

Hmmm, somethings up with your system such that it can't verify the SSL certificates of github.com. What operating system are you running on? You should be able to edit pyproject.toml and replace the weave git line simply with "weave".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants