State table exception in detail :
-
{“FailedAt”:“2015-01-28T06:26:11.0467558Z”,
“ExceptionType”:“System.Data.SqlClient.SqlException”,
“ExceptionMessage”:“Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”,
“ExceptionDetails”:"System.Data.SqlClient.SqlException (0x80131904): Timeout expired.
The timeout period elapsed prior to completion of the operation or the server is not responding. —> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out\r\n
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)\r\n
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)\r\n
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite)\r\n at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource
1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)\r\n at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()\r\n
ClientConnectionId:bae2a6d1-d4a5-4606-9a42-ab3e78f480e1"}
-
{“FailedAt”:“2015-01-28T23:06:25.0085674Z”,"
ExceptionType":“System.IO.FileNotFoundException”,
“ExceptionMessage”:“Could not find file ‘C:\Elastic Grid\CampaignLauncher\temp\446f055b-1f5d-4656-925c-b947e16559aa25000_contacts_XLSX_Step 7.xlsx’.”,
“ExceptionDetails”:"System.IO.FileNotFoundException: Could not find file ‘C:\Elastic Grid\CampaignLauncher\temp\446f055b-1f5d-4656-925c-b947e16559aa25000_contacts_XLSX_Step 7.xlsx’.\r\nFile name: ‘C:\Elastic Grid\CampaignLauncher\temp\446f055b-1f5d-4656-925c-b947e16559aa25000_contacts_XLSX_Step 7.xlsx’\r\n
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)\r\n at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)}
As per my understanding , When I upload the excel file, hangfire creates a job and starts processing. The processing takes more then 30 min and Hangfire creates one more job for the same excel file upload. So two jobs are accessing same file and one of them gets File not found error as other is processing it. This retry count of errored job gets increasing and connections gets increasing. This happens for each upload excel file task and all gets down. This is just what I am thinking/assuming, Please suggest your views/solution and do the needful asap.