Closed yucelzengin closed 1 year ago
@sagIoTPower do you see where that comes from?
In the new commit I added code to continue in case that the mqqt broker isn't up and running yet. This way the container isn't constantly rstarted.
@yucelzengin : Couls you test this agian.
Regards Christof
Closing due to lack of response. Please reopen if your problem still persists.
it is an infinitive re-start loop.
LOGS: Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
Connecting Mongo
Running MQTT tedge 8883
File "/usr/local/lib/python3.10/socket.py", line 824, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno -2] Name or service not known
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
File "/app/main.py", line 9, in
File "/app/mqtt.py", line 46, in run
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 914, in connect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1044, in reconnect
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883
Connecting Mongo
Running MQTT tedge 8883