temporary failure in name resolution
After the compose restart on Mondays we often (always?) get Problems with a couple of containers. The dispatcher workers are restarting with the error message below while some other containers are not running at all (see comment below).
They all produce the same error. Just one example:
worker-frost-setup-1 | [2024-03-11 09:33:23,769] 1 INFO dispatcher-main: create_frost_instance: Setup ok, starting service 'create-frost-instance'
worker-frost-setup-1 | Traceback (most recent call last):
worker-frost-setup-1 | File "/home/appuser/app/src/main.py", line 505, in <module>
worker-frost-setup-1 | cli(obj={})
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
worker-frost-setup-1 | return self.main(*args, **kwargs)
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main
worker-frost-setup-1 | rv = self.invoke(ctx)
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
worker-frost-setup-1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
worker-frost-setup-1 | return ctx.invoke(self.callback, **ctx.params)
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
worker-frost-setup-1 | return __callback(*args, **kwargs)
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
worker-frost-setup-1 | return f(get_current_context(), *args, **kwargs)
worker-frost-setup-1 | File "/home/appuser/app/src/main.py", line 499, in create_frost_instance
worker-frost-setup-1 | handler.run_loop()
worker-frost-setup-1 | File "/home/appuser/app/src/AbstractHandler.py", line 78, in run_loop
worker-frost-setup-1 | self.subscribe_to_mqtt_topic()
worker-frost-setup-1 | File "/home/appuser/app/src/AbstractHandler.py", line 72, in subscribe_to_mqtt_topic
worker-frost-setup-1 | self.connect_mqtt()
worker-frost-setup-1 | File "/home/appuser/app/src/AbstractHandler.py", line 69, in connect_mqtt
worker-frost-setup-1 | self.mqtt_client.connect(self.mqtt_host, self.mqtt_port)
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 914, in connect
worker-frost-setup-1 | return self.reconnect()
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1044, in reconnect
worker-frost-setup-1 | sock = self._create_socket_connection()
worker-frost-setup-1 | File "/home/appuser/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
worker-frost-setup-1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
worker-frost-setup-1 | File "/usr/lib/python3.9/socket.py", line 822, in create_connection
worker-frost-setup-1 | for res in getaddrinfo(host, port, 0, SOCK_STREAM):
worker-frost-setup-1 | File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
worker-frost-setup-1 | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
worker-frost-setup-1 | socket.gaierror: [Errno -3] Temporary failure in name resolution
Edited by Joost Hemmen