I'm trying to deply a cloud function, using python, the code works locally fine, and the cloud build job complete successfuly, however, the cloud function is not working, I get this error :
Revision 'xxxx' 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 within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information
when I look at logs, I find this:
ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory
does anyone have an idea ?
I'm trying to deply a cloud function, using python, the code works locally fine, and the cloud build job complete successfuly, however, the cloud function is not working, I get this error :
Revision 'xxxx' 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 within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information
when I look at logs, I find this:
ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory
does anyone have an idea ?
I had the same issue and resolved it by switching the cloud function base image to google-22-full (Ubuntu 22 full).
As mentioned here, there are different stacks with different included package that can be selected when editing cloud functions.