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
Diagnostics (Proof of Configuration):
I have verified that the configuration file is present and the environment variable is correctly configured inside the container:
- File Existence (docker exec ... ls -l):
-rwxrwxrwx 1 root root 197 Jun 29 09:20 /thingsboard_gateway/config/tb_gateway.yaml
- File Content (docker exec ... cat):
YAML
thingsboard:
host: "thingsboard-ce"
port: 1883
security:
accessToken: "token"
connectors:
- name: BACnet Connector
type: bacnet
configuration: bacnet.json
- 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?
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:
-rwxrwxrwx 1 root root 197 Jun 29 09:20 /thingsboard_gateway/config/tb_gateway.yaml
YAML
thingsboard:
host: "thingsboard-ce"
port: 1883
security:
accessToken: "token"
connectors:
type: bacnet
configuration: bacnet.json
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?