Michael
11/04/2024, 8:20 PM.deploy()
in my main file to deploy this workflow. I keep getting this error
raise PushError(event["error"])
prefect.utilities.dockerutils.PushError: denied: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/luminr-data-engineering/locations/europe-west2/repositories/instagram-pipeline" (or it may not exist)
Bianca Hoch
11/04/2024, 11:52 PMgcloud auth login
⢠Configure docker: gcloud auth configure-docker <http://europe-west2-docker.pkg.dev|europe-west2-docker.pkg.dev>
(make sure to specify correct region)Michael
11/05/2024, 12:08 AM_FROM_ prefecthq/prefect:3-python3.10
to
FROM
_--platform_=linux/amd64 prefecthq/prefect:3-python3.10
I did this because this link https://docs-3.prefect.io/integrations/prefect-gcp/gcp-worker-guide
Says to change it from A to B when you are deploying from a macbookMichael
11/05/2024, 12:10 AMFlow run infrastructure exited with non-zero status code:
Task colossal-cassowary-mh7lx-task0 failed with message: The container exited with an error. (Error Code: 1)
This may be caused by attempting to run an image with a misspecified platform or architecture.
Bianca Hoch
11/06/2024, 10:46 PM# build section allows you to manage and build docker image
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.3.1
image_name: <PATH-TO-ARTIFACT-REGISTRY>/gcp-weather-image
tag: latest
dockerfile: auto
platform: linux/amd64
Michael
11/06/2024, 10:48 PM.deploy(platform= "linux/amd64")
. The error disappeared.Bianca Hoch
11/06/2024, 10:49 PMBianca Hoch
11/06/2024, 10:49 PMMichael
11/06/2024, 10:50 PM