EDIT: Resolved, was likely a serviceAccount permis...
# prefect-gcp
a
EDIT: Resolved, was likely a serviceAccount permission that was missing I'm getting this error:
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 doesn't have the port exposed which cloud run requires
1
n
hi @Aaron - did you check out the logs as prompted by the error? i wonder if something went wrong at startup
a
seems to be an auth error though the API seems to login fine with the prefect cloud login -k <key> Will send the full logs in DM - has the API key and such in it
n
and you're sure thats the same API key / URL pair?
a
yes, I'm pretty confident - tried it again with the key from login
will send the key & url to you in DM if you want to try and verify