level: Debug

severity: DEBUG

message: Process started.


message: Processing command line argsWORK_PERMIT_V2_LIFECYCLE_AUTO_CLOSE


level: Info

severity: INFO

message: ## Started Work Permit V2 lifecycle auto close cron execution ##


level: Error

severity: ERROR

message: Could not process Work Permit V2 lifecycle auto close execution


EntryPoint: RenewalReminder

stackTrace:
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): A socket operation was attempted to an unreachable network 10.0.1.10:1522
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   at MySql.Data.MySqlClient.NativeDriver.<>c.<Open>b__40_0(Exception ex)
   at System.AggregateException.Handle(Func`2 predicate)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.OpenConnection() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 26
   at IncidentReporter.DAL.Repositories.OsmoguardRepo.GetAcmModuleIdByModuleName(String moduleName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OsmoguardRepo.cs:line 740
   at IncidentReporter.RenewalReminder.Helpers.WorkPermitV2LifecycleAutoCloseHelper.WorkPermitV2LifecycleAutoCloseExecution() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.RenewalReminder\Helpers\WorkPermitV2LifecycleAutoCloseHelper.cs:line 36


Message: Unable to connect to any of the specified MySQL hosts.


message: ## No lifecycle configs found with Work Permit V2 auto close enabled. ##


message: No command line args passed.


message: Processing command line argsBATCH_ATTENDANCE_CRON


message: Starting Batch Attendance OCR background job


message: [OCR-BG] Computed absolute path: https://files.sandbox.oqsha.com/attachments/264/batches/reduced_2135bb97-0f2f-4d3f-b9fc-f16768fce253.jpg


message: [OCR-BG] Downloading remote file for OCR: https://files.sandbox.oqsha.com/attachments/264/batches/reduced_2135bb97-0f2f-4d3f-b9fc-f16768fce253.jpg


message: [OCR-BG] Downloaded 311421 bytes successfully.


message: [OCR-BG] Resolved Template Name: 'ttk_training_attendance_template'


message: [OCR-BG] Preparing to POST to Document Extractor API. URL: https://docex-api.oqsha.in/ocr/?template_name=ttk_training_attendance_template


message: [OCR-BG] Executing POST request...


message: [OCR-BG] POST completed. Status Code: 200 (OK)


message: [OCR-BG] Successfully received JSON response. Parsing now...


message: [OCR-BG] Parsed OCR response successfully. Returning success.


level: Warn

severity: WARN

message: No participants extracted for BatchId=2913


message: Batch Attendance OCR background job completed


message: Process started.


message: Processing command line argsWORK_PERMIT_V2_LIFECYCLE_AUTO_CLOSE


message: ## Started Work Permit V2 lifecycle auto close cron execution ##