thingsboard-gateway: thingsboard gateway installation problem

Wanted to install thingsboard gateway following the instruction in: https://thingsboard.io/docs/iot-gateway/getting-started/

It went well to some extent and have this configuration file under /etc/thingsboard-gateway/config/tb_gateway.yaml

thingsboard:
  host: thingsboard.cloud
  port: 1883
  remoteShell: false
  remoteConfiguration: false
  statsSendPeriodInSeconds: 3600
  minPackSendDelayMS: 0
  checkConnectorsConfigurationInSeconds: 60
  security:
    accessToken: MY_GW_ACCESS_TOKEN
...
...
connectors:
  -
    name: MQTT Broker Connector
    type: mqtt
    configuration: mqtt.json

Change the Access Token with my gateway access token.

Restarted it.

systemctl restart thingsboard-gateway

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
'thingsboard-gateway.service'を再起動するには認証が必要です。(it says that to restart thingsboard-gateway I need to authorize)
Authenticating as: kenkyu,,, (kenkyu)
Password:
==== AUTHENTICATION COMPLETE ===

But after that, when I used to check status, it gives the following error message.

$ systemctl status thingsboard-gateway
● thingsboard-gateway.service - ThingsBoard Gateway
     Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2022-03-03 20:03:51 JST; 33min ago
    Process: 178691 ExecStart=/usr/bin/python3 -c from thingsboard_gateway.tb_gateway import daemon; daemon() (code=exited, status=1/FAILURE)
   Main PID: 178691 (code=exited, status=1/FAILURE)

 3月 03 20:03:51 spf python3[178691]:     create_key=_descriptor._internal_create_key,
 3月 03 20:03:51 spf python3[178691]: AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
 3月 03 20:03:51 spf systemd[1]: Started ThingsBoard Gateway.
 3月 03 20:03:51 spf systemd[1]: thingsboard-gateway.service: Main process exited, code=exited, status=1/FAILURE
 3月 03 20:03:51 spf systemd[1]: thingsboard-gateway.service: Failed with result 'exit-code'.
 3月 03 20:03:51 spf systemd[1]: thingsboard-gateway.service: Scheduled restart job, restart counter is at 5.
 3月 03 20:03:51 spf systemd[1]: Stopped ThingsBoard Gateway.
 3月 03 20:03:51 spf systemd[1]: thingsboard-gateway.service: Start request repeated too quickly.
 3月 03 20:03:51 spf systemd[1]: thingsboard-gateway.service: Failed with result 'exit-code'.
 3月 03 20:03:51 spf systemd[1]: Failed to start ThingsBoard Gateway.

Any help would be very much appreciated.

  • OS: [e.g. Ubuntu 20.04]
  • Thingsboard version 3.3.2
  • Thingsboard IoT Gateway version [3.0.1-1]
  • Python version[3.8]

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

Thank you for all the helps. Yes, you can close this issue. If needed I will open a new one later one.