https://prefect.io logo
Title
n

Nils Israel

09/17/2020, 5:09 PM
Hi, I am having a problem installing prefect server on Ubuntu 20.04. The UI can't connect to the backend. I tried the hello using curl and got a response. But the default connect to http://localhost:4200/graphql isn't working. Can someone help?
d

Dylan

09/17/2020, 5:20 PM
Hi Nils! Can you send along the error you’re seeing? Also, on the machine you’re calling
prefect server start
on, make sure you’ve called
prefect backend server
That generates a config to point prefect at your Prefect Server instance instead of Prefect Cloud
n

Nils Israel

09/17/2020, 5:22 PM
I've called
prefect backend server
d

Dylan

09/17/2020, 5:24 PM
And when you visit localhost:8080 you’re not seeing a UI connected to server?
Server ready at <http://0.0.0.0:4200> :rocket: (version: master)
Looks like your server instance spun up correctly
Can you connect to the API using a graphql client on your machine?
If not, does your machine have any network rules in effect which would keep the UI from accessing your localhost?
n

Nils Israel

09/17/2020, 5:28 PM
I can connect to the graphql and the ui
d

Dylan

09/17/2020, 5:29 PM
It looks like the UI isn’t being served on the same machine?
(given the address in the URL bar of that last screenshot)
n

Nils Israel

09/17/2020, 5:30 PM
oh sorry, yes it is. aims-dev.agro.intern is 172.16.1.98
d

Dylan

09/17/2020, 5:31 PM
Try updating localhost in your Prefect Server graphql endpoint to
<http://172.16.1.98:4200/graphql>
n

Nils Israel

09/17/2020, 5:32 PM
hm, I cloud have sworn I tried that before. But now it's connected. 🙂
d

Dylan

09/17/2020, 5:33 PM
👍
Glad it worked!
n

Nils Israel

09/17/2020, 5:34 PM
Thx a lot.