INFO: Waiting for application startup. INFO: Application startup complete. INFO: 127.0.0.1:39282 - "GET /token-validator HTTP/1.0" 401 Unauthorized 192.168.178.9 - - [21/Jan/2024:16:56:50 +0000] "GET / HTTP/1.1" 200 702 "-" "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" INFO: 127.0.0.1:39292 - "GET /token-validator HTTP/1.0" 401 Unauthorized 192.168.178.9 - - [21/Jan/2024:16:56:50 +0000] "GET /papermerge-runtime-config.js HTTP/1.1" 200 60 "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" INFO: 127.0.0.1:57100 - "GET /token-validator HTTP/1.0" 401 Unauthorized INFO 2024-01-21 16:56:57,156 auth Database based authentication for 'admin' 192.168.178.9 - - [21/Jan/2024:16:56:57 +0000] "POST /api/token HTTP/1.1" 500 21 "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" Exception in ASGI application Traceback (most recent call last): File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi result = await app( # type: ignore[func-returns-value] File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ return await self.app(scope, receive, send) File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 86, in __call__ raise exc from None File "/auth_server_app/.venv/lib/python3.10/site-packages/uvicorn/middleware/message_logger.py", line 82, in __call__ await self.app(scope, inner_receive, inner_send) File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__ await self.middleware_stack(scope, receive, send) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__ raise exc File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__ await self.app(scope, receive, _send) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__ raise exc File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__ await self.app(scope, receive, sender) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__ await route.handle(scope, receive, send) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle await self.app(scope, receive, send) File "/auth_server_app/.venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app response = await func(request) File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 299, in app raise e File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 294, in app raw_response = await run_endpoint_function( File "/auth_server_app/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function return await dependant.call(**values) File "/auth_server_app/auth_server/main.py", line 45, in retrieve_token user = await authenticate(db, **kwargs) File "/auth_server_app/auth_server/auth.py", line 37, in authenticate return db_auth(db, username, password) File "/auth_server_app/auth_server/auth.py", line 106, in db_auth user = get_user_by_username(db.get_bind(), username) File "/auth_server_app/auth_server/crud.py", line 27, in get_user_by_username db_user = session.scalars(stmt).one() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2420, in scalars return self._execute_internal( File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2180, in _execute_internal conn = self._connection_for_bind(bind) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2047, in _connection_for_bind return trans._connection_for_bind(engine, execution_options) File "", line 2, in _connection_for_bind File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go ret_value = fn(self, *arg, **kw) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1143, in _connection_for_bind conn = bind.connect() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3269, in connect return self._connection_cls(self) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 147, in __init__ Connection._handle_dbapi_exception_noconnection( File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2431, in _handle_dbapi_exception_noconnection raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__ self._dbapi_connection = engine.raw_connection() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3293, in raw_connection return self.pool.connect() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 452, in connect return _ConnectionFairy._checkout(self) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1269, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 716, in checkout rec = pool._do_get() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 284, in _do_get return self._create_connection() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection return _ConnectionRecord(self) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 678, in __init__ self.__connect() File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 902, in __connect with util.safe_reraise(): File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__ raise exc_value.with_traceback(exc_tb) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 898, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 645, in connect return dialect.connect(*cargs, **cparams) File "/auth_server_app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 616, in connect return self.loaded_dbapi.connect(*cargs, **cparams) File "/auth_server_app/.venv/lib/python3.10/site-packages/MySQLdb/__init__.py", line 121, in Connect return Connection(*args, **kwargs) File "/auth_server_app/.venv/lib/python3.10/site-packages/MySQLdb/connections.py", line 193, in __init__ super().__init__(*args, **kwargs2) sqlalchemy.exc.OperationalError: (MySQLdb.OperationalError) (1130, "Host '172.28.0.6' is not allowed to connect to this MariaDB server") (Background on this error at: https://sqlalche.me/e/20/e3q8)