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.76k stars 845 forks source link

[HELP] Timeout while waiting for service configuration!, session will use default configuration #1545

Closed devaskim closed 1 month ago

devaskim commented 1 month ago

Describe the issue After upgrading gateway to 3.5.2 I observe slowing down first data push after gateway is started. Seems like even with disabled remoteConfiguration option, gateway requests some information from a server (TB CE 3.7.0).

2024-09-29 12:18:36 - |INFO| - [tb_gateway_service.py] - tb_gateway_service - __init__ - 246 - Gateway started.
2024-09-29 12:19:31 - |WARNING| - [tb_gateway_mqtt.py] - tb_gateway_mqtt - __on_service_configuration - 320 - Timeout while waiting for service configuration!, session will use default configuration.

What should be done on server side or on gateway side to speed up first push and to get rid of the following warning?

Versions (please complete the following information):

imbeacon commented 1 month ago

Hi @devaskim,

You are right, starting from ThingsBoard 3.8.0 - gateway will be able to get session limitations, like rate limits, maximal payload size, max inflight messages, it takes some time. Such as this functionality not present in previous versions - this request fails with timeout and uses default or manually configured rate limits. This request sends once, right after connect, so it won’t affect much data processing after connecting to ThingsBoard.

devaskim commented 1 month ago

@imbeacon Thanks for quick response