ImportErrorlibsqlite3.so.0 while deploying a cloud function - Stack Overflow

I'm trying to deply a cloud function, using python, the code works locally fine, and the cloud bui

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 ?

Share Improve this question asked Jan 29 at 16:08 aNameaName 3,0935 gold badges40 silver badges70 bronze badges 1
  • Your question should show the code (a minimal complete reproducible example) that doesn't work the way you expect. Without that, it's highly unlikely that you'll get good feedback on what's wrong and how to fix it. We should be able to copy what you have and run it for ourselves with the instructions you provide. – Doug Stevenson Commented Jan 29 at 17:02
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745291386a4620881.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信