https://prefect.io logo
Title
m

Matthias

05/18/2020, 9:28 AM
Hi! I just upgrade from 0.10.7 to 0.11.1 and everything worked fine before. Now, when I register a Flow and run it from the UI I get the following error. The flow seems to run. Everything running in Docker and on the latest Image.
ERROR - prefect.CloudTaskRunner | Failed to set task state with error: ClientError([{'message': "{'_result': {'type': ['Unsupported value: LocalResult']}}", 'locations': [{'line': 4, 'column': 13}], 'path': ['set_task_run_states', 'states', 0, 'id'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/prefect/engine/cloud/task_runner.py", line 123, in call_runner_target_handlers
    cache_for=self.task.cache_for,
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 1104, in set_task_run_state
    version=version,
  File "/usr/local/lib/python3.7/site-packages/prefect/client/client.py", line 226, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'message': "{'_result': {'type': ['Unsupported value: LocalResult']}}", 'locations': [{'line': 4, 'column': 13}], 'path': ['set_task_run_states', 'states', 0, 'id'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
When I run the task with
flow.run()
it works.
j

josh

05/18/2020, 12:23 PM
Hey @Matthias are you using core’s Server or Cloud?
m

Matthias

05/18/2020, 12:23 PM
Server
j

josh

05/18/2020, 12:25 PM
When was the last time you started up your server? There were some serializer changes so it would require server to be running with the latest changes from 0.11.x in order to run flows from that release
m

Matthias

05/18/2020, 12:27 PM
I restarted everything after I noticed the error. I am working locally to test everything
j

josh

05/18/2020, 12:27 PM
Hmm, restarted agent as well?
m

Matthias

05/18/2020, 12:32 PM
Yes, I’ll try to dig deeper in the logs. but I have everything restarted and rebuilt
j

josh

05/18/2020, 12:34 PM
Interesting 🤔 would you mind opening an issue with some more info? FWIW I am using server right now without issue so I feel like it’s something we’re overlooking 😄
m

Matthias

05/18/2020, 12:39 PM
Just to be sure: Do I need to do anything to migrate? What I did is to pull latest images for Hasura, Apollo, UI and GraphQL and for the Agent and my Application install 0.11.1 from pypi.
j

josh

05/18/2020, 12:40 PM
Yeah that should be all you need to do. The agent also only needs to be on 0.11.x if you’re using the local agent (due to python dependencies). Is there any chance you’re using a mounted volume with the postgres container?
m

Matthias

05/18/2020, 12:43 PM
Yes, I am using the local agent. Postgres does not have any volumes
Alright, I’ll see if I am missing anything. Otherwise I’ll open an issue 🙂
j

josh

05/18/2020, 12:45 PM
Just to ensure that it is actually using the proper images you could try running
prefect server start --version '0.11.1'