Assaf Ben Shimon04/24/2022, 3:24 PM
Any idea what can cause it? I've already authenticated using my API key
Traceback (most recent call last): File "/app/biomarkers/extract_markers_image.binary.runfiles/biomarkers/biomarkers/dockers/extract_markers.py", line 2, in <module> from biomarkers.batch_processing import orchestrator File "/app/biomarkers/extract_markers_image.binary.runfiles/biomarkers/biomarkers/batch_processing/orchestrator.py", line 130, in <module> seq_markers_extraction_flow.register("neuralight-research") File "/usr/local/lib/python3.9/site-packages/prefect/core/flow.py", line 1708, in register registered_flow = client.register( File "/usr/local/lib/python3.9/site-packages/prefect/client/client.py", line 839, in register project = self.graphql(query_project).data.project # type: ignore File "/usr/local/lib/python3.9/site-packages/prefect/client/client.py", line 452, in graphql result = <http://self.post|self.post>( File "/usr/local/lib/python3.9/site-packages/prefect/client/client.py", line 407, in post response = self._request( File "/usr/local/lib/python3.9/site-packages/prefect/client/client.py", line 649, in _request raise AuthorizationError( prefect.exceptions.AuthorizationError: Malformed response received from Cloud - please ensure that you are authenticated. See `prefect auth login --help`.
? Also, if you are just getting started with Prefect, you may want to start with Prefect 2.0 directly
Assaf Ben Shimon04/24/2022, 3:32 PM
, do I need to do anything else? (also, I run the code from docker, if that changes anything)
Assaf Ben Shimon04/24/2022, 4:02 PM
a local server starts and I can see the UI, but nothing updates there and I can't see my flows. So what's the right way to glue these pieces together? Thanks a lot in advance!!
prefect server start
I've tried running a local agent from the CLI, but that doesn't seem to be enough as I need to somehow register my flows so that it'll track them, right?Yup exactly - you start an agent with e.g. label "dev" and you attach the same label to your
and when you then register and run your flow, it will match it with the agent via a label. This page explains it more for 1.0 you can also check this Discourse topic with links to resources that will help understand various concepts
Assaf Ben Shimon04/24/2022, 8:23 PM
), but no change 😕
prefect server start --expose
[server] [server.ui] apollo_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"
before doing the
? Looks really weird why it’s null
prefect server start --expose
Assaf Ben Shimon04/24/2022, 9:59 PM
, • adjust (or create if not available) your
and then try accessing the UI if you still have trouble, check those Discourse topics: • https://discourse.prefect.io/t/how-to-deploy-self-hosted-server-and-register-first-flows-to-the-server-backend/85 • https://discourse.prefect.io/t/can-t-connect-to-a-prefect-server-from-other-machine-despite-port-4200-being-open/128