내용으로 건너뛰기

Why is EMQX greengrass component ignoring custom configuration?

0

I am deploying a bunch of components, which depend on the EMQX (they specify it as dependency). And then I am deploying the EMQX. I have to explicitly define it in the deployment because I need to apply custom configuration for it. However when the component is deployed, this configuration is completely ignored and the component is instead deployed with just the default configuration. Here is the component config in the deployment:

    "targetArn": "arn:aws:iot:eu-west-1:123456789:thinggroup/development-dev-123456v2",
    "revisionId": "705",
    "deploymentId": "68ef313e-5516-4ea9-9f29-c48ac52e1d34",
    "deploymentStatus": "ACTIVE",
    "iotJobId": "85ce3105-1a45-461f-a9d7-d677c1d95aa3",
    "iotJobArn": "arn:aws:iot:eu-west-1:123456789:job/85ce3105-1a45-461f-a9d7-d677c1d95aa3",
    "components": {
        "aws.greengrass.clientdevices.mqtt.EMQX": {
            "componentVersion": "2.0.1",
            "configurationUpdate": {
                "merge": "{\"emqxConfig\":{\"listeners\":{\"ssl\":{\"default\":{\"enabled\":false}},\"tcp\":{\"default\":{\"enabled\":true,\"bind\":1883}}},\"authorization\":{\"no_match\":\"allow\"}},\"dockerOptions\":\"-p 1883:1883 -l com.company.cic.srv -l com.docker.service=emqx\",\"authMode\":\"bypass\"}",
                "reset": [
                    ""
                ]
            }
        },
...

The intention is to have the EMQX as local broker. Can someone plz explain what's going on here? There is nothing in the logs about the deployment, so I cannot troubleshoot this.

  • I have restarted greengrass service and now the component doesn't run at all, the startup script just prints the following error:

    ERROR: call_hocon_failed: -v -t 2024.07.22.12.21.07 -s emqx_conf_schema -c /opt/emqx/etc/emqx.conf -d /opt/emqx/data/configs generate
    

    EDIT: this was an invalid configuration I had

질문됨 2년 전389회 조회
1개 답변
2
수락된 답변

So I restarted the core device and somehow it worked. No idea what happened.

답변함 2년 전
전문가
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.