EDIT: Resolved, turns out it was likely a missing ...
# ask-community
a
EDIT: Resolved, turns out it was likely a missing serviceAccount permission. Has anyone had issues deploying workers? I'm using GCP and get the below
ERROR: (gcloud.run.deploy) Revision 'prefect-worker-00003-4v5' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
when running
Copy code
cloud run deploy prefect-worker --image=prefecthq/prefect:3-latest \ --set-env-vars PREFECT_API_URL=$PREFECT_API_URL,PREFECT_API_KEY=$PREFECT_API_KEY \ --service-account prefect-service-account \ --no-cpu-throttling \ --min-instances 1 \ --args "prefect","worker","start","--install-policy","always","--with-healthcheck","-p","gcloud-test-work-pool","-t","cloud-run"
Any ideas what could be going wrong? From what I gather, it seems that the image itself doesn't have the proper port (https://docs-3.prefect.io/integrations/prefect-gcp/gcp-worker-guide)
This same error also occurs for
prefect:2-latest
. Should also clarify the image being used is actually
Copy code
prefect:3.0.0rc9-python3.11