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

函数计算构建的镜像 访问报错,怎么处理?

函数计算构建的镜像 访问报错,怎么处理?lQLPKHWpxc2DVKnNBIzNBvywm2iw3lhkliQGVCwXxy5FAA_1788_1164.png

展开
收起
三分钟热度的鱼 2024-06-19 19:30:52 33 0
1 条回答
写回答
取消 提交回答
  • 当Custom Runtime的bootstrap文件是Shell脚本,且出现以下错误时,Custom Runtime的bootstrap文件一定要添加#!/bin/bash。

    {
    "ErrorCode":"CAExited",
    "ErrorMessage":"The CA process either cannot be started or exited:ContainerStartDuration:25037266905. CA process cannot be started or exited already: rpc error: code = 106 desc = ContainerStartDuration:25000000000. Ping CA failed due to: dial tcp 21.0.XX.XX:9000: i/o timeout Logs : 2019-11-29T07:27:50.759658265Z panic: standard_init_linux.go:178: exec user process caused \"exec format error\"
    }
    如果是二进制可执行文件,例如Go、C++直接编译出来的目标二进制文件,则不需要添加#!/bin/bash。

    image.png

    参考文档https://help.aliyun.com/zh/functioncompute/support/what-do-i-do-if-the-caexited-error-occurs-when-the-bootstrap-file-of-a-custom-runtime-is-a-shell-script?spm=a2c4g.11186623.0.i132

    2024-06-20 09:02:28
    赞同 2 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Hologres Serverless之路:揭秘弹性计算组 立即下载
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载