Avi A
06/03/2020, 12:20 PM[3:18pm]: Exception raised while calling state handlers: HTTPError('400 Client Error: Bad Request for url: <http://localhost:4200/graphql/alpha>')
Any idea on how to start debugging?nicholas
Avi A
06/03/2020, 1:19 PMprefect agent start
works and communicates with the server. It then receives the job but ends up like this. On the agent itself it says nothingnicholas
Avi A
06/03/2020, 1:35 PM[2020-06-03 12:15:36,746] INFO - agent | Waiting for flow runs...
[2020-06-03 12:18:33,032] INFO - agent | Found 1 flow run(s) to submit for execution.
[2020-06-03 12:18:33,066] INFO - agent | Deploying flow run 679fe6ae-b245-47a0-97c7-a413468096ef
but nothing furtherAvi A
06/03/2020, 1:36 PMnicholas
--verbose
flag to get some more output, this is an interesting problem I haven't seen beforeJeremiah
Jeremiah
Avi A
06/03/2020, 1:40 PMJeremiah
Avi A
06/03/2020, 1:41 PMAvi A
06/03/2020, 1:41 PMAvi A
06/03/2020, 1:41 PMJeremiah
Avi A
06/03/2020, 1:43 PMJeremiah
Avi A
06/03/2020, 1:49 PMAvi A
06/03/2020, 1:49 PMJeremiah
Avi A
06/03/2020, 1:49 PMAvi A
06/03/2020, 1:52 PMPlease store it securely. If you lose your webhook URL, you will need to uninstall and reinstall the Prefect slack integration!
Avi A
06/03/2020, 1:57 PM--verbose
and getting this on the agent when submitting the job:
[2020-06-03 13:55:02,998] DEBUG - agent | Querying for flow runs
[2020-06-03 13:55:03,064] DEBUG - agent | Found flow runs ['14e59135-b8fb-4d35-9140-d5eda3a709aa']
[2020-06-03 13:55:03,065] DEBUG - agent | Querying flow run metadata
[2020-06-03 13:55:03,098] INFO - agent | Found 1 flow run(s) to submit for execution.
[2020-06-03 13:55:03,099] DEBUG - agent | Updating states for flow run 14e59135-b8fb-4d35-9140-d5eda3a709aa
[2020-06-03 13:55:03,101] DEBUG - agent | Flow run 14e59135-b8fb-4d35-9140-d5eda3a709aa is in a Scheduled state, updating to Submitted
[2020-06-03 13:55:03,103] DEBUG - agent | Next query for flow runs in 0.25 seconds
[2020-06-03 13:55:03,137] INFO - agent | Deploying flow run 14e59135-b8fb-4d35-9140-d5eda3a709aa
[2020-06-03 13:55:03,141] DEBUG - agent | Submitted flow run 14e59135-b8fb-4d35-9140-d5eda3a709aa to process PID 26768
[2020-06-03 13:55:03,160] DEBUG - agent | Completed flow run submission (id: 14e59135-b8fb-4d35-9140-d5eda3a709aa)
On the UI (different server) it still says Submitted for execution
Jeremiah
Running
state, the state handler fails due to the slack config and prevents progress. This is an issue we’ve seen in the past - since the state handler is responsible for communicate state updates back to the server, including errors, errors in the state handler itself get tricky to handleAvi A
06/03/2020, 2:01 PMAvi A
06/03/2020, 2:02 PMAvi A
06/03/2020, 2:05 PMAvi A
06/03/2020, 2:06 PMLocalDaskExecutor
as a remote environment, perhaps that’s related. But it worked fine before. I mean, it failed before, but it reported the logs ok to the UInicholas
Avi A
06/03/2020, 2:11 PM~/.prefect/config.toml
I put
[server]
host = "<http://prefect>"
Since the agent connects well to the server and receives the job submission, I figured this was a good setup. Is there anything else to configure for this to work?Jeremiah
Avi A
06/03/2020, 2:30 PMnicholas
Avi A
06/03/2020, 3:09 PM-f / --show-flow-logs
to output the logs from the run itself, and indeed it reports problems with the state:
[2020-06-03 15:06:48] INFO - prefect.CloudFlowRunner | Beginning Flow run for 'Smart Groups'
[2020-06-03 15:06:49] DEBUG - prefect.CloudFlowRunner | Failed to retrieve flow state with error: RegistryError("Multiple classes with name 'StateSchema' were found. Please use the full, module-qualified path.")
Avi A
06/07/2020, 9:22 PMState
under the name StateSchema
, and it caused a collision with Prefect’s StateSchema
. Question is… what can I do with it?Jeremiah
Avi A
06/08/2020, 7:52 AMJeremiah