Mendix for Private Cloud:Build Failed
DannyChuang
2021.12.28 11:27发布于技术 - 部署与运维
2231

我参照官方Learning Path :Mendix for Private Cloud的教学
https://academy.mendix.com/link/paths/101/Mendix-for-Private-Cloud

试图将一个APP布署到K8S集群中

也已成功将Mendix Getway Agent、Mendix Operator安装到MicroK8s的Cluster中

在Mendix Portal上Status也显示成功Connected

1640661334(1).png

但最后总是在卡在"Build Failed" 如下图所示

1640660219(1).png

不知是那边出错?还是少做了那个步骤?

这的APP也很单纯,完全没用到JavaAction,仅仅用到Store上一些常用的组件

Studio Pro版本:9.6

1640661861(1).png

Code_Dove
点赞
收藏
0评论
···
1个回答
按时间排序
按点赞排序
    天赐凯尔
    2021-12-28 11:48 发布

    如果你能访问k8s日志的话,可以在控制台或命令行看看build的日志。正常的是这样:(注意选择你app所在的namespace)

    $ kubectl get pod
    NAME                               READY   STATUS      RESTARTS   AGE
    axq7p05s-build                     0/1     Completed   0          12d
    axq7p05s-master-b87cf767d-4zrdh    3/3     Running     0          105m
    mendix-agent-7d9d5467bc-cjkjl      1/1     Running     0          18d
    mendix-operator-7f99fdcd47-wgc8f   1/1     Running     0          12d
    $ kubectl logs axq7p05s-build
    time="2021-12-16T02:40:36Z" level=info msg="Start building app with registry type dockercfg"
    time="2021-12-16T02:40:36Z" level=info msg="Adding ssl certificate /etc/ssl/certs/ca-bundle.crt"
    time="2021-12-16T02:40:36Z" level=info msg="Certificate /etc/ssl/certs/ca-bundle.crt has been added successfully"
    time="2021-12-16T02:40:36Z" level=info msg="Updating docker config with registry credentials"
    time="2021-12-16T02:40:36Z" level=info msg="Docker config has been updated with registry credentials"
    time="2021-12-16T02:40:36Z" level=info msg="Downloading MDA from https://deploy.mendix.tencent-cloud.com/rest/mdarepository/v1/download/0c11f0b3-d83c-4212-854a-cb9c18eb583b/2749"
    time="2021-12-16T02:40:37Z" level=info msg="MDA from https://deploy.mendix.tencent-cloud.com/rest/mdarepository/v1/download/0c11f0b3-d83c-4212-854a-cb9c18eb583b/2749 has been downloaded successfully"
    time="2021-12-16T02:40:37Z" level=info msg="Creating app layer"
    time="2021-12-16T02:40:37Z" level=info msg="Appending app layer to mendix.tencentcloudcr.com/mendix-app/kyle:axq7p05s with base runtime image mendix.tencentcloudcr.com/mendix/runtime-base:9.6.1.29396-rhel"
    time="2021-12-16T02:40:43Z" level=info msg="Mendix app has been built successfully"
    首赞
    0评论
    举报