raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context self.dialect.do_execute( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "core_user" does not exist LINE 2: FROM core_user ^ [SQL: SELECT core_user.id AS core_user_id FROM core_user WHERE core_user.id = %(id_1)s LIMIT %(param_1)s] [parameters: {'id_1': '7830fb584edb4152b19b2484b37577a3', 'param_1': 1}] (Background on this error at: https://sqlalche.me/e/20/f405) INFO: 127.0.0.1:40756 - "GET /token-validator HTTP/1.0" 500 Internal Server Error 2024/01/20 09:31:29 [error] 78#78: *18 auth request unexpected status: 500 while sending to client, client: 192.168.178.9, server: _, request: "POST /api/token HTTP/1.1", host: "192.168.179.150:12000", referrer: "http://192.168.179.150:12000/" 192.168.178.9 - - [20/Jan/2024:09:31:29 +0000] "POST /api/token HTTP/1.1" 500 579 "http://192.168.179.150:12000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0" ERROR: Exception in ASGI application Traceback (most recent call last): File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context self.dialect.do_execute( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute cursor.execute(statement, parameters) psycopg2.errors.UndefinedTable: relation "core_user" does not exist LINE 2: FROM core_user ^ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/tivoli_app/.venv/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 429, in run_asgi result = await app( # type: ignore[func-returns-value] File "/tivoli_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ return await self.app(scope, receive, send) File "/tivoli_app/.venv/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__ await self.middleware_stack(scope, receive, send) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__ raise exc File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__ await self.app(scope, receive, _send) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__ raise exc File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__ await self.app(scope, receive, sender) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__ await route.handle(scope, receive, send) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/tivoli_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app response = await func(request) File "/tivoli_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app raise e File "/tivoli_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app raw_response = await run_endpoint_function( File "/tivoli_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function return await dependant.call(**values) File "/tivoli_app/tivoli/main.py", line 76, in root user = get_user(db, user_id) File "/tivoli_app/tivoli/utils.py", line 13, in get_user return db.query(models.User).filter(models.User.id == user_id).first() File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2748, in first return self.limit(1)._iter().first() # type: ignore File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2847, in _iter result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2308, in execute return self._execute_internal( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2190, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement result = conn.execute( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1416, in execute return meth( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 516, in _execute_on_connection return connection._execute_clauseelement( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1639, in _execute_clauseelement ret = self._execute_context( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1848, in _execute_context return self._exec_single_context( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1988, in _exec_single_context self._handle_dbapi_exception( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2343, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context self.dialect.do_execute( File "/tivoli_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "core_user" does not exist LINE 2: FROM core_user ^ [SQL: SELECT core_user.id AS core_user_id FROM core_user WHERE core_user.id = %(id_1)s LIMIT %(param_1)s] [parameters: {'id_1': '7830fb584edb4152b19b2484b37577a3', 'param_1': 1}] (Background on this error at: https://sqlalche.me/e/20/f405)