5/15/2023 4:17:10 PMStarting v2.10.6 agent connected to 5/15/2023 4:17:10 PMhttps://api.prefect.cloud/api/accounts/df47f346-518b-450b-938b-dd822df71fca/work 5/15/2023 4:17:10 PMspaces/9fe5bba3-b6f7-4d84-8432-318e63852a2b... 5/15/2023 4:17:10 PM 5/15/2023 4:17:10 PM ___ ___ ___ ___ ___ ___ _____ _ ___ ___ _ _ _____ 5/15/2023 4:17:10 PM | _ \ _ \ __| __| __/ __|_ _| /_\ / __| __| \| |_ _| 5/15/2023 4:17:10 PM | _/ / _|| _|| _| (__ | | / _ \ (_ | _|| .` | | | 5/15/2023 4:17:10 PM |_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_| 5/15/2023 4:17:10 PM 5/15/2023 4:17:10 PM 5/15/2023 4:17:10 PMAgent started! Looking for work from queue(s): local... 5/15/2023 4:19:08 PM21:19:08.101 | INFO | prefect.agent - Submitting flow run '80cf7c15-d58a-4468-bc39-81ae18c4570e' 5/15/2023 4:19:08 PM21:19:08.714 | ERROR | prefect.agent - Failed to submit flow run '80cf7c15-d58a-4468-bc39-81ae18c4570e' to infrastructure. 5/15/2023 4:19:08 PMTraceback (most recent call last): 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen 5/15/2023 4:19:08 PM httplib_response = self._make_request( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request 5/15/2023 4:19:08 PM conn.request(method, url, **httplib_request_kw) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1283, in request 5/15/2023 4:19:08 PM self._send_request(method, url, body, headers, encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1329, in _send_request 5/15/2023 4:19:08 PM self.endheaders(body, encode_chunked=encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1278, in endheaders 5/15/2023 4:19:08 PM self._send_output(message_body, encode_chunked=encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1038, in _send_output 5/15/2023 4:19:08 PM self.send(msg) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 976, in send 5/15/2023 4:19:08 PM self.connect() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/transport/unixconn.py", line 30, in connect 5/15/2023 4:19:08 PM sock.connect(self.unix_socket) 5/15/2023 4:19:08 PMFileNotFoundError: [Errno 2] No such file or directory 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMDuring handling of the above exception, another exception occurred: 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMTraceback (most recent call last): 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send 5/15/2023 4:19:08 PM resp = conn.urlopen( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen 5/15/2023 4:19:08 PM retries = retries.increment( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment 5/15/2023 4:19:08 PM raise six.reraise(type(error), error, _stacktrace) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise 5/15/2023 4:19:08 PM raise value.with_traceback(tb) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen 5/15/2023 4:19:08 PM httplib_response = self._make_request( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request 5/15/2023 4:19:08 PM conn.request(method, url, **httplib_request_kw) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1283, in request 5/15/2023 4:19:08 PM self._send_request(method, url, body, headers, encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1329, in _send_request 5/15/2023 4:19:08 PM self.endheaders(body, encode_chunked=encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1278, in endheaders 5/15/2023 4:19:08 PM self._send_output(message_body, encode_chunked=encode_chunked) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 1038, in _send_output 5/15/2023 4:19:08 PM self.send(msg) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/http/client.py", line 976, in send 5/15/2023 4:19:08 PM self.connect() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/transport/unixconn.py", line 30, in connect 5/15/2023 4:19:08 PM sock.connect(self.unix_socket) 5/15/2023 4:19:08 PMurllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMDuring handling of the above exception, another exception occurred: 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMTraceback (most recent call last): 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 214, in _retrieve_server_version 5/15/2023 4:19:08 PM return self.version(api_version=False)["ApiVersion"] 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/api/daemon.py", line 181, in version 5/15/2023 4:19:08 PM return self._result(self._get(url), json=True) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/utils/decorators.py", line 46, in inner 5/15/2023 4:19:08 PM return f(self, *args, **kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 237, in _get 5/15/2023 4:19:08 PM return self.get(url, **self._set_request_timeout(kwargs)) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 600, in get 5/15/2023 4:19:08 PM return self.request("GET", url, **kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request 5/15/2023 4:19:08 PM resp = self.send(prep, **send_kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send 5/15/2023 4:19:08 PM r = adapter.send(request, **kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 547, in send 5/15/2023 4:19:08 PM raise ConnectionError(err, request=request) 5/15/2023 4:19:08 PMrequests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMDuring handling of the above exception, another exception occurred: 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMTraceback (most recent call last): 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 92, in _get_docker_client 5/15/2023 4:19:08 PM docker_client = docker.from_env() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/client.py", line 96, in from_env 5/15/2023 4:19:08 PM return cls( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/client.py", line 45, in __init__ 5/15/2023 4:19:08 PM self.api = APIClient(*args, **kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 197, in __init__ 5/15/2023 4:19:08 PM self._version = self._retrieve_server_version() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 221, in _retrieve_server_version 5/15/2023 4:19:08 PM raise DockerException( 5/15/2023 4:19:08 PMdocker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMThe above exception was the direct cause of the following exception: 5/15/2023 4:19:08 PM 5/15/2023 4:19:08 PMTraceback (most recent call last): 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 490, in _submit_run_and_capture_errors 5/15/2023 4:19:08 PM result = await infrastructure.run(task_status=task_status) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 322, in run 5/15/2023 4:19:08 PM container = await run_sync_in_worker_thread(self._create_and_start_container) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 91, in run_sync_in_worker_thread 5/15/2023 4:19:08 PM return await anyio.to_thread.run_sync( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync 5/15/2023 4:19:08 PM return await get_asynclib().run_sync_in_worker_thread( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread 5/15/2023 4:19:08 PM return await future 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run 5/15/2023 4:19:08 PM result = context.run(func, *args) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 423, in _create_and_start_container 5/15/2023 4:19:08 PM docker_client = self.image_registry.get_docker_client() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 248, in coroutine_wrapper 5/15/2023 4:19:08 PM return run_async_from_worker_thread(async_fn, *args, **kwargs) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 177, in run_async_from_worker_thread 5/15/2023 4:19:08 PM return anyio.from_thread.run(call) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/from_thread.py", line 49, in run 5/15/2023 4:19:08 PM return asynclib.run_async_from_thread(func, *args) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 970, in run_async_from_thread 5/15/2023 4:19:08 PM return f.result() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result 5/15/2023 4:19:08 PM return self.__get_result() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result 5/15/2023 4:19:08 PM raise self._exception 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 150, in get_docker_client 5/15/2023 4:19:08 PM client = await run_sync_in_worker_thread( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 91, in run_sync_in_worker_thread 5/15/2023 4:19:08 PM return await anyio.to_thread.run_sync( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync 5/15/2023 4:19:08 PM return await get_asynclib().run_sync_in_worker_thread( 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread 5/15/2023 4:19:08 PM return await future 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run 5/15/2023 4:19:08 PM result = context.run(func, *args) 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 67, in _login 5/15/2023 4:19:08 PM client = self._get_docker_client() 5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 95, in _get_docker_client 5/15/2023 4:19:08 PM raise RuntimeError("Could not connect to Docker.") from exc 5/15/2023 4:19:08 PMRuntimeError: Could not connect to Docker. 5/15/2023 4:19:08 PM21:19:08.728 | INFO | prefect.agent - Completed submission of flow run '80cf7c15-d58a-4468-bc39-81ae18c4570e'