Ryan R04/15/2022, 12:11 AM
Ryan R04/15/2022, 12:25 AM
I am trying using the
version: '3.8' services: orion: ... ports: - "4200:4200" volumes: - ../data/prefect/orion.db:/root/.prefect/orion.db - ../config/prefect/profile.toml:/root/.prefect/profile.toml command: 'prefect orion start --host 0.0.0.0'
var profiles.toml like:
cat ~/.prefect/profiles.toml active = "default" [profiles.default] PREFECT_API_URL = "<http://0.0.0.0:4200/api>" PREFECT_ORION_API_HOST = "0.0.0.0"
Then, when I try to access it from another machine on the lan in http://192.168.1.x ip space, I get a mix of http hosts like this screenshot. ** My first thought was bind to the lan IP, I cannot set
$ prefect orion start prefect orion start Starting... ___ ___ ___ ___ ___ ___ _____ ___ ___ ___ ___ _ _ | _ \ _ \ __| __| __/ __|_ _| / _ \| _ \_ _/ _ \| \| | | _/ / _|| _|| _| (__ | | | (_) | /| | (_) | .` | |_| |_|_\___|_| |___\___| |_| \___/|_|_\___\___/|_|\_| Configure Prefect to communicate with the server with: prefect config set PREFECT_API_URL=<http://0.0.0.0:4200/api> Check out the dashboard at <http://0.0.0.0:4200>
because it's running from inside a docker container that does not have access to bind to the host IP.
PREFECT_API_URL = "<http://192.168.1.184:4200/api>"
I've tried some different variations from https://orion-docs.prefect.io/concepts/settings/ ... but have not had any luck. I'm hoping there's just an ENV var somewhere I am missing that can force the API URL Maybe it needs a LB like traefik to make this setup work? Or possibly this usage setup is not supported in v2.0 yet? Thank you in advance for any pointers on best practices for 2.0!
Check out the dashboard at <http://192.168.1.184:4200> 00:09:17.564 | ERROR | uvicorn.error - [Errno 99] error while attempting to bind on address ('192.168.1.184', 4200): cannot assign requested address Orion stopped!
Ryan R04/15/2022, 12:26 AM
Ryan R04/15/2022, 12:27 AM
Ryan R04/15/2022, 2:32 AM
. May or may not be on your radar, feel free to disregard if it's not a fit for you guys. Thanks again for following up! Maybe there's a more graceful solution to this on the horizon :)
from typing import
Ryan R04/15/2022, 4:03 PM