Hi! I just upgrade from 0.10.7 to 0.11.1 and every...
# ask-community
m
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.
Copy code
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
Hey @Matthias are you using core’s Server or Cloud?
m
Server
j
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
I restarted everything after I noticed the error. I am working locally to test everything
j
Hmm, restarted agent as well?
m
Yes, I’ll try to dig deeper in the logs. but I have everything restarted and rebuilt
j
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
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
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
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
Just to ensure that it is actually using the proper images you could try running
Copy code
prefect server start --version '0.11.1'