Hi all, I am trying to run the orion server on a m...
# prefect-community
d
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
You can solve it by pointing to your remote host using:
Copy code
prefect config set PREFECT_API_URL=<http://42.42.42.42:4200/api>
d
Thanks for the quick reply @Anna Geller. Should I set
Copy code
PREFECT_API_URL=<http://42.42.42.42:4200/api>
on the remote host before
prefect orion start
?
a
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
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
The current state is that it's unresolved. Have you tried Cloud 2.0? Using Cloud API you shouldn't have this problem
v
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
looks like you know what to do - LMK if you have any questions I can help with
v
Thank you, Anna!
👍 1