You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using flask with uwsgi and nginx to accept webhooks from a private instance of The Things Stack and then trying to post mqtt commands to control the IO devices in the field. I can connect using paho to create a client and post data. When I try to use flask_mqtt the client connects and then gives an error message:
16 Error: Received CONNACK (0, 0)
16 Error: Sending PINGREQ
16 Error: Received PINGRESP
16 Error: Sending PINGREQ
etc
I am using flask with uwsgi and nginx to accept webhooks from a private instance of The Things Stack and then trying to post mqtt commands to control the IO devices in the field. I can connect using paho to create a client and post data. When I try to use flask_mqtt the client connects and then gives an error message:
16 Error: Received CONNACK (0, 0)
16 Error: Sending PINGREQ
16 Error: Received PINGRESP
16 Error: Sending PINGREQ
etc
On the server side, the logs show:
stack_1 | INFO Connected application_uid=pump-control namespace=applicationserver/io/mqtt remote_addr=10.10.10.204:53803
stack_1 | WARN Failed to setup connection error=read tcp 172.18.0.4:8883->10.10.10.204:58855: i/o timeout namespace=applicationserver/io/mqtt remote_addr=10.10.10.204:58855
stack_1 | WARN Error receiving packet client_id=10.10.10.204:53803-62209089971114 error=read tcp 172.18.0.4:8883->10.10.10.204:53803: i/o timeout namespace=applicationserver/io/mqtt server_name=barn.blammo.co.nz username=pump-control
stack_1 | WARN Error when reading packet application_uid=pump-control error=read tcp 172.18.0.4:8883->10.10.10.204:53803: i/o timeout namespace=applicationserver/io/mqtt remote_addr=10.10.10.204:53803
It works fine if I just use the paho mqtt client, it runs happily as a service.
working source with some connection details removed.
While this connects and then immediately disconnects
the following is the uwsgi.ini I use,
Any advice on where I'm going wrong would be much appreciated,
cheers
The text was updated successfully, but these errors were encountered: