https://prefect.io logo
Title
k

Keat

10/14/2020, 4:37 AM
Hi all, So I started server on an ec2. With config.toml
graphql_url
pointing to
backend = "server"
graphql_url = "<http://localhost:4200/graphql>"
[server]
  [server.ui]
  graphql_url = "<http://localhost:4200/graphql>"
When I SSH-ed into the ec2 I have two portforward, 4200 and 8080. And my local
config.toml
has the same config as the server
config.toml
A local agent is running on the ec2. The issue I am facing is: When running the flow after registering from both local or in the ec2 instance, the shell tasks run into
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=4200): Read timed out. (read timeout=30)
I reckon is my config.toml but not sure where to start, or is there something that I am missing ?
n

nicholas

10/14/2020, 4:46 AM
Hi @Keat - which version of Prefect are you using on your ec2?
k

Keat

10/14/2020, 4:47 AM
Oops they’re both running on
0.13.10
both local and server
n

nicholas

10/14/2020, 5:21 AM
Got it - for 0.13.0 the correct
server.ui
endpoint variable is
apollo_url
(this was a correction from earlier versions which used
graphql_url
). Are you able to pull up the UI?
Can you share your flow code as well?
k

Keat

10/14/2020, 9:06 AM
backend = "server"
  [server]
    [server.ui]
    apollo_url = "<http://localhost:4200/graphql>"
The settings now for both
Thanks @nicholas turned out it could be just the ec2 size being too small to handle one flow. 😆
f

Felix V

10/21/2020, 3:12 AM
I am running into the same issue. what did you end up doing?
k

Keat

10/21/2020, 6:21 AM
@Felix V I just increased my ec2 size to
small
and it worked 😆