Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error when trying to deploy a Google Cloud Function

I am constantly getting this error when I try to deploy my Cloud Function:

ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Could not create or update Cloud Run service generate-story-route, Container Healthcheck failed. Revision 'generate-story-route-00003-dil' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.

 

Idk why I am getting a Cloud Run error when I am trying to deploy a Cloud Function. Can anyone help me? It started when I added google cloud tasks. This is my code: https://hastebin.com/share/hucexawido.python This is my code.

Solved Solved
0 2 5,609
1 ACCEPTED SOLUTION

I fixed it. It was an issue with opencv-python, shifting to opencv-python-headless fixed it

View solution in original post

2 REPLIES 2

This is the main error I think

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

I fixed it. It was an issue with opencv-python, shifting to opencv-python-headless fixed it