https://prefect.io logo
Title
m

Miguel Moncada

03/29/2023, 4:16 PM
Hi team! I'm trying to upgrade my agent to use Prefect version
2.8.7
but I'm getting this error on the last step, which is to register the blocks:
executor failed running [/bin/sh -c prefect block register -m prefect_gcp]: exit code: 1
ERROR: Service 'agent' failed to build : Build failed
Have you seen this error before?
1
FROM prefecthq/prefect:2.8.7-python3.8

COPY requirements.txt .
COPY setup.py .

RUN apt-get update && apt-get install --yes libgdal-dev

RUN pip install --upgrade pip setuptools --no-cache-dir
RUN pip install --trusted-host <http://pypi.python.org|pypi.python.org> --no-cache-dir .

ARG PREFECT_API_KEY
ENV PREFECT_API_KEY=$PREFECT_API_KEY

ARG PREFECT_API_URL
ENV PREFECT_API_URL=$PREFECT_API_URL

ENV PYTHONUNBUFFERED True

COPY dataflows/flows/ /opt/prefect/flows/

RUN prefect block register -m prefect_gcp

ENTRYPOINT ["prefect", "agent", "start", "-q", "default"]
This is my Dockerfile for reference
FYI fixed, I had a lower version of the
prefect_gcp
dependency, upgrading to
0.3.0
seems to have done the trick
👍 1
:thank-you: 1