matta
01/09/2021, 2:46 AMFailed to retrieve task state with error: ValidationError({'_schema': 'Invalid data type: None'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/prefect/engine/cloud/task_runner.py", line 193, in initialize_run
map_index=map_index,
File "/usr/local/lib/python3.6/site-packages/prefect/client/client.py", line 1387, in get_task_run_info
state = prefect.engine.state.State.deserialize(task_run_info.serialized_state)
File "/usr/local/lib/python3.6/site-packages/prefect/engine/state.py", line 362, in deserialize
state = StateSchema().load(json_blob)
File "/usr/local/lib/python3.6/site-packages/marshmallow_oneofschema/one_of_schema.py", line 144, in load
raise exc
marshmallow.exceptions.ValidationError: {'_schema': 'Invalid data type: None'}
Using 0.13.19 right now
Looks like some kind of serialization problem?Dylan
matta
01/11/2021, 5:40 PMFile "/usr/local/lib/python3.6/dist-packages/prefect/client/client.py", line 771, in register
serialized_flow = flow.serialize(build=build) # type: Any
File "/usr/local/lib/python3.6/dist-packages/prefect/core/flow.py", line 1462, in serialize
storage = self.storage.build() # type: Optional[Storage]
File "/usr/local/lib/python3.6/dist-packages/prefect/environments/storage/docker.py", line 359, in build
self._build_image(push=push)
File "/usr/local/lib/python3.6/dist-packages/prefect/environments/storage/docker.py", line 423, in _build_image
self._parse_generator_output(output)
File "/usr/local/lib/python3.6/dist-packages/prefect/environments/storage/docker.py", line 661, in _parse_generator_output
or parsed.get("errorDetail", {}).get("message")
AttributeError: 'NoneType' object has no attribute 'strip'
Dylan
matta
01/11/2021, 5:54 PMlocal_dir_path = path.dirname(path.realpath(__file__))
storage = Docker(
registry_url=getenv("REGISTRY_URL"),
image_name=getenv("IMAGE_NAME"),
image_tag=getenv("IMAGE_TAG"),
python_dependencies=[
"cryptography",
"snowflake-connector-python",
"toolz",
"sqlalchemy",
"snowflake-sqlalchemy",
"mailchimp-marketing",
],
build_kwargs={"network_mode": "host"},
)
environment = KubernetesJobEnvironment(
job_spec_file=f"{local_dir_path}/job_spec.yaml", unique_job_name=True
)
matta
01/11/2021, 5:55 PMazure-pipelines.yml
and a job_spec.yaml
Dylan
matta
01/11/2021, 6:10 PMDylan
prefect version
Dylan
Dylan
matta
01/11/2021, 6:14 PMmatta
01/11/2021, 6:14 PMmatta
01/11/2021, 6:15 PMprefect version
to the script that adds the pip callsmatta
01/11/2021, 6:18 PMDylan
Dylan
Dylan
prefect diagnostics
on that machine?matta
01/11/2021, 7:03 PMmatta
01/11/2021, 7:03 PMDylan
matta
01/11/2021, 7:30 PMmatta
01/11/2021, 7:30 PMmatta
01/11/2021, 10:45 PM2021-01-11T22:43:27.9828069Z {
2021-01-11T22:43:27.9829026Z "config_overrides": {},
2021-01-11T22:43:27.9829651Z "env_vars": [],
2021-01-11T22:43:27.9830310Z "system_information": {
2021-01-11T22:43:27.9831927Z "platform": "Linux-4.14.203-156.332.amzn2.x86_64-x86_64-with-Ubuntu-18.04-bionic",
2021-01-11T22:43:27.9832830Z "prefect_backend": "server",
2021-01-11T22:43:27.9833474Z "prefect_version": "0.13.17",
2021-01-11T22:43:27.9834118Z "python_version": "3.6.9"
2021-01-11T22:43:27.9834746Z }
2021-01-11T22:43:27.9835199Z }
Dylan
matta
01/11/2021, 10:48 PMDylan
Dylan
matta
01/11/2021, 10:50 PMmatta
01/11/2021, 10:56 PMDylan
Dylan
Dylan
matta
01/11/2021, 11:18 PMmatta
01/11/2021, 11:19 PMmatta
01/11/2021, 11:37 PMFailed to retrieve task state with error: ValidationError({'_schema': 'Invalid data type: None'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/prefect/engine/cloud/task_runner.py", line 193, in initialize_run
map_index=map_index,
File "/usr/local/lib/python3.6/site-packages/prefect/client/client.py", line 1387, in get_task_run_info
state = prefect.engine.state.State.deserialize(task_run_info.serialized_state)
File "/usr/local/lib/python3.6/site-packages/prefect/engine/state.py", line 362, in deserialize
state = StateSchema().load(json_blob)
File "/usr/local/lib/python3.6/site-packages/marshmallow_oneofschema/one_of_schema.py", line 144, in load
raise exc
marshmallow.exceptions.ValidationError: {'_schema': 'Invalid data type: None'}
matta
01/12/2021, 1:09 AMprefect version
says 0.13.19
, but when I use the Interactive API it says 0.13.17
full output:
{
"data": {
"api": {
"backend": "SERVER",
"mode": "normal",
"version": "2020-11-29",
"core_version": "0.13.17+20.g4d0c8d8c6",
"release_timestamp": "2020-11-30T03:08:05Z"
}
}
}
Dylan
prefect version
on the same machine as your server instance?matta
01/12/2021, 7:34 PMmatta
01/12/2021, 7:35 PMprefect version
was how I was able to discover the mismatched versions.