HI, i have set the prefect server using helm chart...
# prefect-server
a
HI, i have set the prefect server using helm chart on gke following this video

https://www.youtube.com/watch?v=EwsMecjSYEU&t=332s

on prefect channel. I can see on my cluster prefect server and all other dependencies like apollo etc are deployed including prefect agent that i deployed using --set flag with helm install. For the first time this ui comes on prefect server
🙌 2
k
clap
😅 1
a
instead of localhost i have placed apollo server ip that is assigned on cluster and configured the config.toml as well and i can see things are fine like agent is there and ui is fine, but if i change the account on browser than again the above mentioned Ui appears even i have set things up, i have created the tenant too.
k
By account on browser you mean like google chrome profile?
a
yes
or if i share the ui with other collegues they are also unable to run it
k
If they are on different machines, they would need the
config.toml
also. It’s weird that the profile would matter though. Could you show me your
config.toml
?
a
i think i am having issues with config.toml file. Where i can find that cofig.toml file bythe way?
k
In the .prefect folder
a
this is the one that i set following the video
k
Try:
Copy code
[server]
endpoint = "YOUR_MACHINES_PUBLIC_IP:4200/graphql"
Actually, maybe this tutorial will help you with the config.toml for both server and the machine you are connecting with
👀 1
upvote 1
a
after changing my config.toml to one you specified one do i have to run prefect backend server && prefect server create-tenant --name default --slug default again?
k
No just
backend server
, but the tenant should exist already where you are connecting
a
File "/home/aqib/.local/lib/python3.8/site-packages/prefect/client/client.py", line 569, in graphql raise ClientError(result["errors"]) prefect.exceptions.ClientError: [{'message': 'Uniqueness violation.', 'locations': [{'line': 2, 'column': 5}], 'path': ['create_tenant'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Uniqueness violation.'}}}] when i ran the complete command again prefect backend server && prefect server create-tenant --name default --slug default
k
No you don’t create a tenant because your server already has one. Just
prefect backend server
a
Again the getting-started page appears if i try to open the ui on other google chrome account but works fine on google chrome account where i configure it for the first time
here it works fine
k
Will ask around
👍 1
a
and soon i changed the google chrome account
And one more thing even if i use the chrome account that works ( no getting started page there and renders ui) on different pc it still does not work
k
Did you have a config.toml when you set up server? That is the done that will direct it
We don;t cache this in the UI so it’s really weird that changing profiles would cause this