Hi All, we are using bentoml `1.1.11`. This mornin...
# ask-for-help
s
Hi All, we are using bentoml
1.1.11
. This morning, when I containerize the bento, I receive the following error: > #12 112.7 For nightly builds, see ppa:deadsnakes/nightly https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly > #12 112.7 More info: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa > #12 142.7 Error: retrieving gpg key timed out. > #12 ERROR: process "/bin/sh -c set -eux && apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update -y && apt-get install -y --no-install-recommends --allow-remove-essential curl python3.9 python3.9-dev python3.9-distutils" did not complete successfully: exit code: 1 The Dockerfile was generated by bentoml. Anyone receives the error when retrieving gpg key?
More details on errors when building the docker image locally:
Copy code
21.79 + add-apt-repository ppa:deadsnakes/ppa
227.5 Cannot add PPA: 'ppa:~deadsnakes/ubuntu/ppa'.
227.5 The team named '~deadsnakes' has no PPA named 'ubuntu/ppa'
227.5 Please choose from the following available PPAs:
227.5  * 'nightly':  nightly python builds
227.5  * 'ppa':  New Python Versions
------
Dockerfile:28
--------------------
  27 |
  28 | >>> RUN --mount=type=cache,target=/var/lib/apt --mount=type=cache,target=/var/cache/apt \
  29 | >>>     set -eux && \
  30 | >>>     apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common && \
  31 | >>>     # add deadsnakes ppa to install python
  32 | >>>     add-apt-repository ppa:deadsnakes/ppa && \
  33 | >>>     apt-get update -y && \
  34 | >>>     apt-get install -y --no-install-recommends --allow-remove-essential curl python3.9 python3.9-dev python3.9-distutils
  35 |
--------------------
ERROR: failed to solve: process "/bin/sh -c set -eux &&     apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common &&     add-apt-repository ppa:deadsnakes/ppa &&     apt-get update -y &&     apt-get install -y --no-install-recommends --allow-remove-essential curl python3.9 python3.9-dev python3.9-distutils" did not complete successfully: exit code: 1
It appears that this might have something to do with our network.
Confirmed the error is NOT caused by our network. Is there a workaround without upgrading to bentoml 1.2?
We found a link to launchpad saying that they had issues and are working on it - https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly. Here is a post on X - https://x.com/launchpadstatus/status/1803772281455345796
👍 1
c
Is this Bento using a custom base image?
s
No we don't.