https://prefect.io logo
Title
d

Domenico Di Gangi

04/01/2022, 8:49 AM
Hi all, I am trying to run the orion server on a machine and open the ui from a different machine on the same network. When I type in my browser http๐Ÿ˜•/{ip_server_machine}:4200 the first page of orion-ui loads fine but it does not fetch any info on deployments or current runs. I am not a javascript expert but, it seems that it tries to fetch data from http://127.0.0.1:4200/api while it should probably use http๐Ÿ˜•/{ip_server_machine}:4200 . Is there a way to see the ui from a different machine, i.e. not from the same machine where the orion server is running?
I temporarily solved forwarding local port 4200 to the remote address where the server is running.
a

Anna Geller

04/01/2022, 10:10 AM
You can solve it by pointing to your remote host using:
prefect config set PREFECT_API_URL=<http://42.42.42.42:4200/api>
d

Domenico Di Gangi

04/01/2022, 12:13 PM
Thanks for the quick reply @Anna Geller. Should I set
PREFECT_API_URL=<http://42.42.42.42:4200/api>
on the remote host before
prefect orion start
?
a

Anna Geller

04/01/2022, 12:18 PM
the other way around, once you start Orion on a remote host, you can point your local machine to it so that when you run flows, they will talk to this remote API
๐Ÿ‘ 1
๐Ÿ™ 1
v

Vladimir Bolshakov

04/04/2022, 10:34 AM
I think this bug with UI related to hardcoded serverโ€™s URL in the JS code of Orion client. See: https://github.com/PrefectHQ/prefect/blob/orion/orion-ui/src/utilities/api.ts#L3-L5 AFAIK, at this moment port forwarding will be solution only. @Anna Geller it will be helpful to know about state of this issue โ€” https://github.com/PrefectHQ/orion/issues/667. This repo is closed to community.
๐Ÿ‘ 1
a

Anna Geller

04/04/2022, 10:41 AM
The current state is that it's unresolved. Have you tried Cloud 2.0? Using Cloud API you shouldn't have this problem
v

Vladimir Bolshakov

04/04/2022, 11:00 AM
Hmmโ€ฆ Using a cloud is a good idea. But at this moment using a cloud located outside of Russia is not the solution on the my current project (from the business point of view). For me, as a developer, this is the main reason to use self-hosted Orion server now. Iโ€™ve forked Orion version with fix of this bug. And my solution is related to specific environment via CI/CD build.
๐Ÿ™Œ 1
๐Ÿ‘ 1
a

Anna Geller

04/04/2022, 11:27 AM
looks like you know what to do - LMK if you have any questions I can help with
v

Vladimir Bolshakov

04/04/2022, 11:41 AM
Thank you, Anna!
๐Ÿ‘ 1