jpuris
11/04/2022, 6:21 PMNov 04 18:03:30 ip-172-31-30-84 prefect[242862]: 18:03:30.621 | ERROR | prefect.agent - Invalid input ConnectionInputs.RECV_PING in state ConnectionState.CLOSED
Nov 04 18:03:30 ip-172-31-30-84 prefect[242862]: Traceback (most recent call last):
Nov 04 18:03:30 ip-172-31-30-84 prefect[242862]: File "/home/prefect/insights-prefect-flows/venv/lib/python3.10/site-packages/h2/connection.py", line 224, in process_input
Nov 04 18:03:30 ip-172-31-30-84 prefect[242862]: func, target_state = self._transitions[(self.state, input_)]
Nov 04 18:03:30 ip-172-31-30-84 prefect[242862]: KeyError: (<ConnectionState.CLOSED: 3>, <ConnectionInputs.RECV_PING: 14>)
Full trace in attachment
This started to happen as soon as we upgraded from prefect 2.4.0 to 2.6.5
We are using Prefect Cloud.
Is this a known issue? 😕Zanie
11/04/2022, 6:25 PMjpuris
11/04/2022, 6:25 PMZanie
11/04/2022, 6:25 PMjpuris
11/04/2022, 6:28 PMNov 03 10:38:05 ip-172-31-30-84 prefect[242862]: 10:38:05.427 | INFO | prefect.infrastructure.process - Process 'cinnamon-quoll' exited cleanly.
Nov 03 10:48:31 ip-172-31-30-84 prefect[242862]: 10:48:31.664 | ERROR | prefect.agent - Invalid input ConnectionInputs.RECV_PING in state ConnectionState.CLOSED
Zanie
11/04/2022, 6:29 PMjpuris
11/04/2022, 6:31 PMZanie
11/04/2022, 6:32 PMjpuris
11/04/2022, 7:59 PMJared Noynaert
11/29/2022, 10:29 PMjpuris
11/30/2022, 6:28 AMZanie
11/30/2022, 3:57 PMjpuris
12/03/2022, 8:06 AMConnectionInputs.RECV_PING
errors!
I do now see this warning every time the flow is about to start.
Dec 02 19:10:00 ip-172-31-30-84 prefect[424753]: 19:10:00.748 | INFO | prefect.agent - Completed submission of flow run '7c34feec-2e89-4d21-aa95-75b308cfc8b5'
Dec 02 19:10:03 ip-172-31-30-84 prefect[424753]: /usr/lib/python3.10/runpy.py:126: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
Dec 02 19:10:03 ip-172-31-30-84 prefect[424753]: warn(RuntimeWarning(msg))
$ head -20 /usr/lib/python3.10/runpy.py
"""runpy.py - locating and running Python code using the module namespace
Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.
This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
"""
# Written by Nick Coghlan <ncoghlan at gmail.com>
# to implement PEP 338 (Executing Modules as Scripts)
import sys
import importlib.machinery # importlib first so we can test #15386 via -m
import importlib.util
import io
import types
import os
$ python3 --version
Python 3.10.6
AWS EC2 running 22.04.1 LTS (Jammy Jellyfish)
🤷Zanie
12/05/2022, 3:28 PM