Ajith Kumara Beragala Acharige Lal
12/28/2020, 5:17 PMZanie
Ajith Kumara Beragala Acharige Lal
12/28/2020, 5:19 PMZanie
prefect diagnostics
Ajith Kumara Beragala Acharige Lal
12/28/2020, 5:25 PMconfig.toml
tried in ~/.prefect
as below# debug mode
debug = true
# base configuration directory (typically you won't change this!)
home_dir = "~/.prefect"
backend = "server"
[server]
host = "<http://localhost>"
port = "4200"
host_port = "4200"
endpoint = "${server.host}:${server.port}"
[server.database]
host = "10.110.0.7"
port = "5433"
host_port = "5433"
name = "prefect_server"
username = "prefect"
# set to "" to generate a random password each time the database starts
password = "test-password"
connection_url = "postgresql://${server.database.username}:${server.database.password}@${server.database.host}:${server.database.port}/${server.database.name}"
volume_path = "${home_dir}/pg_data"
[server.ui]
host = "<http://localhost>"
port = "8089"
host_port = "8089"
endpoint = "${server.ui.host}:${server.ui.port}"
apollo_url = "<http://localhost:4200/graphql>"
[logging]
# The logging level: NOTSET, DEBUG, INFO, WARNING, ERROR, or CRITICAL
level = "DEBUG"
Zanie
prefect diagnostics
?Ajith Kumara Beragala Acharige Lal
12/28/2020, 5:27 PMhasura_1 | {"type":"pg-client","timestamp":"2020-12-28T17:34:54.107+0000","level":"warn","detail":{"message":"postgres connection failed, retrying(1)."}}
hasura_1 | {"type":"startup","timestamp":"2020-12-28T17:34:54.107+0000","level":"error","detail":{"kind":"db_migrate","info":{"internal":"server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n","path":"$","error":"connection error","code":"postgres-error"}}}
graphql_1 | Error: HTTPConnectionPool(host='hasura', port=3000): Max retries exceeded with url: /v1/query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9de56206d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
[server.hasura]
host = "10.110.0.7"
<http://10.110.0.7:4200/graphql>
Zanie
prefect diagnostics
e.g.
❯ prefect diagnostics
{
"config_overrides": {
"cloud": {
"agent": {
"auth_token": true,
"level": true
},
"auth_token": true
},
"engine": {
"executor": {
"default_class": true
}
},
...
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:25 AMlocalhost
= local_ip ( 10.110.0.7
) , I was trying both localhost
and the local ip
to see if one of them unblocks meprefect diagnostics
as below{
"config_overrides": {
"backend": true,
"debug": true,
"server": {
"database": {
"host": true,
"host_port": true,
"port": true
},
"diagnostics": true,
"graphql": {
"debug": true
},
"hasura": {
"host": true
},
"ui": {
"apollo_url": true,
"host_port": true,
"port": true
}
}
},
"env_vars": [],
"system_information": {
"platform": "Linux-4.15.0-124-generic-x86_64-with-Ubuntu-18.04-bionic",
"prefect_backend": "server",
"prefect_version": "0.14.0",
"python_version": "3.6.9"
}
}
Zanie
<http://localhost:4200/graphql>
or http://10.110.0.7:4200/graphql by entering it into your browser?Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:35 AM<http://10.110.0.7:4200/graphql>
<http://10.110.0.7:8089/home>
Zanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:40 AMZanie
docker logs <apollo-container-id>
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:45 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:50 AM10.110.0.7
<http://localhost:4200/graphql>
and http://10.110.0.7:4200/graphqlZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:52 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:52 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:54 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:55 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 1:58 AMZanie
Ajith Kumara Beragala Acharige Lal
12/29/2020, 2:01 AM