Gareth Allen

09/23/2021, 7:21 AM
I hope I’m using the right channel. I’m currently running flows from prefect cloud. The agent is installed on a EKS cluster. Jobs run a custom Docker image. When I fire a job the pods crash with the following error:
Traceback (most recent call last):
  File "/usr/local/bin/prefect", line 8, in <module>
  File "/usr/local/lib/python3.8/site-packages/click/", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/prefect/cli/", line 49, in flow_run
    result = client.graphql(query)
  File "/usr/local/lib/python3.8/site-packages/prefect/client/", line 311, in graphql
    raise AuthorizationError(result["errors"])
Any ideas?

Kevin Kho

09/23/2021, 1:54 PM
Hey @Gareth Allen, did you authenticate the agent? Maybe you need to do
prefect agent kubernetes start --key API_KEY