Enda Peng
04/22/2021, 4:27 PM<localhost://xxxx>
, others who access server B UI can’t see itTodd Lindstrom
04/22/2021, 9:25 PMEnda Peng
04/22/2021, 10:57 PMgraphql
works. Here is my operations
• First I try prefect server config > origin.yml
then launch it with docker-compose. App works on localhost:8080
• Under getting started
tab, I put <http://localhost:4200/graphql>
as graphql end point and it works. So far so good
• Then I try prefect server config --graphql-port 40002 > my-prefect.yml
, launch with docker composer. App still works on the same address
• However, I tried to give ui the graphql endpoint with values <http://localhost:4200/graphql>, <http://localhost:40002/graphql>, <http://graphql:40002/>, <http://localhost:40002/>
with/without last /
. None of them works. I try in browser <http://localhost:40002/graphql/>
, it gives me a console to play.
As long as I touched graphql port, I will not be able to set up a workable local sever.
Really appreciate if someone can help me take a lookEnda Peng
04/22/2021, 11:45 PMgraphql
. Only move ui and server port
prefect server start --ui-port 30001 --server-port 30002 --no-postgres-port --no-hasura-port --no-graphql-port
• On prefect server
tab on the web application, type in <http://localhost:30002/graphql>
to reflect the change
• You will be blocked on next tap when creating tenant, add this to your ~/.prefect/config.toml. Otherwise command prefect agent start --name "Default Agent"
will by default access port 4200
instead
server]
host = "<http://localhost>"
port = "4200"
host_port = "30002"
endpoint = "${server.host}:${server.host_port}"
Then everything all setFabrice Toussaint
04/23/2021, 11:45 AMAndy Dyer
04/23/2021, 4:22 PMIsmail Cenik
04/23/2021, 8:36 PMVladislav Bogucharov
04/25/2021, 2:02 PMprefect agent local start
every time.Justin
04/27/2021, 8:39 AMBen Collier
04/28/2021, 11:11 AMMatt Camp
04/28/2021, 12:58 PMprefect-server
and that you need to use the config.yml
. This seems like an all around disaster waiting to happen. I am not able to use the Prefect Cloud due to where I am setting things up, so are there alternative methods people use? TIAMariusz Olszewski
05/01/2021, 5:35 AMRob Fowler
05/01/2021, 9:21 AMmerlin
05/02/2021, 8:02 PMNathan Walker
05/03/2021, 1:53 PMIsmail Cenik
05/05/2021, 2:20 AMFabrice Toussaint
05/05/2021, 8:24 AMrequests.exceptions.ReadTimeout: HTTPConnectionPool(host='prefect-apollo.prefect', port=4200): Read timed out. (read timeout=15)
? It does not happen all the time but it happens so often that a lot of tasks fail because of it.
Our Prefect server is deployed using Kubernetes on GCP and the pod seems to be getting enough resources.Fabrice Toussaint
05/06/2021, 7:32 AMFailed to retrieve task state with error: ClientError([{'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 5}], 'path': ['get_or_create_task_run_info'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: '}}}])
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/prefect/engine/cloud/task_runner.py", line 154, in initialize_run
task_run_info = self.client.get_task_run_info(
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 1399, in get_task_run_info
result = self.graphql(mutation) # type: Any
File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 319, in graphql
raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 5}], 'path': ['get_or_create_task_run_info'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: '}}}]
Our Prefect server is deployed using Kubernetes on GCP with autoscaling enabled, maybe it has something to do with that?Niko Usai
05/07/2021, 8:37 AM[2021-05-07 08:16:03,101] ERROR - agent | Error while deploying flow: ValidationError({'_schema': 'Invalid data type: None'},)
I've tried to search, but couldn't find any hint on what to look,
anyone could help?Devin McCabe
05/07/2021, 4:42 PMAndy Dyer
05/10/2021, 4:30 PMDevin McCabe
05/10/2021, 6:21 PMDockerAgent
? I'm trying the example flow from the tutorial:
from prefect import Flow
from prefect import task
from prefect.run_configs import DockerRun
@task
def add(x, y=1):
return x + y
with Flow("My first flow!", run_config=DockerRun()) as flow:
first_result = add(1, y=2)
second_result = add(x=first_result, y=100)
flow.register(project_name="test-project")
I submit the flow using the "Quick Run" button in the UI and start a Docker agent:
prefect agent docker start --show-flow-logs --log-level DEBUG
But the run forever stays in the pending state and I only ever see Querying for flow runs / No flow runs found
in the agent logs. I've tried DockerRun()
as above and also using a custom image containing only this:
FROM python:3.8-buster
RUN pip install prefect
The UI shows it can reach my agent, though. Any ideas?Marwan Sarieddine
05/10/2021, 8:25 PMNoah Guilbault
05/10/2021, 11:11 PMTalha
05/11/2021, 2:53 PMjaehoon
05/12/2021, 2:00 AMprefect.config.logging.level='DEBUG'
prefect.config.debug=True
and
os.environ["PREFECT__LOGGING__LEVEL"]='DEBUG'
However, it doesn't work
How can i set DEBUG log level?Martin
05/12/2021, 7:56 AMDiego Alonso Roque Montoya
05/12/2021, 10:58 PMAmanda Wee
05/13/2021, 1:14 AMMariusz Olszewski
05/13/2021, 6:16 PMMariusz Olszewski
05/13/2021, 6:16 PMKevin Kho
05/13/2021, 6:50 PM