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.71k stars 824 forks source link

[HELP]iot gateway cannot connect to thingsboard (as the log says) [HELP] #1470

Open stevechen2013 opened 1 month ago

stevechen2013 commented 1 month ago

Describe the issue thingsboard CE version locally installed on a ubuntu os thingsboard iot gateway locally installed via docker+linux per instructions : https://thingsboard.io/docs/iot-gateway/install/docker-installation/

the terminal log of thingsboard iot gateway shows error of 'connection refused' while it appears to be active in the thingsboard dashboard.

Configuration (Attach your configuration file) as default Notate: Remove Access token from file if you want to attach a tb_gateway.yaml

Connector name (If you need help with some connector/converter): no connector

Error traceback (If it was raised):

[tb_client.py] tb_client connect 288 connection refused, check thingsboard is running

while on the thingsboard ui at localhost:8080, the iot gateway is active shown in the dashboard

Versions (please complete the following information):

tatuiot commented 1 month ago

Describe the issue thingsboard CE version locally installed on a ubuntu os thingsboard iot gateway locally installed via docker+linux per instructions : https://thingsboard.io/docs/iot-gateway/install/docker-installation/

the terminal log of thingsboard iot gateway shows error of 'connection refused' while it appears to be active in the thingsboard dashboard.

Configuration (Attach your configuration file) as default Notate: Remove Access token from file if you want to attach a tb_gateway.yaml

Connector name (If you need help with some connector/converter): no connector

Error traceback (If it was raised):

[tb_client.py] tb_client connect 288 connection refused, check thingsboard is running

while on the thingsboard ui at localhost:8080, the iot gateway is active shown in the dashboard

Versions (please complete the following information):

* OS: ubuntu

* Thingsboard IoT Gateway version [3.4]

* Python version[3.10]

Hi, there is a config setup you need to configure. /etc/thingsboard-gateway/config/tb_config.json you need to specify where you want the gateway to report to ... in my case the TB Server CE . then you need to create a gateway device into the TB Server, get the credential to place it into the file mentioned above. Once you have that... then you should create a dashboard to see if the gateway is connected. it is so tricky, I have spent over a month so far. I can send data and RPCs from TB Server... let me know If you managed to install the gateway using which method, each method has its own difficulty...