Hi. I'm trying to setup the Prefect server locally...
# ask-community
j
Hi. I'm trying to setup the Prefect server locally using the output from
prefect server config
. I tried to create a project in the UI, but I get an "uh-oh" error - looking at the GraphQL response I can see the error is "Variable "$tenantId" of non-null type "UUID!" must not be null.". I think a tenant is a team, and if I try to update the team name from the profile page I see a similar GraphQL error: "Field update_tenant_name_input.tenant_id of required type UUID! was not provided". If I try to create a project using the CLI (
prefect create project "Test Project"
), I get the error: "You have not set an API key for authentication" - I can't see a way to setup an API key that doesn't seem to related to Prefect Cloud? If I try to create a tenant with the CLI (
prefect server create-tenant --name="Test"
) I get: "To create a tenant with Prefect Cloud, please signup at ...". Have I somehow missed creating the 'default' team - is there a way I can fix that?
z
You'll want to run
prefect backend server
so that the CLI does not think you are trying to work with Cloud.
j
ah, i thought that was the default 🤦‍♂️ thanks!