thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.69k stars 819 forks source link

[HELP] Remote Configuration: Too large message #1254

Open devaskim opened 8 months ago

devaskim commented 8 months ago

Describe the issue After enabling remoteConfiguration option I see a lot of the following messages in the gateway logs:

thingsboard-gateway  | 2023-12-10 08:15:53 - |DEBUG| - [tb_device_mqtt.py] - tb_device_mqtt - _on_disconnect - 205 - Disconnected client: <paho.mqtt.client.Client object at 0x7f8255c045d0>, user data: None, result code: 7

while in a server log

2023-12-10 08:16:23,228 [nioEventLoopGroup-4-12] ERROR o.t.s.t.mqtt.MqttTransportHandler - [e58f2d14-914c-47c7-92d8-180e40d38fd1] Message decoding failed: too large message: 148657 bytes

Then I set NETTY_MAX_PAYLOAD_SIZE server option to 1000000 and restart, but no success result Скриншот 10-12-2023 142853

Connector name (If you need help with some connector/converter): There is one connector of MQTT type with the following config. Gateway payload size is: "maxPayloadSizeBytes": 1024000, mqtt.json

Versions (please complete the following information):

devaskim commented 7 months ago

@imbeacon Any ideas?

imbeacon commented 7 months ago

Hi @devaskim,

Disconnect event - it is OK in case of updating general configuration on the dashboard, but 2023-12-10 08:16:23,228 [nioEventLoopGroup-4-12] ERROR o.t.s.t.mqtt.MqttTransportHandler - [e58f2d14-914c-47c7-92d8-180e40d38fd1] Message decoding failed: too large message: 148657 bytes - is an issue and we will investigate this point.

devaskim commented 6 months ago

@imbeacon Any updates there ?

ashdam commented 3 weeks ago

@imbeacon same problem here with the message size while trying to update from TB Edge PE adding a new connector with lots of timeseries.

ERROR o.t.s.t.mqtt.MqttTransportHandler - [6b2c0903-1ed6-4cad-9dde-888c5bc7369f] Message decoding failed: too large message: 485452 bytes