Closed l33tkrew closed 2 years ago
Hi @l33tkrew, please, send the command that you used to run the container or docker-compose file.
Part of my docker-compose file
tb-gateway:
restart: always
image: "thingsboard/tb-gateway"
container_name: gateway
ports:
- "5000:5000"
volumes:
- ./gateway/config:/thingsboard_gateway/config
- ./gateway/logs:/thingsboard_gateway/logs
- ./gateway/extensions:/thingsboard_gateway/extensions
I run docker-compose up -d to create non stop containers (restart: always).
I manage the containers in VSCode Docker extension. When I activate the REST connector, and restart container to apply changes. The container restarts itself again and again. Because the container gives error logs after appying the changes. When I disabled the rest connector in tb_gateway.yaml file, the container starts working.
Extra question:
When modifying the REST.connector host address. Should I paste the 127.0.0.1 or the container's own address?
@l33tkrew try to set host: 0.0.0.0
and expose
the port in docker-compose file.
I will set REST.connector's host address to 0.0.0.0 then I will expose 5000:5000 in docker-compose file. Is that correct?
@l33tkrew yes
Describe the issue I can connect my mqtt broker container with tb-gateway container without any problem. But, when i enable the rest connector, the tb-gateway container restart itself continously. I attached the error logs and my rest configuration file.
Configuration (Attach your configuration file) tbgateway.conf
Rest connector configuration. The port 5000:5000 is open for tb-gateway container. The host address is container's own address. I also tried 127.0.0.1. It also causes the same error.
Connector name (If you need help with some connector/converter): [REST Connector]
Error traceback (If it was raised):
Versions (please complete the following information):