Hello, I have issues using the HiveMQ Sparkplug extension with InfluxDB. I’m following the instructions from here Sparkplug InfluxDB Extension for HiveMQ and i’m running this on a balena.io device with InfluxDB 2.71
and HiveMQ 4.12.0
.
I was testing some changes and I got this error on the balenaCloud logs:
2023-10-02T14:43:46+02:00 hivemq4 2023-10-02 12:43:46,719 TRACE - No matching normal/shared subscriber or consumer found for PUBLISH with topic ‘spBv1.0/Sparkplug Devices/NBIRTH/Node-Red’
2023-10-02T14:44:01+02:00 influxdb 2023-10-02T12:44:01.085867Z info Unauthorized {“log_id”: “0kd6U5Zl000”, “error”: “session not found”}
However, after doing some changes testing the buckets and everything. Sent a new message and I don’t get any InfluxDB error or anything.
2023-10-02T15:04:43+02:00 hivemq4 2023-10-02 13:04:43,337 TRACE - Sending retained message with topic [spBv1.0/Sparkplug Devices/NCMD/Node-Red] for client [mqtt_164b1c5f195363a1]
2023-10-02T15:04:54+02:00 hivemq4 2023-10-02 13:04:54,380 TRACE - No matching normal/shared subscriber or consumer found for PUBLISH with topic ‘spBv1.0/My Devices/NCMD/EoN Name/My Device’
2023-10-02T15:04:55+02:00 hivemq4 2023-10-02 13:04:55,915 TRACE - No matching normal/shared subscriber or consumer found for PUBLISH with topic ‘spBv1.0/My Devices/NCMD/EoN Name/My Device’
This is the configuration of my sparkplug.properties
file:
root@91f7174fea0c:/opt/hivemq-4.12.0/extensions/hivemq-sparkplug-extension# cat sparkplug.properties
# --
# Copyright 2021-present HiveMQ GmbH
# --
## influxdb properties
influxdb.mode:cloud
influxdb.host:localhost
influxdb.port:8086
influxdb.protocol:http
influxdb.auth:mytoken goes here==
influxdb.prefix:
influxdb.database:balena
influxdb.reportingInterval:1
influxdb.connectTimeout:5000
influxdb.tags:host=localhost
# InfluxDB cloud options
influxdb.bucket:balena
influxdb.organization:balena
## sparkplug properties
What am i missing? why i don’t see any error on the influxDB? on the other hand Influx UI tells me
Could you please help me here?