Thread
#prefect-server
    n

    Nils Israel

    2 years ago
    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?
    Dylan

    Dylan

    2 years ago
    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

    2 years ago
    I've called
    prefect backend server
    Dylan

    Dylan

    2 years ago
    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

    2 years ago
    I can connect to the graphql and the ui
    Dylan

    Dylan

    2 years ago
    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

    2 years ago
    oh sorry, yes it is. aims-dev.agro.intern is 172.16.1.98
    Dylan

    Dylan

    2 years ago
    Try updating localhost in your Prefect Server graphql endpoint to
    <http://172.16.1.98:4200/graphql>
    n

    Nils Israel

    2 years ago
    hm, I cloud have sworn I tried that before. But now it's connected. 🙂
    Dylan

    Dylan

    2 years ago
    👍
    Glad it worked!
    n

    Nils Israel

    2 years ago
    Thx a lot.