Christian
10/29/2020, 12:21 PMCouldn't connect to Prefect Server at <http://localhost:4200/graphql>
Dylan
Christian
10/29/2020, 1:53 PM{'debug': False, 'home_dir': '/home/werner-ch/.prefect', 'backend': 'server', 'server': {'host': '<http://localhost>', 'port': 4200, 'host_port': 4200, 'endpoint': '<http://localhost:4200>', 'database': {'host': 'localhost', 'port': 5432, 'host_port': 5432, 'name': 'prefect_server', 'username': 'prefect', 'password': 'test-password', 'connection_url': '<postgresql://prefect:test-password@localhost:5432/prefect_server>', 'volume_path': '/home/werner-ch/.prefect/pg_data'}, 'graphql': {'host': '0.0.0.0', 'port': 4201, 'host_port': 4201, 'debug': False, 'path': '/graphql/'}, 'hasura': {'host': 'localhost', 'port': 3000, 'host_port': 3000, 'admin_secret': '', 'claims_namespace': 'hasura-claims', 'graphql_url': '<http://localhost:3000/v1alpha1/graphql>', 'ws_url': '<ws://localhost:3000/v1alpha1/graphql>', 'execute_retry_seconds': 10}, 'ui': {'host': '<http://localhost>', 'port': 8080, 'host_port': 8080, 'endpoint': '<http://localhost:8080>', 'apollo_url': '<http://localhost:4200/graphql>'}, 'telemetry': {'enabled': True}}, 'cloud': {'api': '<http://localhost:4200>', 'endpoint': '<https://api.prefect.io>', 'graphql': '<http://localhost:4200/graphql>', 'use_local_secrets': True, 'heartbeat_interval': 30.0, 'check_cancellation_interval': 15.0, 'diagnostics': False, 'logging_heartbeat': 5, 'queue_interval': 30.0, 'agent': {'name': 'agent', 'labels': [], 'level': 'INFO', 'auth_token': '', 'agent_address': '', 'resource_manager': {'loop_interval': 60}}}, 'logging': {'level': 'INFO', 'format': '[%(asctime)s] %(levelname)s - %(name)s | %(message)s', 'log_attributes': [], 'datefmt': '%Y-%m-%d %H:%M:%S', 'log_to_cloud': False, 'extra_loggers': []}, 'flows': {'eager_edge_validation': False, 'run_on_schedule': True, 'checkpointing': False, 'defaults': {'storage': {'add_default_labels': True, 'default_class': 'prefect.environments.storage.Local'}}}, 'tasks': {'defaults': {'max_retries': 0, 'retry_delay': None, 'timeout': None}}, 'engine': {'executor': {'default_class': 'prefect.engine.executors.LocalExecutor', 'dask': {'address': '', 'cluster_class': 'distributed.deploy.local.LocalCluster'}}, 'flow_runner': {'default_class': 'prefect.engine.flow_runner.FlowRunner'}, 'task_runner': {'default_class': 'prefect.engine.task_runner.TaskRunner'}}}
nicholas
apollo_url
as either an environment variable (PREFECT__SERVER__UI__APOLLO_URL
) or in your machine's ~/.prefect/config.toml
:
# ~/.prefect/config.toml
[server]
[server.ui]
apollo_url="your endpoint:4200/graphql"
Christian
10/29/2020, 2:24 PMnicholas
server.endpoint
to point your agent at your Server instance (or PREFECT__SERVER__ENDPOINT
as an environment variable). There seems to be a visual bug with agents on the UI dashboard right now where agents aren't showing up correctly so you can confirm your agent has started by querying it from the Interactive API on the left sidebar with this query:
query {
agent {
id
}
}
Christian
10/29/2020, 2:44 PM{
"agent": [
{
"id": "9b662e63-2bc5-4f83-b45c-1556bcf6d9e0",
"__typename": "agent"
},
{
"id": "f1c70546-ca94-4d10-93b8-bb75e7e8eba5",
"__typename": "agent"
},
{
"id": "3f50bbac-97c3-4778-9d6b-e9ba8885f3bb",
"__typename": "agent"
},
{
"id": "f80e19fc-225d-4ba9-9f3e-b227cc1c06b0",
"__typename": "agent"
}
]
}
nicholas
Christian
10/29/2020, 2:46 PMnicholas
Christian
10/29/2020, 2:51 PMnicholas
Christian
10/29/2020, 2:53 PMnicholas
Christian
10/29/2020, 5:42 PM