Vlad Tudor09/01/2022, 2:09 PM
that runs on a remote VM. However, I cannot configure the correct URL for the
(when opening the UI, I get the error
) I tried to configure it from the
Couldn't connect to Prefect Server at <http://localhost:4200/graphql>
file with the URL of my machine:
but it still tries the access localhost. Any help will be thoroughly appreciated. It's been 12 hours..
[server] [server.ui] graphql_url = "http://<<MACHINE_PUBLIC_IP>>:4200/graphql"
Ryan Peden09/01/2022, 2:16 PM
Vlad Tudor09/01/2022, 2:18 PM
Now I question wether it's the correct wai to pass the
ui: command: /intercept.sh depends_on: apollo: condition: service_healthy volumes: - type: bind source: ./config.toml target: /root/.prefect/config.toml read_only: true healthcheck: interval: 30s retries: 3 test: curl --fail --silent --head "<http://ui:4001/>" &> /dev/null || exit 1 timeout: 5s image: prefecthq/ui:core-1.2.2 ports: - 4001:8080 restart: always networks: - prefect-server
I'd prefer using environment variables but resources online are conflicting on the names of the variables
) as env variables but still the UI check localhost
Ryan Peden09/01/2022, 2:24 PM
service in the Docker Compose yaml still have:
ports: - 4200:4200/tcp
Vlad Tudor09/01/2022, 2:26 PM
Ryan Peden09/01/2022, 2:26 PM
Vlad Tudor09/01/2022, 2:27 PM
[server] [server.ui] apollo_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"
[server] [server.ui] graphql_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"
Ryan Peden09/01/2022, 2:39 PM
environment variable. You may need to run
in your browser's console afterward because it might have the old URL cached
Vlad Tudor09/01/2022, 2:45 PM
woks but indeed, it's crucial to clear the cache of the browser. Gee that was a headache 😄 Thank you so much kind sir
In the environment variables I should also replace apollo with my machine IP?
PREFECT__SERVER__HOST: <http://apollo> PREFECT__SERVER__PORT: 4200
Ryan Peden09/01/2022, 3:14 PM
will only work if the client container is connected to the same Docker network as the server container
Vlad Tudor09/01/2022, 3:20 PM
PREFECT__SERVER__HOST: http://<<MACHINE_IP>> PREFECT__SERVER__PORT: 4200
Ryan Peden09/01/2022, 4:01 PM
? When I set the host there, it works whether I use
or the server IP as the host
Vlad Tudor09/01/2022, 4:07 PM
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='184.108.40.206', port=4200): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f98064740d0>
Ryan Peden09/01/2022, 4:15 PM
the IP of the server where you used docker compose to run the server?
Vlad Tudor09/01/2022, 4:16 PM
but neither does it work
, so this is not good, right?
Ryan Peden09/01/2022, 4:45 PM
Vlad Tudor09/01/2022, 4:47 PM
Ryan Peden09/01/2022, 4:55 PM
Vlad Tudor09/01/2022, 5:07 PM
Ryan Peden09/01/2022, 5:11 PM
Vlad Tudor09/02/2022, 7:04 AM
and when the flow is registred it's registred at:
- PREFECT__SERVER__ENDPOINT=<http://apollo:4200> - PREFECT__SERVER__UI__ENDPOINT=<http://ui:8080>
but from the UI I cannot access it. My question is, what URL should I set. Should I set the IP of the remote machine? @Ryan Peden What do you think?