I am running gloud functions deploy --gen2. It has been working in ci/cd environment for quite a while. It is now failing - even with code the same as when it was working.
(gcloud.functions.deploy) OperationError: code=13, message=Could not create or update Cloud Run service . Revision ‘-00018-yuv’ is not ready and cannot serve traffic. Container import failed.
The logs have a Code 3 message:
“Ready condition status changed to False for Revision -00018-yuv with message: Container import failed”
I downloaded the image created and tried to run docker as per the instructions here:
https://cloud.google.com/run/docs/testing/local#docker
This is the error:
ERROR: failed to launch: path lookup: exec: “/bin/bash”: stat /bin/bash: no such file or directory
How do we docker run a gcloud functions image?
I noticed on google cloud status an unresolved incident there has been an issue all morning with cloud build, but I don’t see that impacting what I m doing as cloud build itself is running. If it is this incident, how do we know which service account to grant “roles/cloudbuild.tokenAccessor”?
edit: I am able to deploy in us-central1, but not in my desired region. It still does not look related to current issue though, but another “new” function also was not able to deploy in desired region.