Git Product home page Git Product logo

Comments (2)

Vieufoux avatar Vieufoux commented on August 15, 2024

This issue is caused by certs not found, so i add a line in the dockerfile
COPY --from=builder /aws-export/certs /certs
the "Failed loading x509 data" issue disappeared, but i still can not see any logs shows MQTT message sent success.

below is my log, MQTT not sent success but I cannot find any error logs in the docker log.

level=INFO ts=2021-04-02T10:35:04.126579233Z app=AWSExport source=sdk.go:358 msg="Starting AWSExport 0.0.0 "
level=INFO ts=2021-04-02T10:35:04.128295299Z app=AWSExport source=config.go:193 msg="Loaded configuration from /res/configuration.toml"
level=INFO ts=2021-04-02T10:35:04.130146636Z app=AWSExport source=variables.go:394 msg="Variables override of 'MessageBus.SubscribeHost.Host' by environment variable: MESSAGEBUS_SUBSCRIBEHOST_HOST=edgex-core-data"
level=INFO ts=2021-04-02T10:35:04.130196461Z app=AWSExport source=variables.go:394 msg="Variables override of 'Service.Port' by environment variable: SERVICE_PORT=48102"
level=INFO ts=2021-04-02T10:35:04.130428297Z app=AWSExport source=variables.go:394 msg="Variables override of 'Registry.Host' by environment variable: REGISTRY_HOST=edgex-core-consul"
level=INFO ts=2021-04-02T10:35:04.130495345Z app=AWSExport source=variables.go:394 msg="Variables override of 'Clients.CoreData.Host' by environment variable: CLIENTS_COREDATA_HOST=edgex-core-data"
level=INFO ts=2021-04-02T10:35:04.130522627Z app=AWSExport source=variables.go:394 msg="Variables override of 'Service.Host' by environment variable: SERVICE_HOST=app-service-aws-iot-export"
level=INFO ts=2021-04-02T10:35:04.130788079Z app=AWSExport source=config.go:168 msg="Using Configuration provider (consul) from: http://edgex-core-consul:8500 with base path of edgex/appservices/1.0/AWSExport"
level=INFO ts=2021-04-02T10:35:04.164451423Z app=AWSExport source=variables.go:394 msg="Variables override of 'MessageBus.SubscribeHost.Host' by environment variable: MESSAGEBUS_SUBSCRIBEHOST_HOST=edgex-core-data"
level=INFO ts=2021-04-02T10:35:04.164534678Z app=AWSExport source=variables.go:394 msg="Variables override of 'Service.Port' by environment variable: SERVICE_PORT=48102"
level=INFO ts=2021-04-02T10:35:04.164548359Z app=AWSExport source=variables.go:394 msg="Variables override of 'Clients.CoreData.Host' by environment variable: CLIENTS_COREDATA_HOST=edgex-core-data"
level=INFO ts=2021-04-02T10:35:04.164582334Z app=AWSExport source=variables.go:394 msg="Variables override of 'Registry.Host' by environment variable: REGISTRY_HOST=edgex-core-consul"
level=INFO ts=2021-04-02T10:35:04.164609459Z app=AWSExport source=variables.go:394 msg="Variables override of 'Service.Host' by environment variable: SERVICE_HOST=app-service-aws-iot-export"
level=INFO ts=2021-04-02T10:35:04.164777183Z app=AWSExport source=config.go:304 msg="Configuration has been pulled from Configuration provider (5 envVars overrides applied)"
level=ERROR ts=2021-04-02T10:35:04.164795637Z app=AWSExport source=logger.go:74 msg="logTarget cannot be blank, using stdout only"
level=INFO ts=2021-04-02T10:35:04.164812606Z app=AWSExport source=registry.go:80 msg="Using Registry (consul) from http://edgex-core-consul:8500"
level=INFO ts=2021-04-02T10:35:04.210021195Z app=AWSExport source=version.go:81 version=0.0.0 msg="Skipping version compatibility check for SDK Beta version or running in debugger"
level=INFO ts=2021-04-02T10:35:04.21009369Z app=AWSExport source=server.go:284 msg="Registering standard routes..."
level=INFO ts=2021-04-02T10:35:04.210256589Z app=AWSExport source=controller.go:63 msg="Registering standard V2 routes..."
level=INFO ts=2021-04-02T10:35:04.21041331Z app=AWSExport source=configupdates.go:51 msg="Waiting for App Service configuration updates..."
level=INFO ts=2021-04-02T10:35:04.210413302Z app=AWSExport source=telemetry.go:79 msg="Starting CPU Usage Average loop"
level=INFO ts=2021-04-02T10:35:04.222592415Z app=AWSExport source=sdk.go:438 msg="Service started in: 96.120035ms"
level=DEBUG ts=2021-04-02T10:35:04.222680264Z app=AWSExport source=aws-iot-mqtt.go:57 msg=xxxxxxxxxx.iot.eu-west-1.amazonaws.com
level=DEBUG ts=2021-04-02T10:35:04.222692657Z app=AWSExport source=aws-iot-mqtt.go:57 msg=8883
level=DEBUG ts=2021-04-02T10:35:04.222719854Z app=AWSExport source=aws-iot-mqtt.go:57 msg=testThing
level=DEBUG ts=2021-04-02T10:35:04.222729179Z app=AWSExport source=aws-iot-mqtt.go:57 msg=./certs/user.client.crt
level=DEBUG ts=2021-04-02T10:35:04.222742667Z app=AWSExport source=aws-iot-mqtt.go:57 msg=./certs/user.client.key
level=DEBUG ts=2021-04-02T10:35:04.222750984Z app=AWSExport source=aws-iot-mqtt.go:57 msg=testTopic
level=DEBUG ts=2021-04-02T10:35:04.222758191Z app=AWSExport source=aws-iot-mqtt.go:57 msg=
level=DEBUG ts=2021-04-02T10:35:04.222765554Z app=AWSExport source=aws-iot-mqtt.go:57 msg=true
level=DEBUG ts=2021-04-02T10:35:04.22277327Z app=AWSExport source=aws-iot-mqtt.go:57 msg=false
level=DEBUG ts=2021-04-02T10:35:04.222790534Z app=AWSExport source=aws-iot-mqtt.go:116 msg="Read SkipCertVerify from configuration: false"
level=DEBUG ts=2021-04-02T10:35:04.222801017Z app=AWSExport source=aws-iot-mqtt.go:117 msg="Read PersistOnError from configuration: false"
level=DEBUG ts=2021-04-02T10:35:04.222813511Z app=AWSExport source=main.go:41 msg="Device names read []\n"
level=DEBUG ts=2021-04-02T10:35:04.22282222Z app=AWSExport source=aws-iot-mqtt.go:128 msg=testTopic
level=INFO ts=2021-04-02T10:35:04.229499092Z app=AWSExport source=sdk.go:473 msg="EdgeX MessageBus trigger selected"
level=INFO ts=2021-04-02T10:35:04.240623389Z app=AWSExport source=messaging.go:47 msg="Initializing Message Bus Trigger for 'zero'"
level=INFO ts=2021-04-02T10:35:04.240707281Z app=AWSExport source=messaging.go:61 msg="Subscribing to topic: 'events' @ tcp://edgex-core-data:5563"
level=INFO ts=2021-04-02T10:35:04.252688866Z app=AWSExport source=messaging.go:71 msg="Publishing to topic: '' @ tcp://*:5564"
level=INFO ts=2021-04-02T10:35:04.25273224Z app=AWSExport source=sdk.go:186 msg="StoreAndForward disabled. Not running retry loop."
level=INFO ts=2021-04-02T10:35:04.252744015Z app=AWSExport source=sdk.go:189 msg="AWS IoT Export Service"
level=INFO ts=2021-04-02T10:35:04.252774945Z app=AWSExport source=server.go:359 msg="Starting HTTP Web Server on address :48102"
level=DEBUG ts=2021-04-02T10:35:27.22107591Z app=AWSExport source=runtime.go:59 msg="Processing message: 4 Transforms"
level=DEBUG ts=2021-04-02T10:35:27.222683258Z app=AWSExport source=filter.go:44 msg="Filtering by DeviceID"
level=DEBUG ts=2021-04-02T10:35:27.223845856Z app=AWSExport source=conversion.go:27 msg="Transforming to AWS format"
{"Bool":"false"}
level=DEBUG ts=2021-04-02T10:35:27.223895177Z app=AWSExport source=main.go:75 msg="Printed to console"
level=DEBUG ts=2021-04-02T10:35:31.914680576Z app=AWSExport source=runtime.go:59 msg="Processing message: 4 Transforms"
level=DEBUG ts=2021-04-02T10:35:31.915390738Z app=AWSExport source=filter.go:44 msg="Filtering by DeviceID"
level=DEBUG ts=2021-04-02T10:35:31.916666658Z app=AWSExport source=conversion.go:27 msg="Transforming to AWS format"
{"Int32":"-1899719205"}
level=DEBUG ts=2021-04-02T10:35:31.917439039Z app=AWSExport source=main.go:75 msg="Printed to console"
level=DEBUG ts=2021-04-02T10:35:31.919446913Z app=AWSExport source=runtime.go:59 msg="Processing message: 4 Transforms"
level=DEBUG ts=2021-04-02T10:35:31.91982586Z app=AWSExport source=filter.go:44 msg="Filtering by DeviceID"
level=DEBUG ts=2021-04-02T10:35:31.920102169Z app=AWSExport source=conversion.go:27 msg="Transforming to AWS format"
{"Int64":"-8456589068190474143"}

from edgex-examples.

Vieufoux avatar Vieufoux commented on August 15, 2024

The reason for this problem is that the pipeline stopped, in the third function "printAWSDataToConsole", the return is both false, so the SDK will not continue calling successive function in the pipeline which is "MQTTSend" in this case.

from edgex-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.