开发者社区 > 云原生 > Serverless > 正文

函数计算这种错误该如何排查呢?

https://fcnext.console.aliyun.com/self-service?q=OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
INFO: Started server process [1]
INFO: Waiting for application startup.
2024-06-25 00:20:39.941 | INFO | RedisManager:connect:39 - connect redis pool
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:1236 (Press CTRL+C to quit)
Function instance health check failed on port 1234 in 120 seconds.
函数计算这种错误该如何排查呢?

展开
收起
三分钟热度的鱼 2024-07-03 21:24:12 8 0
1 条回答
写回答
取消 提交回答
  • 实例健康检查失败(Function instance health check failed)
    报错示例

    Function instance health check failed on port 9001 in 120 seconds.\nLogs:
    报错排查
    函数实例健康检查失败,一般是代码中监听的IP地址或者端口设置错误导致。函数实例启动后,平台会根据函数配置的端口进行4层连通性检查,若在超时时间内检查不通过,则返回Function instance health check failed报错。

    监听地址和端口必须满足以下条件。

    监听地址

    代码中的监听IP地址必须设置为0.0.0.0或*,不能设置为127.0.0.0或localhost。

    监听端口

    监听端口必须和函数配置中的端口保持一致。Custom Runtime运行时默认监听端口为9000。

    如果使用默认端口,请确保代码中HTTP Server监听的端口也是9000。

    如果设置了监听端口,请确保代码中HTTP Server监听的端口与其一致。

    image.png

    参考文档https://help.aliyun.com/zh/functioncompute/user-guide/troubleshooting?spm=a2c4g.11186623.0.i34

    2024-07-04 09:10:08
    赞同 1 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载
    All in Serverless 阿里云核心产品全面升级 立即下载