https://prefect.io logo
#prefect-community
Title
# prefect-community
i

Ilhom Hayot o'g'li

06/27/2022, 4:14 PM
Hi all! I am having this error . Any suggestions? Traceback (most recent call last): File "/home/centos/.local/lib/python3.8/site-packages/prefect/agent/agent.py", line 328, in _submit_deploy_flow_run_jobs flow_runs = self._get_flow_run_metadata(flow_run_ids) File "/home/centos/.local/lib/python3.8/site-packages/prefect/agent/agent.py", line 688, in _get_flow_run_metadata result = self.client.graphql(query) File "/home/centos/.local/lib/python3.8/site-packages/prefect/client/client.py", line 464, in graphql raise ClientError(result["errors"]) prefect.exceptions.ClientError: [{'path': ['flow_run', 0, 'id'], 'message': 'Cannot return null for non-nullable field flow_run.id.', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
k

Kevin Mullins

06/27/2022, 4:37 PM
I’m getting a similar
INTERNAL_SERVER_ERROR
, not sure if it’s related:
Copy code
Failed to retrieve task state with error: ClientError([{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}])
Traceback (most recent call last):
  File "/opt/prefect-runner/pysetup/.venv/lib/python3.9/site-packages/prefect/engine/cloud/task_runner.py", line 154, in initialize_run
    task_run_info = self.client.get_task_run_info(
  File "/opt/prefect-runner/pysetup/.venv/lib/python3.9/site-packages/prefect/client/client.py", line 1479, in get_task_run_info
    result = self.graphql(mutation)  # type: Any
  File "/opt/prefect-runner/pysetup/.venv/lib/python3.9/site-packages/prefect/client/client.py", line 473, in graphql
    raise ClientError(result["errors"])
prefect.exceptions.ClientError: [{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}]
m

Mason Menges

06/27/2022, 4:57 PM
@Ilhom Hayot o'g'li off the top of my head I'm not 100% sure why that error might be displaying, what are you trying to do when you see that error generate? @Kevin Mullins I think that's probably unrelated but might be addressed here https://discourse.prefect.io/t/how-to-fix-the-error-prefect-exceptions-clienterror-message-expected-type-uuid-found-could-not-parse-uuid/832
j

James Sopkin

06/27/2022, 5:06 PM
@Ilhom Hayot o'g'li There's been some issues with secret calls failing that is actively being worked on. Github issue here https://github.com/PrefectHQ/cloud/issues/4032
i

Ilhom Hayot o'g'li

06/27/2022, 5:28 PM
prefect agent local start -l label1 -l label2 .......
Copy code
Moreover, from this peace of code, I removed result = LocalResult() part only and pushed it to server
with Flow("warehouse-flow", run_config=UniversalRun(labels=["dim_warehouse"]), result=LocalResult(),
          state_handlers=[skip_if_running_handler]) as flow:
that is snapshot of error
by the way using prefect 1.0
m

Mason Menges

06/27/2022, 6:48 PM
hmmm yeah this definitely seems odd, I've been trying to see if I can reproduce this behavior but haven't had any luck so far, are you using cloud or server for your backend?
i

Ilhom Hayot o'g'li

06/28/2022, 12:16 PM
sorry for delaying, I am using AWS centos 7
can it be due to the labels that are wrong? prefect agent local start -l ip-10-01-01-01.compute.internal -l dim_warehouse -l dim_company --- for example. ip-10-01-01-01.compute.internal is the local user of server. but after restarting the server ips changed ip-10-01-01-02.compute.internal but I was still running with old ip. Can it be the reason? Should I tell explicitly parent label in the codes in the picture? or prefect will take up labels of user automatically?
or is that because of that part?
m

Mason Menges

06/28/2022, 6:37 PM
Hey @Ilhom Hayot o'g'li have you tried running the local agent with the 10-01-01-02 label or for that matter without it?