DEBUG:foris_controller.buses.mqtt:Publishing response '{'kind': 'reply', 'module': 'subordinates', 'action': 'add_sub', 'data': {'result': True, 'controller_id': '0000000D30000165'}}' to 'foris-controller/0000000B00009CD6/reply/d5c59202-7bf0-46db-93dd-c25c6513c06f'
Exception in thread worker-d5c59202-7bf0-46db-93dd-c25c6513c06f:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/foris_controller/buses/mqtt.py", line 229, in work
**kwargs,
File "/usr/lib/python3.6/site-packages/paho/mqtt/publish.py", line 231, in single
multiple([msg], hostname, port, client_id, keepalive, will, auth, tls, protocol, transport)
File "/usr/lib/python3.6/site-packages/paho/mqtt/publish.py", line 182, in multiple
client.connect(hostname, port, keepalive)
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 700, in connect
return self.reconnect()
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 822, in reconnect
sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
File "/usr/lib/python3.6/socket.py", line 722, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/site-packages/foris_controller/buses/mqtt.py", line 235, in work
**kwargs,
File "/usr/lib/python3.6/site-packages/paho/mqtt/publish.py", line 231, in single
multiple([msg], hostname, port, client_id, keepalive, will, auth, tls, protocol, transport)
File "/usr/lib/python3.6/site-packages/paho/mqtt/publish.py", line 182, in multiple
client.connect(hostname, port, keepalive)
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 700, in connect
return self.reconnect()
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 822, in reconnect
sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
File "/usr/lib/python3.6/socket.py", line 722, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
DEBUG:foris_client.buses.mqtt:Client connected.