https://prefect.io logo
c

Clemens

12/11/2020, 9:12 AM
Hi everyone, I have trouble getting access to the prefect UI after upgrading to 13.19. We run prefect-server on Kubernetes (spun up via the helm chart) and I connect with port-forwarding. The UI is displayed and tell me to create a tenant, if I execute the command however I get an error -> in thread to declutter
Copy code
prefect server create-tenant --name default --slug default
Traceback (most recent call last):
  File "/Users/meyerzurheda/.pyenv/versions/3.8.3/bin/prefect", line 8, in <module>
    sys.exit(cli())
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/meyerzurheda/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/meyerzurheda/.pyenv/versions/3.8.3/lib/python3.8/site-packages/prefect/cli/server.py", line 424, in create_tenant
    tenant_id = client.create_tenant(name=name, slug=slug)
  File "/Users/meyerzurheda/.pyenv/versions/3.8.3/lib/python3.8/site-packages/prefect/client/client.py", line 133, in create_tenant
    tenant_info = self.graphql(
  File "/Users/meyerzurheda/.pyenv/versions/3.8.3/lib/python3.8/site-packages/prefect/client/client.py", line 318, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'message': "[{'extensions': {'path': '$', 'code': 'validation-failed'}, 'message': 'no mutations exist'}]", 'locations': [{'line': 2, 'column': 5}], 'path': ['create_tenant'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': "[{'extensions': {'path': '$', 'code': 'validation-failed'}, 'message': 'no mutations exist'}]"}}}]
n

nicholas

12/11/2020, 3:08 PM
Hm, it looks like your migrations didn't run, can you run those and try the command again?
z

Zanie

12/11/2020, 3:46 PM
Side note — glad to hear you’re using the Helm chart! If you have any feedback on the setup process feel free to send me a DM.
upvote 1
c

Clemens

12/11/2020, 3:52 PM
Because it was a development setup I reinstalled it and that worked out
n

nicholas

12/11/2020, 3:53 PM
Got it @Clemens - if you run into any more trouble, let us know 🙂