https://prefect.io logo
Title
t

Thomas Hoeck

06/10/2020, 12:43 PM
Hi. I have bit of trouble getting the UI to work as it can't connect to the graphql. It keeps saying "Attempting to connect... http://localhost:4200/graphql/". I have set the host I want to use in my config.toml: ############## config.toml ############## backend = "server" [server] host = "http://srvdocker01" port = "4200" host_port = "4200" endpoint = "${server.host}:${server.port}" [server.ui] host = "http://srvdocker01" port = "8081" host_port = "8081" endpoint = "${server.ui.host}:${server.ui.port}" graphql_url = "http://srvdocker01:4200/graphql" ########################################## This setting is reflected when I run the server (see pic):
j

Jeremiah

06/10/2020, 12:52 PM
Hi Thomas, I’m not sure but I think you may need to update the graphql URL in your config (
[server.graphql.host]
). Right now I think you’ve told the UI to point at your
srvdocker
location for the GraphQL service, but the GraphQL service itself may still be at its default host of
0.0.0.0
. Docker networking can be a bit funny though so I’m not totally sure — if that gives you trouble, I suggest opening a GitHub issue so that we can include this in the improvements we’re working on for Server config!
t

Thomas Hoeck

06/10/2020, 1:11 PM
Hi Jeremiah. Thank you for the quick reply.
srvdocker01
is the name of the machine where I run docker so http://srvdocker01:8081 brings up the UI just fine. It seems like the error is that not matter what I set
graphql_url
in the
[server.ui]
to it doesn't change the address that the the UI is looking at.
So even though my log when I bring up the server is as above I get
b

Ben Davison

06/10/2020, 1:14 PM
Try this env var:
VUE_APP_GRAPHQL_HTTP=<http://srvdocker01:4200/graphql>
j

Jeremiah

06/10/2020, 1:15 PM
Thanks @Ben Davison - Thomas if you open an issue on GitHub, we will look at exposing that more cleanly via config
t

Thomas Hoeck

06/10/2020, 1:28 PM
That didn't help. - thanks though @Ben Davison. I have created a issue https://github.com/PrefectHQ/prefect/issues/2759
j

Jeremiah

06/10/2020, 1:28 PM
Thanks Thomas, we’ll be taking a closer look
t

Thomas Hoeck

06/10/2020, 1:29 PM
Cheers.