收藏
回答

微信云托管部署失败,请问什么原因?详细日志如下:

-----------服务springboot-8op0部署springboot-8op0-007-----------

2024-01-11 10:44:22 create_eks_virtual_service : succ,

2024-01-11 10:44:22 check_eks_virtual_service : process, DescribeVersion_user_error_Back-off restarting failed container, [service]:[Exec lifecycle hook ([/bin/sh /app/cert/initenv.sh]) for Container "springboot-8op0-007" in Pod "springboot-8op0-007-8cc58f5fc-dllpk_odwapxqn(268ad173-f557-4105-a3d4-8f6b6e9fd4f4)" failed - error: command '/bin/sh /app/cert/initenv.sh' exited with 137: + certFile=/app/cert/certificate.crt

+ certLog=/app/cert.log

+ srcIp=169.254.10.1

+ srcHost=api.weixin.qq.com

+ checkFileCnt=0

+ is_user_root

+ id -u

+ '[' 0 -eq 0 ]

+ echo 'User is root, patching env and certs.'

+ '[' '!' -f /app/cert/certificate.crt ]

+ '[' '!' -f /etc/os-release ]

+ . /etc/os-release

+ NAME='Alpine Linux'

+ ID=alpine

+ VERSION_ID=3.13.12

+ PRETTY_NAME='Alpine Linux v3.13'

+ HOME_URL=https://alpinelinux.org/

+ BUG_REPORT_URL=https://bugs.alpinelinux.org/

+ echo '[I]: os release is alpine'

+ update-ca-certificates -h

WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping

, message: "+ certFile=/app/cert/certificate.crt\n+ certLog=/app/cert.log\n+ srcIp=169.254.10.1\n+ srcHost=api.weixin.qq.com\n+ checkFileCnt=0\n+ is_user_root\n+ id -u\n+ '[' 0 -eq 0 ]\n+ echo 'User is root, patching env and certs.'\n+ '[' '!' -f /app/cert/certificate.crt ]\n+ '[' '!' -f /etc/os-release ]\n+ . /etc/os-release\n+ NAME='Alpine Linux'\n+ ID=alpine\n+ VERSION_ID=3.13.12\n+ PRETTY_NAME='Alpine Linux v3.13'\n+ HOME_URL=https://alpinelinux.org/\n+ BUG_REPORT_URL=https://bugs.alpinelinux.org/\n+ echo '[I]: os release is alpine'\n+ update-ca-certificates -h\nWARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping\n",Back-off restarting failed container,]

回答关注问题邀请回答
收藏

1 个回答

  • 惑
    01-11

    我也遇到同样的问题,最后搞定了,我是因为Dockerfile里CMD 里有一行报错(数据库迁移失败),但是部署日志显示ca的问题,如果有写Dockerfile 先检查下哪一行运行不成功的

    01-11
    有用
    回复
登录 后发表内容
问题标签