We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 14
this is the log file
2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter-
build.route53 to before-parameter-build.route-53 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from request- created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto- scaling.CreateLaunchConfiguration.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.logs.CreateExportTask to before-parameter-build.cloudwatch- logs.CreateExportTask 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch- logs.CreateExportTask.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch- domain.Search.complete-section 2025-04-28 09:19:17 - s3connector - INFO - S3 connection established successfully. 2025-04-28 09:19:17 - mage_engine_connection - INFO - Mage engine database connection closed. --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),) --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),)
2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter-
build.route53 to before-parameter-build.route-53 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from request- created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto- scaling.CreateLaunchConfiguration.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.logs.CreateExportTask to before-parameter-build.cloudwatch- logs.CreateExportTask 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch- logs.CreateExportTask.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch- domain.Search.complete-section 2025-04-28 09:19:17 - s3connector - INFO - S3 connection established successfully. 2025-04-28 09:19:17 - mage_engine_connection - INFO - Mage engine database connection closed. --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),) --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),)
2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter-
build.route53 to before-parameter-build.route-53 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from request- created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto- scaling.CreateLaunchConfiguration.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.logs.CreateExportTask to before-parameter-build.cloudwatch- logs.CreateExportTask 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch- logs.CreateExportTask.complete-section 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from before-parameter- build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search 2025-04-28 09:19:17 - hooks - DEBUG - Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch- domain.Search.complete-section 2025-04-28 09:19:17 - s3connector - INFO - S3 connection established successfully. 2025-04-28 09:19:17 - mage_engine_connection - INFO - Mage engine database connection closed. --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),) --- Logging error --- Traceback (most recent call last): File "/app/pii_detector/api/service.py", line 43, in process_scan self._process_storage(job_id, request, config_manager) File "/app/pii_detector/api/service.py", line 234, in _process_storage raise e File "/app/pii_detector/api/service.py", line 208, in _process_storage scanner.initialize_metadata() File "/app/pii_detector/file_scanner.py", line 72, in initialize_metadata self.storage_connector.collect_metadata() File "/app/pii_detector/storage/impl/s3connector.py", line 147, in collect_metadata adapter = Adapter(config) File "/app/odd_collector/adapters/s3/adapter.py", line 25, in __init__ self.generator = self.create_generator() File "/app/odd_collector/adapters/s3/adapter.py", line 14, in create_generator return S3Generator( File "/app/odd_collector/adapters/s3/generator.py", line 63, in __init__ super().__init__(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 140, in __init__ self.paths_obj: BasePathsModel = self.__build_paths(**paths) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/generators.py", line 146, in __build_paths path_obj.validate_all_paths() File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 41, in validate_all_paths self.__validate_path(field) File "/home/app/.local/lib/python3.9/site-packages/oddrn_generator/path_models.py", line 27, in __validate_path raise WrongPathOrderException( oddrn_generator.exceptions.WrongPathOrderException: 'bucket_name' can not be without 'bucket_name' attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit msg = self.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format return fmt.format(record) File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format record.message = record.getMessage() File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Call stack: File "/app/pii_detector/api/endpoint.py", line 96, in <module> uvicorn.run(app, host="0.0.0.0", port=8000) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/main.py", line 580, in run server.run() File "/home/app/.local/lib/python3.9/site-packages/uvicorn/server.py", line 66, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/home/app/.local/lib/python3.9/site-packages/uvicorn/protocols/http/ httptools_impl.py", line 409, in run_asgi result = await app( # type: ignore[func-returns-value] File "/home/app/.local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "/home/app/.local/lib/python3.9/site-packages/starlette/middleware/ exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 734, in app await route.handle(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/home/app/.local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app await response(scope, receive, send) File "/home/app/.local/lib/python3.9/site-packages/starlette/responses.py", line 160, in __call__ await self.background() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 41, in __call__ await task() File "/home/app/.local/lib/python3.9/site-packages/starlette/background.py", line 26, in __call__ await self.func(*self.args, **self.kwargs) File "/app/pii_detector/api/service.py", line 48, in process_scan self.logger.error("Exception during process scan at service ", e) Message: 'Exception during process scan at service ' Arguments: (WrongPathOrderException("'bucket_name' can not be without 'bucket_name' attribute"),)
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More