Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] AttributeError: 'TBGatewayMqttClient' #1566

Closed
pro100805 opened this issue Oct 21, 2024 · 1 comment
Closed

[HELP] AttributeError: 'TBGatewayMqttClient' #1566

pro100805 opened this issue Oct 21, 2024 · 1 comment
Assignees
Labels

Comments

@pro100805
Copy link

  • OS: 22.04
  • Thingsboard 3.8.1
  • IoT Gateway version 3.5.3.1
  • Python version 3.10

● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-10-21 20:21:39 CEST; 4min 29s ago
Main PID: 1422 (python3)
Tasks: 15 (limit: 2225)
Memory: 56.7M
CPU: 48.228s
CGroup: /system.slice/thingsboard-gateway.service
└─1422 /usr/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"

Oct 21 20:26:05 tb-gw-server python3[1422]: AttributeError: 'TBGatewayMqttClient' object has no attribute 'rate_limits_received'
Oct 21 20:26:05 tb-gw-server python3[1422]: 2024-10-21 20:26:05 - |ERROR| - [tb_logger.py] - tb_logger - exception - 161 - 'TBGatewayMqttClient' object has no attribute 'rate_limits_received'
Oct 21 20:26:05 tb-gw-server python3[1422]: Traceback (most recent call last):
Oct 21 20:26:05 tb-gw-server python3[1422]: File "/usr/local/lib/python3.10/dist-packages/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 395, in __poll_device
Oct 21 20:26:05 tb-gw-server python3[1422]: device_connected = self.__gateway.add_device(device.device_name, {CONNECTOR_PARAMETER: self},
Oct 21 20:26:05 tb-gw-server python3[1422]: File "/usr/local/lib/python3.10/dist-packages/thingsboard_gateway/gateway/tb_gateway_service.py", line 1719, in add_device
Oct 21 20:26:05 tb-gw-server python3[1422]: if self.tb_client is None or not self.tb_client.is_connected():
Oct 21 20:26:05 tb-gw-server python3[1422]: File "/usr/local/lib/python3.10/dist-packages/thingsboard_gateway/gateway/tb_client.py", line 248, in is_connected
Oct 21 20:26:05 tb-gw-server python3[1422]: return self.__is_connected and self.client.rate_limits_received
Oct 21 20:26:05 tb-gw-server python3[1422]: AttributeError: 'TBGatewayMqttClient' object has no attribute 'rate_limits_received'

tb_connection.log

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/thingsboard_gateway/gateway/tb_client.py", line 265, in _on_connect
if result_code.getName().lower() == "connection rate exceeded":
AttributeError: 'int' object has no attribute 'getName'

@pro100805
Copy link
Author

After upgrading the Gateway, the configuration file needs to be modified

@pro100805 pro100805 changed the title [BUG] [BUG] AttributeError: 'TBGatewayMqttClient' Oct 21, 2024
@pro100805 pro100805 changed the title [BUG] AttributeError: 'TBGatewayMqttClient' [HELP] AttributeError: 'TBGatewayMqttClient' Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants