Skip to content

Setting Up Store and Forward for EdgeX MQTT Export #58

Answered by lenny-goodell
hdjoe asked this question in Q&A
Discussion options

You must be logged in to vote

@hdjoe , there is one addition configuration of the MQTT Export, which is setting PersistOnError=true

app-mqtt-export/Writable/Pipeline/Functions/MQTTExport/Parameters/PersistOnError/

With this set you will see the following logged when the event can't be exported:

level=ERROR ts=2023-02-21T15:58:48.0340642Z app=app-mqtt-export source=triggermessageprocessor.go:186 msg="message error in pipeline default-pipeline (): in pipeline 'default-pipeline', could not connect to mqtt server for export, persisting Event for later retry. Error: network Error : dial tcp: lookup edgex-mqtt-broker on 127.0.0.11:53: no such host"

Add if you wait long enough before restarting the broker you will see:

leve…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hdjoe
Comment options

Answer selected by hdjoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants