This message was deleted.
# ask-for-help
s
This message was deleted.
🚀 1
🏁 1
💾 1
a
can you send the full stacktrace here?
j
Sightly truncated
Copy code
#0 16.69 Err:77 <http://archive.ubuntu.com/ubuntu> focal-updates/main amd64 python3-software-properties all 0.99.9.8
#0 16.69   404  Not Found [IP: 185.125.190.39 80]
#0 16.98 Get:78 <http://archive.ubuntu.com/ubuntu> focal-updates/main amd64 packagekit amd64 1.1.13-2ubuntu1.1 [408 kB]
#0 17.85 Err:79 <http://archive.ubuntu.com/ubuntu> focal-updates/main amd64 software-properties-common all 0.99.9.8
#0 17.85   404  Not Found [IP: 185.125.190.39 80]
#0 17.87 Fetched 27.2 MB in 14s (1957 kB/s)
#0 17.87 E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5support0_1.17-6ubuntu4.1_amd64.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libk5crypto3_1.17-6ubuntu4.1_amd64.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5-3_1.17-6ubuntu4.1_amd64.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Failed to fetch <http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.99.9.8_all.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Failed to fetch <http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.99.9.8_all.deb>  404  Not Found [IP: 185.125.190.39 80]
#0 17.87 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
Dockerfile:30
--------------------
  29 |     
  30 | >>> RUN \
  31 | >>>     set -eux && \
  32 | >>>     apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common && \
  33 | >>>     # add deadsnakes ppa to install python
  34 | >>>     add-apt-repository ppa:deadsnakes/ppa && \
  35 | >>>     apt-get update -y && \
  36 | >>>     apt-get install -y --no-install-recommends --allow-remove-essential curl python3.10 python3.10-dev python3.10-distutils
  37 |     
--------------------
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.10 python3.10-dev python3.10-distutils" did not complete successfully: exit code: 100
a
can you try
docker builder prune --filter type=exec.cachemount
and then build the container again?
you can also try
bentoctl build … --no-cache
j
The former did not work and the latter throws "Error: No such option: --no-cache"
a
I didn’t realize that we haven’t release for a while, and
--no-cache
is currently only availble on main.
j
No worries, do you intend to release soon or how I could use the code on main?
a
Let me discuss with the team and will let you know soon.
I can’t seem to reproduce this on main. let me try with the latest version of bentoctl? Do you mind me asking what version you are using?
j
bentoctl, version 0.3.4
I don't think it's related to docker because I was able to build and containerize using bentoml, but it fails using bentoctl
Here is my bentofile if it helps:
Copy code
service: "service:svc"
include:
  - "service.py"
  - "configuration.yaml"
python:
  packages:
    - torch
    - transformers
    - pydantic
    - fastapi
docker:
    distro: debian
    python_version: "3.10"
    cuda_version: "11.6.2"
    env:
      BENTOML_CONFIG: "src/configuration.yaml"
a
You can install bentoctl from git (tho not recommended):
Copy code
pip install git+<https://github.com/bentoml/bentoctl.git@main>
j
Tried that but still getting
Error: No such option: --no-cache
?
a
do you have other bentoctl installation elsewhere? can you do
bentoctl build -h
?
j
I do -- in a different pyenv virtualenv
Could that be causing it to error?
a
probably ye, if you are sourcing doing something like
eval $(pyenv init -)
it will append pyenv/shims to the top path, so if you have that bentoctl in that pyenv will get used instead.
j
It seems to be using the correct bentoctl though?
Like the one in my virtualenv
I can try to nuke that pyenv and see what happens
a
Weird. this is my bentoctl from git main
j
Interesting
Let me show you mine
Ok so I had to manually remove the previous bentoctl from my pyenv version
And then I reinstalled using the above pip install command. Now using the
bentoctl build
with
--no-cache
seems to be working!
👍 1
Thanks, looking forward to the official release 🙂