Skip to content

[HELP] ThingsBoard Gateway (v3.8.3) ignores mapped tb_gateway.yaml and environment variables, reverts to thingsboard.cloud #2142

Description

@WanSu92

issue
I am running the ThingsBoard Gateway in a Docker environment. Despite successfully mounting my custom tb_gateway.yaml and setting the TB_GATEWAY_CONFIG_FILE environment variable, the gateway ignores the local configuration and attempts to connect to thingsboard.cloud.

Environment

  • Gateway Version: 3.8.3

  • Deployment: Docker Compose

  • Platform: Windows

Diagnostics (Proof of Configuration):
I have verified that the configuration file is present and the environment variable is correctly configured inside the container:

  1. File Existence (docker exec ... ls -l):

-rwxrwxrwx 1 root root 197 Jun 29 09:20 /thingsboard_gateway/config/tb_gateway.yaml

  1. File Content (docker exec ... cat):

YAML
thingsboard:
host: "thingsboard-ce"
port: 1883
security:
accessToken: "token"
connectors:

  • name: BACnet Connector
    type: bacnet
    configuration: bacnet.json
  1. Environment Variable (docker exec ... printenv):
    TB_GATEWAY_CONFIG_FILE=/thingsboard_gateway/config/tb_gateway.yaml

Observed Logs:
Despite the above, the logs show:
[tb_client.py] - __send_connect - 477 - Sending connect to thingsboard.cloud:1883
[tb_device_mqtt.py] - _on_connect - 616 - Connection failed with result code 134 (Bad user name or password)

Question: Is there an additional step or specific constraint in v3.8.3 preventing the gateway from consuming the provided configuration file path, even when explicitly set via environment variables?

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions