https://prefect.io logo
Title
d

Darragh

08/06/2020, 8:36 PM
Hey guys, I have what might be the first “change of behaviour” between 0.12.X and 0.13 🙂 I was mid update of the EC2 instance we host Prefect Server on, and looks like the prefect install pulled 0.13.0, which is great, apart from one minor flaw - my deployment script doesn’t work anymore. Previously I was able to get the Prefect Server instance to talk to itself over graphql by setting the following env variables before running
prefect backend server
&& `prefect server start`:
export PREFECT__CLOUD__API=http://$(curl <http://169.254.169.254/latest/meta-data/public-ipv4):4200/graphql>
export PREFECT__SERVER__UI__GRAPHQL_URL=http://$(curl <http://169.254.169.254/latest/meta-data/public-ipv4):4200/graphql>
where the above curls evaluate to the public IP of the EC2 instance, and then previously the various containers would be able to talk to the graphql container, but it’s not working since the update to 0.13.0. Instead, in the UI I now get the following:
Couldn't connect
<http://localhost:4200/graphql>
Any suggestions? Different env vars needed, something else?
👀 2
d

Dylan

08/06/2020, 8:44 PM
Hi @Darragh! I think these ENV vars have changed
I’m looking to see what the new values are
d

Darragh

08/06/2020, 8:49 PM
Thanks Dylan!!
d

Dylan

08/06/2020, 9:00 PM
I think this should give you an idea about your new configuration variables
You can set up a
~/.prefect_server/config.toml
just like your prefect user config
and manipulate any of these
PREFECT_SERVER__
is your new prefix I think
d

Darragh

08/06/2020, 9:05 PM
Thank Dylan, I'll try replace the prefix in a few minutes and let you know how it goes!
@Dylan I changed
PREFECT___CLOUD___API
to
PREFECT___SERVER___API
, should that have done it? Cos I’m still seeing the same issue..
d

Dylan

08/07/2020, 1:10 PM
Hi @Darragh, I’d try to enact a change on your local machine using a config.toml and then try to produce the corresponding env var
d

Darragh

08/07/2020, 1:14 PM
Hi Dylan, don't worry for now, I've gone back to 0.12.6 for the moment 👍
d

Dylan

08/07/2020, 1:14 PM
Makes sense!
I’ve passed along the feedback to the team that we need a configuration doc for the new server 👍