https://prefect.io logo
d

Dana Merrick

02/08/2021, 4:39 PM
I'm having trouble connecting to graphql via the Prefect Server webUI. I can reach it on localhost:4200, <ip>:4200, and <fully-qualified-name>:4200, but I always get
Oops! It looks like something went wrong when trying to connect; make sure Prefect Server is running at the URL above and try again.
k

Kyle Moon-Wright

02/08/2021, 4:50 PM
Hey @Dana Merrick, Tough to say exactly where the issue lies, but you can configure your GQL endpoint directly in the UI (under the Getting Started option at the top and clicking the Prefect Server tab) or by setting this endpoint directly in a config.toml file as described here.
d

Dana Merrick

02/08/2021, 4:51 PM
yeah, so, I get to that page but whatever value I put in there gives me the same error
k

Kyle Moon-Wright

02/08/2021, 4:52 PM
Hmm, are the backend services running and are they accessible via network configurations?
d

Dana Merrick

02/08/2021, 4:52 PM
what do you mean by network configurations?
as mentioned in OP, i can curl localhost:4200 from the box and get graphql to respond
I can also curl <ip>:4200 and get the response, and also <fully-qualified-name>:4200
so it's clear the graphql server is running and returning responses
I read through old comments in slack and tried increasing my instance size (running on EC2), but that didnt help
k

Kyle Moon-Wright

02/08/2021, 4:58 PM
Definitely strange you are unable to connect the endpoints despite healthy responses. If you are on the latest version of Prefect, I think the best resource here is

this livestream

on configuring Server and its individual services.
d

Dana Merrick

02/08/2021, 4:58 PM
aight ill give that a shot
when I get a connection failure on the prefect UI, where is that connection being made from? my browser to the graphql server? or the prefect server to graphql?
k

Kyle Moon-Wright

02/08/2021, 5:01 PM
If the error is coming from the UI, then the browser is unable to connect with the GQL server.
d

Dana Merrick

02/08/2021, 5:02 PM
so graphql needs to be exposed to all clients of the prefect server?
k

Kyle Moon-Wright

02/08/2021, 5:03 PM
Also, the relevant part of that video for you will likely be around the 29 min mark, when Laura starts to connect Server services independently.
🙏 1
I think this diagram will help show which service is connecting to what, but that video really dives into it.
d

Dana Merrick

02/08/2021, 5:06 PM
is apollo running on 8080 after running
prefect sever start
? or is that the UI?
k

Kyle Moon-Wright

02/08/2021, 5:10 PM
Yes and all default settings are configured using the default config.toml file which can be overridden to meet your needs with a custom TOML file.
d

Dana Merrick

02/08/2021, 5:14 PM
is there advice on setting up a load balancer (for me an ELB) in front of the UI? i think thats the root of my connection issues
k

Kyle Moon-Wright

02/08/2021, 5:21 PM
Hmm, nothing official besides “you probably should go with Prefect Cloud” - Server wasn’t intended for Production setups with this level of configuration, so only experience can guide us here.
d

Dana Merrick

02/08/2021, 5:22 PM
ah okay fair
4 Views