Setting EdgeX MessageBus to use MQTT Pub/Sub #56
Replies: 2 comments 14 replies
-
|
Hi, have you looked at this https://docs.edgexfoundry.org/2.1/microservices/application/Triggers/#external-mqtt-trigger The way you have is more for redis pub-sub |
Beta Was this translation helpful? Give feedback.
-
|
@neerajasjawali , are you running in Docker? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am working on setting the MessageBus configuration for EdgeX (jakarta) to use MQTT Pub/Sub.
I have modified the configuration.toml file of core-data, app-service and device-service. Moqsuitto broker is running, While running the device-service for reading camera data, I am getting following errors on various services terminal.
Error on core-data service:
level=ERROR ts=2023-02-16T04:55:59.428261237Z app=core-data source=subscriber.go:72 msg="fail to persist the event, Event Id exists"Error on metadata service:
level=INFO ts=2023-02-16T06:23:47.431125067Z app=core-metadata source=message.go:58 msg="Service started in: 31.079106ms" level=ERROR ts=2023-02-16T05:33:47.746644181Z app=device-virtual source=utils.go:71 msg="Failed to publish event to MessageBus: Timeout occured while performing a 'Publish' operation: Unable to publish message"Error on device-service:
level=ERROR ts=2023-02-16T05:33:47.746644181Z app=device-virtual source=utils.go:71 msg="Failed to publish event to MessageBus: Timeout occured while performing a 'Publish' operation: Unable to publish message"Error on mosquitto broker:
Attached the screenshots of configuration.toml files

It would be helpful, if you could give me suggestions to resolve the issue.
I would also like to know the modifications to be done in mqtt broker configuration.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions