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

[BUG] MQTTErrorCode.MQTT_ERR_CONN_LOST #1598

Open
pro100805 opened this issue Nov 15, 2024 · 0 comments
Open

[BUG] MQTTErrorCode.MQTT_ERR_CONN_LOST #1598

pro100805 opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels

Comments

@pro100805
Copy link

a clean installation was performed
the gateway does not want to connect to the TB server

● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-11-15 11:23:41 UTC; 4s ago
Main PID: 10627 (python3)
Tasks: 6 (limit: 2225)
Memory: 46.2M
CPU: 444ms
CGroup: /system.slice/thingsboard-gateway.service
└─10627 /var/lib/thingsboard_gateway/venv/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"

Nov 15 11:23:41 test-22-04-4 systemd[1]: Started ThingsBoard Gateway.
Nov 15 11:23:42 test-22-04-4 python3[10627]: 2024-11-15 11:23:42 - |INFO| - [tb_gateway_service.py] - tb_gateway_service - init - 185 - Gateway starting...
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |INFO| - [tb_gateway_service.py] - tb_gateway_service - init - 193 - ThingsBoard IoT gateway version: 3.6.1
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |INFO| - [tb_gateway_service.py] - tb_gateway_service - _load_connectors - 961 - Connectors - not found, waiting for remote configuration.
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |INFO| - [tb_client.py] - tb_client - connect - 322 - Connecting to ThingsBoard...
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |INFO| - [tb_client.py] - tb_client - connect - 326 - Sending connect to platform...
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |INFO| - [tb_client.py] - tb_client - connect - 329 - Connect msg sent to platform.
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |ERROR| - [tb_device_mqtt.py] - tb_device_mqtt - _on_connect - 449 - connection FAIL with error Bad user name or password Bad user name or password
Nov 15 11:23:43 test-22-04-4 python3[10627]: 2024-11-15 11:23:43 - |WARNING| - [tb_device_mqtt.py] - tb_device_mqtt - _on_disconnect - 427 - MQTT client was disconnected with reason code MQTTErrorCode.MQTT_ERR_PROTOCOL (A network protocol error occurred when communicating with the broker.)
Nov 15 11:23:44 test-22-04-4 python3[10627]: 2024-11-15 11:23:44 - |INFO| - [tb_client.py] - tb_client - connect - 322 - Connecting to ThingsBoard...

  • OS:Ubuntu Server 22.04.4
  • Thingsboard 3.8.1
  • IoT Gateway 3.6.1
  • Python 3.10.12
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