-
Notifications
You must be signed in to change notification settings - Fork 952
Open
Labels
Description
Describe the issue
I am running ThingsBoard IoT Gateway on an embedded ARM Linux board (Buildroot-based, Rockchip RK3566).
During development, I configured and tested an MQTT connector using Remote Configuration in the ThingsBoard UI. It worked correctly.
Now I want to productize this connector so that all gateways use a local connector configuration instead of remote configuration.
I did the following:
- Copied the working MQTT connector configuration from remote configuration to a local file
moduleMqtt.jsonunder/etc/thingsboard-gateway/config/. - Updated
/etc/thingsboard-gateway/config/tb_gateway.jsonto register this connector:"connectors": [ { "type": "mqtt", "name": "ModuleMQTT", "configuration": "moduleMqtt.json" } ]
- Set
"remoteConfiguration": falseintb_gateway.jsonbecause I want to use only local configuration. - Started the gateway manually with:
thingsboard-gateway
Expected behavior
- The local MQTT connector
ModuleMQTTshould be loaded on startup. - I expect to see log lines like
Starting MQTT connector ModuleMQTT ...and connector-specific logs inconnector.log. - In statistics,
connectorsStatsshould contain an entry forModuleMQTT. - The gateway should try to connect to the external MQTT broker defined in
moduleMqtt.json.
Actual behavior
- The gateway itself starts successfully and connects to ThingsBoard, but the local MQTT connector does not appear to be loaded.
- Console output shows messages like:
Connector with id c5cdde8b-9ca5-4035-b4f5-b3fe261ccc0f not found, trying to use default connector... Connector with id c5cdde8b-9ca5-4035-b4f5-b3fe261ccc0f not found, trying to use default connector... Connector with id c5cdde8b-9ca5-4035-b4f5-b3fe261ccc0f not found, trying to use default connector... Cannot use TLS connection on this port. Client will try to connect without TLS. [STRLAN ONLY] 2025-12-08 16:58:38,277 - INFO - tb_gateway_service - Start checking new gateway attributes... [STRLAN ONLY] 2025-12-08 16:58:38,284 - INFO - tb_gateway_service - Gateway core started [STRLAN ONLY] 2025-12-08 16:58:38,293 - INFO - tb_gateway_service - Gateway connected to ThingsBoard [STRLAN ONLY] 2025-12-08 16:58:38,303 - INFO - tb_gateway_service - Persistent device storage created [STRLAN ONLY] 2025-12-08 16:58:38,305 - INFO - tb_gateway_service - Gateway started. [STRLAN ONLY] 2025-12-08 16:58:38,319 - INFO - statistics_service - Collected requests statistics... connectorsStatsis always{}, which suggests that no connector is actually active.- I do not see any log line indicating that
ModuleMQTTis started, nor any connection attempts to the external MQTT broker defined inmoduleMqtt.json. - The UUID
c5cdde8b...looks like it belongs to an old remotely-configured connector. My understanding, however, is that when"remoteConfiguration": falseis set, the gateway should ignore any remote connector definitions and only use the localconnectorsarray fromtb_gateway.json.
So the core issue is:
Even though the local MQTT connector
ModuleMQTT(configuration filemoduleMqtt.json) is correctly listed intb_gateway.jsonand the file exists in the config directory, it is not loaded/started when using local configuration mode.