thingsboard-gateway: [HELP] Connected to TTN and ThingsBoard, but does not create devices

the issue I have configured “tb_gateway.yaml” and “mqtt.json”. Through the logs, I see I’m connected to both TTN and Thingsboard. In the logs I can see a successful connection to TTN. Also in Thingsboard, every now and then “lastActivityTime” server attribute of my Gateway device is getting updated.

The issue is that no new device is created when I push a data in TTN. Live data shows my data correctly coming from my sensor node.

Could you please help?

Configuration tb_gateway.yaml:

thingsboard:
  host:  localhost
  port: 1883
  remoteShell: true
  remoteConfiguration: true
  security:
    accessToken: xxxxxxxxxxxxxxxxxxxxx
storage:
  type: memory
  read_records_count: 100
  max_records_count: 100000

connectors:

  -
    name: MQTT Broker Connector
    type: mqtt
    configuration: mqtt.json

mqtt.json:

{
  "broker": {
    "name": "Default Local Broker",
    "host": "eu1.cloud.thethings.network",
    "port": 1883,
    "clientId": "ThingsBoard_gateway1", 
    "security": {
      "type": "basic",
      "username": "MY_APP_NAME@ttn",
      "password": "xxxxxxxxxxxxxxxxxxxxxx"
    }
  },
  "mapping": [
    {
      "topicFilter": "+/devices/+/up",
      "converter": {
        "type": "json",
        "deviceNameJsonExpression": "${end_device_ids.dev_eui}",
        "deviceTypeJsonExpression": "LHT65",
        "deviceLabelJsonExpression": "${end_device_ids.device_id}",
        "timeout": 60000,
        "attributes": [
          {
            "type": "string",
            "key": "application_id",
            "value": "${end_device_ids.application_ids.application_id}"
          }
        ],
        "timeseries": [
          {
            "type": "double",
            "key": "temperature",
            "value": "${uplink_message.decoded_payload.TempC_SHT}"
          },
          {
            "type": "double",
            "key": "humidity",
            "value": "${uplink_message.decoded_payload.Hum_SHT}"
          }
        ]
      }
    },
    {
      "topicFilter": "/sensor/+/data",
      "converter": {
        "type": "json",
        "deviceNameTopicExpression": "(?<=sensor\/)(.*?)(?=\/data)",
        "deviceTypeTopicExpression": "Thermometer",
        "timeout": 60000,
        "attributes": [
          {
            "type": "string",
            "key": "model",
            "value": "${sensorModel}"
          }
        ],
        "timeseries": [
          {
            "type": "double",
            "key": "temperature",
            "value": "${temp}"
          },
          {
            "type": "double",
            "key": "humidity",
            "value": "${hum}"
          }
        ]
      }
    },
    {
      "topicFilter": "/custom/sensors/+",
      "converter": {
        "type": "custom",
        "extension": "CustomMqttUplinkConverter",
        "extension-config": {
            "temperatureBytes" : 2,
            "humidityBytes" :  2,
            "batteryLevelBytes" : 1
        }
      }
    }
  ],
  "connectRequests": [
    {
      "topicFilter": "sensor/connect",
      "deviceNameJsonExpression": "${SerialNumber}"
    },
    {
      "topicFilter": "sensor/+/connect",
      "deviceNameTopicExpression": "(?<=sensor\/)(.*?)(?=\/connect)"
    }
  ],
  "disconnectRequests": [
    {
      "topicFilter": "sensor/disconnect",
      "deviceNameJsonExpression": "${SerialNumber}"
    },
    {
      "topicFilter": "sensor/+/disconnect",
      "deviceNameTopicExpression": "(?<=sensor\/)(.*?)(?=\/disconnect)"
    }
  ]
}

Log:

