% pytest tests/hub-local
2024-04-22 12:23:37.181 | INFO | laminhub_rest.dev._local_resources:_start_supabase:100 - Starting supabase
supabase start is already running.
2024-04-22 12:23:37.249 | INFO | laminhub_rest.dev._local_resources:_start_supabase:134 - Resetting supabase
2024-04-22 12:23:40.824 | INFO | laminhub_rest.dev._local_resources:create_supabase:30 - Migrating lnhub and setting up supabase schema
💡 lnhub running in local environment
Operations to perform:
Apply all migrations: laminhub_rest
Running pre-migrate handlers for application laminhub_rest
Running pre-migrate handlers for application pgtrigger
Running migrations:
Applying laminhub_rest.0001_initial... OK (0.115s)
Applying laminhub_rest.0002_alter_account_created_at_and_more... OK (0.026s)
Applying laminhub_rest.0003_storage_public_accountstorage... OK (0.042s)
Applying laminhub_rest.0004_alter_accountinstance_role_alter_accountstorage_role... OK (0.023s)
Applying laminhub_rest.0005_accountinstance_upsert_account_storage_and_more... OK (0.021s)
Applying laminhub_rest.0006_alter_instance_storage... OK (0.019s)
Applying laminhub_rest.0007_instance_insert_account_instance_and_more... OK (0.014s)
Applying laminhub_rest.0008_instance_lnid_storage_aws_account_id_and_more... OK (0.061s)
Applying laminhub_rest.0009_instance_git_repo... OK (0.006s)
Applying laminhub_rest.0010_dbserver_alter_instance_git_repo_instance_db_server... OK (0.017s)
Applying laminhub_rest.0011_delete_instancebackend_delete_shareresourcegroup... OK (0.005s)
Applying laminhub_rest.0012_instance_storage_mode... OK (0.006s)
Applying laminhub_rest.0013_remove_instance_db... OK (0.006s)
Applying laminhub_rest.0014_view... OK (0.023s)
Running post-migrate handlers for application laminhub_rest
Running post-migrate handlers for application pgtrigger
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
DO
2024-04-22 12:23:41.823 | DEBUG | laminhub_rest.dev._local_resources:create_edge_functions:42 - Creating edge function
Starting supabase/functions/access-aws
Serving supabase/functions/access-aws
Watcher Process started.
Check file:///home/deno/functions/access-aws/index.ts
2024-04-22 12:23:45.832 | DEBUG | laminhub_rest.dev._local_resources:signup_lamin:59 - Signing up ci@lamin.ai
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/gotrue/_sync/gotrue_base_api.py", line 113, in _request
INTERNALERROR> response.raise_for_status()
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
INTERNALERROR> raise HTTPStatusError(message, request=request, response=self)
INTERNALERROR> httpx.HTTPStatusError: Server error '500 Internal Server Error' for url 'http://localhost:54321/auth/v1/signup'
INTERNALERROR> For more information check: https://httpstatuses.com/500
INTERNALERROR>
INTERNALERROR> During handling of the above exception, another exception occurred:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/_pytest/main.py", line 265, in wrap_session
INTERNALERROR> config._do_configure()
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/_pytest/config/__init__.py", line 982, in _do_configure
INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/pluggy/_hooks.py", line 514, in call_historic
INTERNALERROR> res = self._hookexec(self.name, self._hookimpls, kwargs, False)
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/pluggy/_callers.py", line 113, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/falexwolf/repos/laminapp-ui/rest-app/sub/lamindb/sub/lamindb-setup/tests/hub-local/conftest.py", line 18, in pytest_configure
INTERNALERROR> local_setup_state.__enter__()
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/contextlib.py", line 135, in __enter__
INTERNALERROR> return next(self.gen)
INTERNALERROR> File "/Users/falexwolf/repos/laminapp-ui/rest-hub/laminhub_rest/dev/_setup_local_hub.py", line 24, in setup_local_hub
INTERNALERROR> LocalResources.signup_lamin("ci@lamin.ai", "m7HuXoCPc2V76mWn", "lnci")
INTERNALERROR> File "/Users/falexwolf/repos/laminapp-ui/rest-hub/laminhub_rest/dev/_local_resources.py", line 60, in signup_lamin
INTERNALERROR> auth_response = cls._signup_supabase(email, password)
INTERNALERROR> File "/Users/falexwolf/repos/laminapp-ui/rest-hub/laminhub_rest/dev/_local_resources.py", line 90, in _signup_supabase
INTERNALERROR> auth_response = supabase_client.auth.sign_up(
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/gotrue/_sync/gotrue_client.py", line 162, in sign_up
INTERNALERROR> response = self._request(
INTERNALERROR> File "/Users/falexwolf/miniconda3/envs/py310/lib/python3.10/site-packages/gotrue/_sync/gotrue_base_api.py", line 118, in _request
INTERNALERROR> raise handle_exception(e)
INTERNALERROR> gotrue.errors.AuthApiError: Database error finding user
With this error message: