This does not work for me. I have deleted the database and restarted orion. As soon as I say prefect storage create I get an error. Below is .prefect/profiles.toml; version; traceback from server. I am running on WSL2. Do I have to setup some kind of profile file?
active = “default”
[profiles.default]
PREFECT_API_URL = “http://127.0.0.1:4200/api”
#########################################
(base) ~$ prefect version
Version: 2.0b2
API version: 0.3.0
Python version: 3.8.8
Git commit: b2a048c2
Built: Thu, Mar 17, 2022 2:24 PM
OS/Arch: linux/x86_64
Profile: default
Server type: hosted
#######################################################
10:25:07.018 | ERROR | prefect.orion - Encountered exception in request:
Traceback (most recent call last):
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 159, in call
await self.app(scope, receive, _send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 82, in call
raise exc
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 71, in call
await self.app(scope, receive, sender)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 21, in call
raise e
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 18, in call
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 656, in call
await route.handle(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 259, in handle
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 61, in app
response = await func(request)
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/orion/utilities/server.py”, line 87, in handle_response_scoped_depends
response = await default_handler(request)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/routing.py”, line 217, in app
solved_result = await solve_dependencies(
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/dependencies/utils.py”, line 529, in solve_dependencies
solved = await run_in_threadpool(call, **sub_values)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/concurrency.py”, line 39, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/to_thread.py”, line 28, in run_sync
return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 818, in run_sync_in_worker_thread
return await future
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 754, in run
result = context.run(func, *args)
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/orion/api/dependencies.py”, line 101, in get_limit
default_limit = PREFECT_ORION_API_DEFAULT_LIMIT.value()
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/settings.py”, line 49, in value
return self.value_from(get_current_settings())
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/settings.py”, line 533, in get_current_settings
return get_profile_context().settings
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/context.py”, line 282, in get_profile_context
raise MissingContextError(“No profile context found.”)
prefect.exceptions.MissingContextError: No profile context found.
10:25:07.021 | ERROR | uvicorn.error - Exception in ASGI application
Traceback (most recent call last):
File “/home/simon/anaconda3/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py”, line 372, in run_asgi
result = await app(self.scope, self.receive, self.send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py”, line 75, in call
return await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/uvicorn/middleware/message_logger.py”, line 82, in call
raise exc from None
File “/home/simon/anaconda3/lib/python3.8/site-packages/uvicorn/middleware/message_logger.py”, line 78, in call
await self.app(scope, inner_receive, inner_send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/applications.py”, line 261, in call
await super().call(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/applications.py”, line 112, in call
await self.middleware_stack(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 181, in call
raise exc
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 159, in call
await self.app(scope, receive, _send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/cors.py”, line 84, in call
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 82, in call
raise exc
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 71, in call
await self.app(scope, receive, sender)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 21, in call
raise e
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 18, in call
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 656, in call
await route.handle(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 408, in handle
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/applications.py”, line 261, in call
await super().call(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/applications.py”, line 112, in call
await self.middleware_stack(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 181, in call
raise exc
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/middleware/errors.py”, line 159, in call
await self.app(scope, receive, _send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 82, in call
raise exc
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/exceptions.py”, line 71, in call
await self.app(scope, receive, sender)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 21, in call
raise e
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py”, line 18, in call
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 656, in call
await route.handle(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 259, in handle
await self.app(scope, receive, send)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/routing.py”, line 61, in app
response = await func(request)
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/orion/utilities/server.py”, line 87, in handle_response_scoped_depends
response = await default_handler(request)
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/routing.py”, line 217, in app
solved_result = await solve_dependencies(
File “/home/simon/anaconda3/lib/python3.8/site-packages/fastapi/dependencies/utils.py”, line 529, in solve_dependencies
solved = await run_in_threadpool(call, **sub_values)
File “/home/simon/anaconda3/lib/python3.8/site-packages/starlette/concurrency.py”, line 39, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/to_thread.py”, line 28, in run_sync
return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 818, in run_sync_in_worker_thread
return await future
File “/home/simon/anaconda3/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 754, in run
result = context.run(func, *args)
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/orion/api/dependencies.py”, line 101, in get_limit
default_limit = PREFECT_ORION_API_DEFAULT_LIMIT.value()
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/settings.py”, line 49, in value
return self.value_from(get_current_settings())
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/settings.py”, line 533, in get_current_settings
return get_profile_context().settings
File “/home/simon/anaconda3/lib/python3.8/site-packages/prefect/context.py”, line 282, in get_profile_context
raise MissingContextError(“No profile context found.”)
prefect.exceptions.MissingContextError: No profile context found.