Closed jack-gits closed 2 years ago
using master branch to build the image, the following is the build command.
_./buildimage.sh -g -cv cu111 -t torchserve:c11.1-u20.04-prd -bt production -ub ubuntu20.04
it raised an error message:
**Building 41.9s (12/24) => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => resolve image config for docker.io/docker/dockerfile:experimental 15.4s => CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => [internal] load metadata for docker.io/nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04 15.2s => CACHED [internal] helper image for file operations 0.0s => [internal] load build context 0.1s => => transferring context: 80B 0.0s => CACHED [compile-image 1/8] FROM docker.io/nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04@sha256:4b3464c4a2dee2904f6902a9abbb968edb33ba187601b720b5935421694e8716 0.0s => ERROR [runtime-image 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8- 9.8s => CANCELED [compile-image 2/8] RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt apt-get update && apt remove python-pip python3-pip && DEBIAN_FRONTEND=noninteractive apt-get instal 10.0s
[runtime-image 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8-distutils python3.8-dev openjdk-17-jdk build-essential && rm -rf /var/lib/apt/lists/* && cd /tmp:
**_#10 9.645 W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
------_* rpc error: code = Unknown desc = executor failed running [/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8-distutils python3.8-dev openjdk-17-jdk build-essential && rm -rf /var/lib/apt/lists/ && cd /tmp]: exit code: 100**
the newest codes of master branch. _./buildimage.sh -g -cv cu111 -t torchserve:c11.1-u20.04-prd -bt production -ub ubuntu20.04
None
No response
newest
cloase
🐛 Describe the bug
using master branch to build the image, the following is the build command.
_./buildimage.sh -g -cv cu111 -t torchserve:c11.1-u20.04-prd -bt production -ub ubuntu20.04
it raised an error message:
Error logs
**Building 41.9s (12/24)
=> [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => resolve image config for docker.io/docker/dockerfile:experimental 15.4s => CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => [internal] load metadata for docker.io/nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04 15.2s => CACHED [internal] helper image for file operations 0.0s => [internal] load build context 0.1s => => transferring context: 80B 0.0s => CACHED [compile-image 1/8] FROM docker.io/nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04@sha256:4b3464c4a2dee2904f6902a9abbb968edb33ba187601b720b5935421694e8716 0.0s => ERROR [runtime-image 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8- 9.8s => CANCELED [compile-image 2/8] RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt apt-get update && apt remove python-pip python3-pip && DEBIAN_FRONTEND=noninteractive apt-get instal 10.0s
[runtime-image 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8-distutils python3.8-dev openjdk-17-jdk build-essential && rm -rf /var/lib/apt/lists/* && cd /tmp:
10 1.942 Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
10 2.161 Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
10 3.240 Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2312 kB]
10 3.605 Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
10 3.947 Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
10 4.285 Get:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
10 4.747 Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1712 kB]
10 5.015 Get:8 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.5 kB]
10 5.017 Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [965 kB]
10 5.399 Get:10 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease [1581 B]
10 5.811 Err:10 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
10 5.811 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
10 5.863 Ign:11 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 InRelease
10 6.175 Get:12 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Release [564 B]
10 6.215 Get:13 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Release.gpg [833 B]
10 6.619 Get:14 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Packages [2445 B]
10 6.661 Get:15 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
10 6.676 Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
10 6.863 Get:17 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
10 6.900 Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2781 kB]
10 7.351 Get:19 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [30.2 kB]
10 7.352 Get:20 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1262 kB]
10 7.568 Get:21 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1829 kB]
10 7.868 Get:22 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [27.5 kB]
10 7.869 Get:23 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
10 8.320 Reading package lists...
**_#10 9.645 W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
10 9.645 E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
------_* rpc error: code = Unknown desc = executor failed running [/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.8 python3.8-distutils python3.8-dev openjdk-17-jdk build-essential && rm -rf /var/lib/apt/lists/ && cd /tmp]: exit code: 100**
Installation instructions
the newest codes of master branch. _./buildimage.sh -g -cv cu111 -t torchserve:c11.1-u20.04-prd -bt production -ub ubuntu20.04
Model Packaing
None
config.properties
No response
Versions
newest
Repro instructions
None
Possible Solution
No response