Hi, I am having a problem installing prefect serve...
# prefect-server
n
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
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
I've called
prefect backend server
d
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
I can connect to the graphql and the ui
d
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
oh sorry, yes it is. aims-dev.agro.intern is 172.16.1.98
d
Try updating localhost in your Prefect Server graphql endpoint to
<http://172.16.1.98:4200/graphql>
n
hm, I cloud have sworn I tried that before. But now it's connected. 🙂
d
👍
Glad it worked!
n
Thx a lot.