Nate Jahncke
04/09/2021, 10:18 PMprefect server start
yields a functional deployment with a working dashboard, but calling docker-compose up
on the docker-compose.yml
produced by executing prefect server config
does not (the UI is responsive, but the dashboard pane below the top nav bar is blank). Also, any attempt to start a local agent in an adjacent docker container gives me a "No tenant found" message via a ClientError exception.
Is the prefect server config
command not actually producing everything it should be at present? I'm sure I can manually build a functional docker-compose.yml by reviewing the prefect docker-compose wrapper, but that might be very time-consuming, so I'm hoping the problem is just something simple that prefect server config
is leaving out. I'm going to be evaluating the two deployments back to back now to see if I can tell what's missing. Any ideas would be greatly appreciated.
Thanks again!Zanie
04/09/2021, 11:29 PMprefect server start
creates the default tenant for you but spinning up your own does not 🙂 you'll just need to run prefect server create-tenant -n default
Nate Jahncke
04/09/2021, 11:40 PMZanie
04/09/2021, 11:40 PMNate Jahncke
04/09/2021, 11:41 PMZanie
04/09/2021, 11:42 PMprefect backend server
🙂Nate Jahncke
04/09/2021, 11:43 PMZanie
04/09/2021, 11:45 PMcurl
to hit the graphql api instead. The mutation used is at https://github.com/PrefectHQ/prefect/blob/master/src/prefect/client/client.py#L111Nate Jahncke
04/09/2021, 11:47 PMZanie
04/09/2021, 11:47 PMNate Jahncke
04/09/2021, 11:48 PMZanie
04/09/2021, 11:49 PMprefect server config
should include docs that say this and prefect server create-tenant
should tell you how to change backends if you're not trying to use Cloud so I'll open an issue to resolve those.Nate Jahncke
04/09/2021, 11:50 PMZanie
04/09/2021, 11:50 PMMarvin
04/09/2021, 11:50 PMZanie
04/09/2021, 11:51 PMNate Jahncke
04/09/2021, 11:54 PMZanie
04/09/2021, 11:55 PMNate Jahncke
04/09/2021, 11:56 PMZanie
04/10/2021, 12:13 AMNate Jahncke
04/10/2021, 5:31 AMprefect server config
will be very helpful for the next person that stumbles across it like I did.root@c98af4692386:/tmp# prefect server create-tenant -h
Usage: prefect server create-tenant [OPTIONS]
This command creates a tenant for the Prefect Server
Options:
--name, -n TEXT The name of a tenant to create
--slug, -n TEXT The slug of a tenant to create (optional)
Options:
-h, --help Show this message and exit.
Should be -s
for slugs I'm assuming.Michael Wheeler
04/12/2021, 3:05 PM