systemd[1]: Started ThingsBoard Gateway.
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_gateway_service - 74 - Gateway starting...'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_updater - 68 - Checking for new version'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_gateway_service - 79 - ThingsBoard IoT gateway version: 2.7'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_client - 128 - connecting to ThingsBoard'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_device_mqtt - 304 - Subscribed to * with id 1'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_gateway_mqtt - 176 - Subscribed to *|* with id 1 for device *'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_logger - 37 - Added remote handler to log service'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_logger - 37 - Added remote handler to log extension'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_logger - 37 - Added remote handler to log converter'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_logger - 37 - Added remote handler to log connector'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_logger - 37 - Added remote handler to log tb_connection'
python3[2033]: ''2022-07-25 18:36:12' - WARNING - tb_gateway_service - 118 - Remote shell is enabled. Please be carefully with this feature.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - memory_event_storage - 26 - Memory storage created with following configuration:
python3[2033]: Max size: 100000
python3[2033]: Read records per time: 100'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_remote_configurator - 97 - Current configuration has been sent to ThingsBoard: {"thingsboard": {"thingsboard": {"host": "localhost", "port": 1883, "remoteShell": true, "remoteConfiguration": true, "security": {"accessToken": "
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 35 - Root path is: /usr/local/lib/python3.6/site-packages/thingsboard_gateway'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 37 - Debian installation extensions folder exists.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='MqttConnector', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c338128>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt/custom_mqtt_uplink_conver
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='MqttConnector', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c338cc0>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converte
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='MqttConnector', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c352080>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt/mqtt_connector.py')'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_loader - 66 - Import MqttConnector from /usr/local/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in mapping handler: {"topicFilter": "+/devices/+/up", "converter": {"type": "json", "deviceNameJsonExpression": "${end_device_ids.dev_eui}", "deviceTypeJsonExpression": "LHT65", "d
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'converter' found in mapping handler: {"topicFilter": "+/devices/+/up", "converter": {"type": "json", "deviceNameJsonExpression": "${end_device_ids.dev_eui}", "deviceTypeJsonExpression": "LHT65", "dev
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - mapping handler has all mandatory keys => accepted: {"topicFilter": "+/devices/+/up", "converter": {"type": "json", "deviceNameJsonExpression": "${end_device_ids.dev_eui}", "deviceTypeJsonExpression": "LHT65", "dev
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in mapping handler: {"topicFilter": "/sensor/+/data", "converter": {"type": "json", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/data)", "deviceTypeTopicExpression": "Thermom
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'converter' found in mapping handler: {"topicFilter": "/sensor/+/data", "converter": {"type": "json", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/data)", "deviceTypeTopicExpression": "Thermomet
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - mapping handler has all mandatory keys => accepted: {"topicFilter": "/sensor/+/data", "converter": {"type": "json", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/data)", "deviceTypeTopicExpression": "Thermomet
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in mapping handler: {"topicFilter": "/custom/sensors/+", "converter": {"type": "custom", "extension": "CustomMqttUplinkConverter", "extension-config": {"temperatureBytes": 2, "humi
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'converter' found in mapping handler: {"topicFilter": "/custom/sensors/+", "converter": {"type": "custom", "extension": "CustomMqttUplinkConverter", "extension-config": {"temperatureBytes": 2, "humidi
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - mapping handler has all mandatory keys => accepted: {"topicFilter": "/custom/sensors/+", "converter": {"type": "custom", "extension": "CustomMqttUplinkConverter", "extension-config": {"temperatureBytes": 2, "humidi
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 162 - Number of accepted mapping handlers: 3'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 166 - Number of rejected mapping handlers: 0'
python3[2033]: ''2022-07-25 18:36:12' - ERROR - mqtt_connector - 137 - 'serverSideRpc' section missing from configuration'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in connectRequests handler: {"topicFilter": "sensor/connect", "deviceNameJsonExpression": "${SerialNumber}"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - connectRequests handler has all mandatory keys => accepted: {"topicFilter": "sensor/connect", "deviceNameJsonExpression": "${SerialNumber}"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in connectRequests handler: {"topicFilter": "sensor/+/connect", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/connect)"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - connectRequests handler has all mandatory keys => accepted: {"topicFilter": "sensor/+/connect", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/connect)"}'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 162 - Number of accepted connectRequests handlers: 2'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 166 - Number of rejected connectRequests handlers: 0'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in disconnectRequests handler: {"topicFilter": "sensor/disconnect", "deviceNameJsonExpression": "${SerialNumber}"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - disconnectRequests handler has all mandatory keys => accepted: {"topicFilter": "sensor/disconnect", "deviceNameJsonExpression": "${SerialNumber}"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicFilter' found in disconnectRequests handler: {"topicFilter": "sensor/+/disconnect", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/disconnect)"}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - disconnectRequests handler has all mandatory keys => accepted: {"topicFilter": "sensor/+/disconnect", "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/disconnect)"}'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 162 - Number of accepted disconnectRequests handlers: 2'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 166 - Number of rejected disconnectRequests handlers: 0'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'deviceNameFilter' found in attributeUpdates handler: {"deviceNameFilter": "SmartMeter.*", "attributeFilter": "uploadFrequency", "topicExpression": "sensor/${deviceName}/${attributeKey}", "valueExpres
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'attributeFilter' found in attributeUpdates handler: {"deviceNameFilter": "SmartMeter.*", "attributeFilter": "uploadFrequency", "topicExpression": "sensor/${deviceName}/${attributeKey}", "valueExpress
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'topicExpression' found in attributeUpdates handler: {"deviceNameFilter": "SmartMeter.*", "attributeFilter": "uploadFrequency", "topicExpression": "sensor/${deviceName}/${attributeKey}", "valueExpress
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 150 - Mandatory key 'valueExpression' found in attributeUpdates handler: {"deviceNameFilter": "SmartMeter.*", "attributeFilter": "uploadFrequency", "topicExpression": "sensor/${deviceName}/${attributeKey}", "valueExpress
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 158 - attributeUpdates handler has all mandatory keys => accepted: {"deviceNameFilter": "SmartMeter.*", "attributeFilter": "uploadFrequency", "topicExpression": "sensor/${deviceName}/${attributeKey}", "valueExpression":
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 162 - Number of accepted attributeUpdates handlers: 1'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 166 - Number of rejected attributeUpdates handlers: 0'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_service - 732 - Loaded devices:
python3[2033]: {}'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_service - 408 - Send data Thread has been started successfully.'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_gateway_service - 139 - Gateway started.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_client - 86 - TB client <paho.mqtt.client.Client object at 0x7f3a7d3a1e10> connected to ThingsBoard'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_device_mqtt - 141 - connection SUCCESS'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_mqtt - 66 - Service subscription to topic v1/gateway/attributes - successfully completed.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_mqtt - 66 - Service subscription to topic v1/gateway/attributes/response - successfully completed.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_mqtt - 66 - Service subscription to topic v1/gateway/rpc - successfully completed.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_device_mqtt - 304 - Subscribed to * with id 2'
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_gateway_mqtt - 176 - Subscribed to *|* with id 2 for device *'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_service - 249 - Received data: {'client': {'current_configuration': 'eyJ0aGluZ3Nib2FyZCI6IHsidGhpbmdzYm9hcmQiOiB7Imhvc3QiOiAibG9jYWxob3N0IiwgInBvcnQiOiAxODgzLCAicmVtb3RlU2hlbGwiOiB0cnVlLCAicmVtb3RlQ29uZmlndXJhdGlvbiI6IHRydWUsI
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_gateway_service - 282 - Client attributes received (current_configuration).'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 237 - MQTT Broker Connector connected to eu1.cloud.thethings.network:1883 - successfully.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 243 - Client <paho.mqtt.client.Client object at 0x7f3a7c3381d0>, userdata None, flags {'session present': 0}, extra_params ()'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='JsonMqttUplinkConverter', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c35f5f8>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt/custom_mqtt_upl
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='JsonMqttUplinkConverter', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c35f748>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt/json_mqtt_uplin
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_loader - 66 - Import JsonMqttUplinkConverter from /usr/local/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic +/devices/+/up - found!'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to +/devices/+/up'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic /sensor/+/data - found!'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /sensor/+/data'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - tb_loader - 57 - ModuleSpec(name='CustomMqttUplinkConverter', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3a7c35f9e8>, origin='/usr/local/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt/custom_mqtt_u
python3[2033]: ''2022-07-25 18:36:12' - INFO - tb_loader - 66 - Import CustomMqttUplinkConverter from /usr/local/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt.'
python3[2033]: ''2022-07-25 18:36:12' - DEBUG - mqtt_connector - 259 - Converter CustomMqttUplinkConverter for topic /custom/sensors/+ - found!'
python3[2033]: ''2022-07-25 18:36:12' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /custom/sensors/+'
python3[2033]: ''2022-07-25 18:36:17' - WARNING - tb_updater - 84 - Cannot connect to the update service. PLease check your internet connection.'
python3[2033]: ''2022-07-25 18:37:42' - DEBUG - mqtt_connector - 314 - "MQTT Broker Connector" was disconnected. (<paho.mqtt.client.Client object at 0x7f3a7c3381d0>, None, 7)'
python3[2033]: ''2022-07-25 18:37:43' - INFO - mqtt_connector - 237 - MQTT Broker Connector connected to eu1.cloud.thethings.network:1883 - successfully.'
python3[2033]: ''2022-07-25 18:37:43' - DEBUG - mqtt_connector - 243 - Client <paho.mqtt.client.Client object at 0x7f3a7c3381d0>, userdata None, flags {'session present': 0}, extra_params ()'
python3[2033]: ''2022-07-25 18:37:43' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic +/devices/+/up - found!'
python3[2033]: ''2022-07-25 18:37:43' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to +/devices/+/up'
python3[2033]: ''2022-07-25 18:37:43' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic /sensor/+/data - found!'
python3[2033]: ''2022-07-25 18:37:43' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /sensor/+/data'
python3[2033]: ''2022-07-25 18:37:43' - DEBUG - mqtt_connector - 259 - Converter CustomMqttUplinkConverter for topic /custom/sensors/+ - found!'
python3[2033]: ''2022-07-25 18:37:43' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /custom/sensors/+'
python3[2033]: ''2022-07-25 18:39:13' - DEBUG - mqtt_connector - 314 - "MQTT Broker Connector" was disconnected. (<paho.mqtt.client.Client object at 0x7f3a7c3381d0>, None, 7)'
python3[2033]: ''2022-07-25 18:39:15' - INFO - mqtt_connector - 237 - MQTT Broker Connector connected to eu1.cloud.thethings.network:1883 - successfully.'
python3[2033]: ''2022-07-25 18:39:15' - DEBUG - mqtt_connector - 243 - Client <paho.mqtt.client.Client object at 0x7f3a7c3381d0>, userdata None, flags {'session present': 0}, extra_params ()'
python3[2033]: ''2022-07-25 18:39:15' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic +/devices/+/up - found!'
python3[2033]: ''2022-07-25 18:39:15' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to +/devices/+/up'
python3[2033]: ''2022-07-25 18:39:15' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic /sensor/+/data - found!'
python3[2033]: ''2022-07-25 18:39:15' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /sensor/+/data'
python3[2033]: ''2022-07-25 18:39:15' - DEBUG - mqtt_connector - 259 - Converter CustomMqttUplinkConverter for topic /custom/sensors/+ - found!'
python3[2033]: ''2022-07-25 18:39:15' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /custom/sensors/+'
python3[2033]: ''2022-07-25 18:40:45' - DEBUG - mqtt_connector - 314 - "MQTT Broker Connector" was disconnected. (<paho.mqtt.client.Client object at 0x7f3a7c3381d0>, None, 7)'
python3[2033]: ''2022-07-25 18:40:46' - INFO - mqtt_connector - 237 - MQTT Broker Connector connected to eu1.cloud.thethings.network:1883 - successfully.'
python3[2033]: ''2022-07-25 18:40:46' - DEBUG - mqtt_connector - 243 - Client <paho.mqtt.client.Client object at 0x7f3a7c3381d0>, userdata None, flags {'session present': 0}, extra_params ()'
python3[2033]: ''2022-07-25 18:40:46' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic +/devices/+/up - found!'
python3[2033]: ''2022-07-25 18:40:46' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to +/devices/+/up'
python3[2033]: ''2022-07-25 18:40:46' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic /sensor/+/data - found!'
python3[2033]: ''2022-07-25 18:40:46' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /sensor/+/data'
python3[2033]: ''2022-07-25 18:40:46' - DEBUG - mqtt_connector - 259 - Converter CustomMqttUplinkConverter for topic /custom/sensors/+ - found!'
python3[2033]: ''2022-07-25 18:40:46' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /custom/sensors/+'
python3[2033]: ''2022-07-25 18:42:16' - DEBUG - mqtt_connector - 314 - "MQTT Broker Connector" was disconnected. (<paho.mqtt.client.Client object at 0x7f3a7c3381d0>, None, 7)'
python3[2033]: ''2022-07-25 18:42:18' - INFO - mqtt_connector - 237 - MQTT Broker Connector connected to eu1.cloud.thethings.network:1883 - successfully.'
python3[2033]: ''2022-07-25 18:42:18' - DEBUG - mqtt_connector - 243 - Client <paho.mqtt.client.Client object at 0x7f3a7c3381d0>, userdata None, flags {'session present': 0}, extra_params ()'
python3[2033]: ''2022-07-25 18:42:18' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic +/devices/+/up - found!'
python3[2033]: ''2022-07-25 18:42:18' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to +/devices/+/up'
python3[2033]: ''2022-07-25 18:42:18' - DEBUG - mqtt_connector - 259 - Converter JsonMqttUplinkConverter for topic /sensor/+/data - found!'
python3[2033]: ''2022-07-25 18:42:18' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /sensor/+/data'
python3[2033]: ''2022-07-25 18:42:18' - DEBUG - mqtt_connector - 259 - Converter CustomMqttUplinkConverter for topic /custom/sensors/+ - found!'
python3[2033]: ''2022-07-25 18:42:18' - INFO - mqtt_connector - 279 - Connector "MQTT Broker Connector" subscribe to /custom/sensors/+'
python3[2033]: ''2022-07-25 18:43:42' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:42' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic +/devices/+/up subscription message id = 29'
python3[2033]: ''2022-07-25 18:43:42' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:42' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic /sensor/+/data subscription message id = 30'
python3[2033]: ''2022-07-25 18:43:42' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:42' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic /custom/sensors/+ subscription message id = 31'
python3[2033]: ''2022-07-25 18:43:42' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:42' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic sensor/connect subscription message id = 32'
python3[2033]: ''2022-07-25 18:43:43' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:43' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic sensor/+/connect subscription message id = 33'
python3[2033]: ''2022-07-25 18:43:43' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:43' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic sensor/disconnect subscription message id = 34'
python3[2033]: ''2022-07-25 18:43:43' - INFO - mqtt_connector - 320 - ()'
python3[2033]: ''2022-07-25 18:43:43' - ERROR - mqtt_connector - 325 - "MQTT Broker Connector" subscription failed to topic sensor/+/disconnect subscription message id = 35'

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

I really appreciate all your help. Yes, the issue was solved.

Your suggestion about “paho” helped me find a new path to debug few things. Base on that I found this: https://github.com/descartes/TheThingsStack-Integration-Starters/tree/main/MQTT-to-Tab-Python3 and then I could found a couple of issues:

1) One was that my topicFilter was "topicFilter": "/v3/+/devices/+/up" But is should have been this: "topicFilter": "v3/+/devices/+/up" (note: removing the first slash)

2) I had an network problem. Although I could see TTN (ping and telnet worked fine), the Gateway couldn’t talk to. When I used an alternate network, that problem was also solved. For the time being it is enough for my use.

Hi @masthdn, any updates? Can we close the issue?