This message was deleted.
# ask-for-help
s
This message was deleted.
x
You need to check if your Docker registry username and password are correct. If you're using ECR, it's strongly recommended not to use a username and password but instead use this method. https://docs.bentoml.org/projects/yatai/en/latest/installation/yatai_image_builder.html#prepare-container-registry
j
I did use that method to set up the ECR
I'm very confused, because I'm running
bentoml push
and the images are being pushed somewhere (they show up in Yatai), but when I peek at the ECR
yatai-bentos
, they are not there...
x
bentoml push This command pushes the bento instead of the container image
j
So what should I be doing instead? I was just following the guide on the Github (?)
My issue is that I am unable to deploy the bento
s
Yatai has a
yatai-image-builder
component, that will build the bentos you pushed when you deploy.
j
So I have installed that component, but the build is still failing?
s
Could you please check if you have followed the steps in https://docs.bentoml.org/projects/yatai/en/latest/installation/yatai_image_builder.html#prepare-container-registry with the “Use AWS ECR with IAM Role” option?
j
I have done that
This is the error on the image-builder pod:
Copy code
Failed to reconcile BentoRequest: check image <>.<http://dkr.ecr.us-west-2.amazonaws.com/yatai-bentos:yatai.model_service.adyc2qweawngvmql|dkr.ecr.us-west-2.amazonaws.com/yatai-bentos:yatai.model_service.adyc2qweawngvmql> exists: create docker registry client for https://<>.<http://dkr.ecr.us-west-2.amazonaws.com|dkr.ecr.us-west-2.amazonaws.com>: Get "https://<>.<http://dkr.ecr.us-west-2.amazonaws.com/v2/|dkr.ecr.us-west-2.amazonaws.com/v2/>": http: non-successful response (status=401 body="Not Authorized\n")	{"type": "Warning", "object": {"kind":"BentoRequest","namespace":"yatai","name":"model-service-adyc-2-qweawngvmql","uid":"06f22271-a208-47c0-9c2b-a871211281c4","apiVersion":"<http://resources.yatai.ai/v1alpha1|resources.yatai.ai/v1alpha1>","resourceVersion":"3181723"}, "reason": "ReconcileError"}
s
The image URL looks suspicious. I assumed that you purposely replaced your account id with
<>
?
<>.<http://dkr.ecr.us-west-2.amazonaws.com/yatai-bentos:yatai.model_service.adyc2qweawngvmql|dkr.ecr.us-west-2.amazonaws.com/yatai-bentos:yatai.model_service.adyc2qweawngvmql>
Also, you’re getting
HTTP 401 Not Authorized
. That typically suggest that the IAM is not setup correctly.
j
Yeah I replaced it for privacy
I am trying to reinstall the image-builder component. When runnning this step, I am getting the following:
serviceaccount/yatai-image-builder-pod not labeled
. Is this expected?
s
No, that is not expected. The SA needs to be labeled.
j
Ok I restarted the pod and now it seems to be building the image
But it's OOMing
s
Is the builder pod being scheduled on a node with enough memory? You can use node selector or node affinity.