Hi! I am trying to setup prefect with dask on mult...
# prefect-community
g
Hi! I am trying to setup prefect with dask on multiple machines, but I keep getting this error on the remote machines and I think I need to change some config or set some env variable but I can't figure out what that is
I see that it's trying to connect to /graphql at localhost:4200 while the graphql endpoint is on a different IP, but I tried setting
PREFECT_SERVER__GRAPHQL_URL
to the right endpoint but it didn't make a difference
also tried
PREFECT_SERVER__UI__GRAPHQL_URL
c
Hi Gitanshu - can you try setting
PREFECT__CLOUD__GRAPHQL
to your endpoint?
Oh also, you mention multiple machines — can you confirm that you have networked the machines in such a way that they all have network access to your API endpoint?
g
I'm able to access the prefect dashboard from the remote machine but on dashboard home, the API status section shows it's attempting to connect to
<http://localhost:4200/graphql>
I tried setting
PREFECT__CLOUD__GRAPHQL
on my primary before starting the server and it's still going for localhost Also I'm on prefect 0.12.6 (hopefully I'm not running into a known bug)
c
So far it doesn’t sound like a bug - it sounds like your API isn’t accessible from the machines you’re trying to access it from
but I might be missing some context
g
so does it try to connect to localhost if the remote endpoint is not available? I would expect it to show an error saying it can't connect to remote endpoint, instead i see it failing to localhost
c
for the UI: - if you set
PREFECT_SERVER__UI__GRAPHQL_URL
prior to running
prefect server start
, then the UI should spin up pointing at the right place - if you upgrade your server deployment to Prefect Core 0.13.2, you can update your UI API endpoint natively in the UI without config
g
setting the env variable doesn't seem to be working for me. I'll try upgrading to 0.13.2