Closed santobedi closed 2 years ago
Hi @santobedi, when you run only thingsboard-gateway, that's run gateway as a terminal app but not as a background task (as a service), for this reason, when you logged out from your server, the terminal close all "foreground" task. For more understanding example: if you run the VIM/Nano/Emacs in your terminal and logged out, the text editor will close. Thanks for your interest in ThingsBoard IoT Gateway!
@samson0v Thank you for the reply. My system is working properly now (after starting the gateway). However, I still wonder about the frequent 'Disconnected' debug msg (it happens after rerunning the gateway with python command and the 'thingsboard-gateway' command. Is it a normal behavior?
@santobedi no, it is very strange behaviour.
Hi @santobedi ,
How many configuration do you have in mqtt.json for devices and datapoints? It looks like processing take much time and client disconnects.
@zbeacon It happens even without using the MQTT connector. For example, I'm implementing other protocols like Modbus and BACnet (separately at different Raspberry Pi), I still can see such frequent disconnects.
Hi @santobedi, in Gateway version 2.9 was added minPackSendDelayMS
argument to the main config file to send a lot of data in the one package.
For example:
Try to use it and let us know if it helps.
Thanks for your interest in ThingsBoard IoT Gateway!
Hi @santobedi, did it help, can we close the issue?
Hello @samson0v , I've not used Version 2.9 yet. I hope it will solve the issue. It's fine to close the issue. Thank you.
Describe the issue
Why is the client getting disconnected frequently? I can see a device being created in my Web UI (as per deviceNameJsonExpression and deviceTypeJsonExpression in my mqtt.json file) and the telemetry is being updated on this device. However, when I exit out of MobaXterm (the tool I'm using to access my microcomputer where thingboard gateway is installed), the telemetry is no longer updated.
UPDATE: If I run sudo systemctl start thingsboard-gateway , I've no problem at all. What does really happen when I run only thingsboard-gateway command as mentioned here?
Connector name (If you need help with some connector/converter): MQTT Connector