GOWRAV TATA
06/06/2023, 7:04 AMRaffaele Scarano
06/06/2023, 8:54 AMFROM prefecthq/prefect:2-python3.10-conda
COPY requirements.txt .
COPY setup.py .
COPY prefect_utils .
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 flows/ /opt/prefect/flows/
ENTRYPOINT ["/bin/bash", "--login", "-c", "prefect agent start -q default"]
Am I doing something wrong?
From a thread in #prefect-communityJoshua Greenhalgh
06/06/2023, 9:26 AMShane Breeze
06/06/2023, 9:41 AMHerman Theron
06/06/2023, 10:36 AMShane Breeze
06/06/2023, 12:34 PMGiacomo Chiarella
06/06/2023, 1:36 PMFarhood Etaati
06/06/2023, 2:38 PMElliot Løvås
06/06/2023, 4:17 PMRUN apt-get install -y gdal-bin libgdal-dev
and RUN apt-get install -y software-properties-common && add-apt-repository ppa:ubuntugis/ppa && apt-get update && apt-get install -y gdal-bin python3-gdal libgdal-dev
, but unfortunately, I haven't achieved the desired outcome. Has anyone encountered and managed to resolve this issue? Any insights would be greatly appreciated!Brijesh
06/06/2023, 4:47 PMAbhinav Chordia
06/06/2023, 4:59 PMTabari Brannon
06/06/2023, 5:27 PMSean Conroy
06/06/2023, 7:55 PMCharles Leung
06/06/2023, 8:35 PM(\\v-tm-qeq-05\Prefect\) PS Microsoft.PowerShell.Core\FileSystem::\\v-tm-qeq-05\PrefectScripts\cleung> & //v-tm-qeq-05/Prefect/python.exe //v-tm-qeq-05/PrefectScripts/cleung/Script/ibes_pykx.py
13:27:13.699 | DEBUG | prefect.client - Connecting to API at <http://v-tm-qeq-05:4200/api/>
13:27:13.999 | INFO | prefect.engine - Created flow run 'awesome-tarsier' for flow 'ibes-pykx'
13:27:14.001 | DEBUG | Flow run 'awesome-tarsier' - Starting 'ConcurrentTaskRunner'; submitted tasks will be run concurrently...
13:27:14.004 | DEBUG | prefect.task_runner.concurrent - Starting task runner...
13:27:14.245 | DEBUG | Flow run 'awesome-tarsier' - Executing flow 'ibes-pykx' for flow run 'awesome-tarsier'...
13:27:14.247 | DEBUG | Flow run 'awesome-tarsier' - Beginning execution...
13:27:14.250 | INFO | Flow run 'awesome-tarsier' - Initializing initial arguments
13:27:14.311 | INFO | Flow run 'awesome-tarsier' - Created task run 'saveRetRawNaive-0' for task 'saveRetRawNaive'
13:27:14.315 | INFO | Flow run 'awesome-tarsier' - Submitted task run 'saveRetRawNaive-0' for execution.
13:27:14.360 | INFO | Flow run 'awesome-tarsier' - Created task run 'saveRecRevAI260-0' for task 'saveRecRevAI260'
13:27:14.363 | INFO | Flow run 'awesome-tarsier' - Submitted task run 'saveRecRevAI260-0' for execution.
13:27:14.452 | DEBUG | Task run 'saveRetRawNaive-0' - Beginning execution...
13:27:14.456 | INFO | Task run 'saveRetRawNaive-0' - Executing saveRetRawNaive
13:27:14.501 | DEBUG | Task run 'saveRecRevAI260-0' - Beginning execution...
13:27:14.510 | INFO | Task run 'saveRecRevAI260-0' - Executing saveRecRevAI260
13:27:16.039 | DEBUG | prefect.client - Connecting to API at <http://v-tm-qeq-05:4200/api/>
(\\v-tm-qeq-05\Prefect\) PS Microsoft.PowerShell.Core\FileSystem::\\v-tm-qeq-05\PrefectScripts\cleung>
Austin Weisgrau
06/07/2023, 12:30 AMHarry Hause
06/07/2023, 2:13 AM<https://api.prefect.cloud/api/accounts/23ec087c-89c2-47de-a959-4ba9654879c0/workspaces/d31c992f-ff7d-48c1-9490-f321dfdba460/flow_runs/filter>
is called on startup.
I also just tried updating to a later version (2.10.12)Faizul
06/07/2023, 6:53 AMjcozar
06/07/2023, 7:00 AMTraceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/h2/connection.py", line 224, in process_input
func, target_state = self._transitions[(self.state, input_)]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: (<ConnectionState.CLOSED: 3>, <ConnectionInputs.SEND_HEADERS: 0>)
During handling of the above exception, another exception occurred:
...
httpx.LocalProtocolError: Invalid input ConnectionInputs.SEND_HEADERS in state
ConnectionState.CLOSED
Backing off due to consecutive errors, using increased interval of 120.0s.
Resetting backoff due to successful run.
Giacomo Chiarella
06/07/2023, 9:11 AMZainab
06/07/2023, 10:58 AMJoshua Greenhalgh
06/07/2023, 1:38 PMMoty
06/07/2023, 1:55 PMCan't connect to Server API at <http://127.0.0.1:4200/api>. Check that it's accessible from your machine.
should I change some configuration in prefect maybe an environment variable to make it work?nuno
06/07/2023, 2:17 PMStephen Herron
06/07/2023, 2:17 PMprefect block ls
does show that the block is no-longer there.
Any idea what is happening there?Joshua Greenhalgh
06/07/2023, 2:30 PMFlow could not be retrieved from deployment.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 318, in retrieve_flow_then_begin_flow_run
flow = await load_flow_from_flow_run(flow_run, client=client)
File "/usr/local/lib/python3.9/site-packages/prefect/client/utilities.py", line 40, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prefect/deployments.py", line 197, in load_flow_from_flow_run
await storage_block.get_directory(from_path=deployment.path, local_path=".")
File "/usr/local/lib/python3.9/site-packages/prefect/filesystems.py", line 147, in get_directory
copytree(from_path, local_path, dirs_exist_ok=True)
File "/usr/local/lib/python3.9/shutil.py", line 566, in copytree
with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/prefect/flows'
Mitch
06/07/2023, 2:59 PMfrom prefect.tasks.notifications import EmailTask
Mike Safruk
06/07/2023, 4:27 PMJoshua Greenhalgh
06/07/2023, 4:40 PMprefect.exceptions.ClientError: [{'path': ['flow'], 'message': 'Missing Authorization header in JWT authentication mode', 'extensions': {'path': '$', 'code': 'invalid-headers', 'exception': {'message': 'Missing Authorization header in JWT authentication mode'}}}]
When trying to trigger a flow using create_backfill_flow
locally - any ideas?Joshua Greenhalgh
06/07/2023, 4:41 PMprefect run
cli command!?Joshua Greenhalgh
06/07/2023, 4:41 PM