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.76k stars 846 forks source link

[HELP] Is it possible to run 2 Gateways at the same time? #1573

Closed IhorYednak closed 3 weeks ago

IhorYednak commented 4 weeks ago

Hi guys @imbeacon, @samson0v, could you please let me know if it's possible to run 2 gateways at 1 ubuntu server, cuz I'm trying to make that, I copied the original thingsboard-gateway folder, also copied the thingsboard-gateway service, changed the paths in the service file, but it doesn't work, and gives an error when I try to start the second service. Attached is the screenshot of the error from console

image

Could you please advice?

imbeacon commented 4 weeks ago

Hi @IhorYednak,

You can use setup in docker, but comment exposed port and change path to configuration. It is not possible to run two or more gateways as a service in the same system.

IhorYednak commented 3 weeks ago

Hello @imbeacon , so basically this thing will not work in my case?

image

Once I for example start pushing some data over Postman or opc-ua emulator.