Hi,
Currently using the latest stable versions of hangfire. I got a couple of these errors
System.ComponentModel.Win32Exception
Message:
Background job creation failed. See inner exception for details. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The wait operation timed out
Callstack:
Hangfire.BackgroundJobClientException: at Hangfire.BackgroundJobClient.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at [Our stuff here] at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ApiControllerActionInvoker+<InvokeActionAsyncCore>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ActionFilterResult+<ExecuteAsync>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Web.Http.Controllers.ExceptionFilterResult+<ExecuteAsync>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) Inner exception System.Data.SqlClient.SqlException handled at Hangfire.BackgroundJobClient.Create: at System.Data.SqlClient.SqlConnection.OnError (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.TdsParser.TryRun (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.FinishExecuteReader (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.RunExecuteReader (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery (System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at Hangfire.SqlServer.SqlCommandBatch.ExecuteNonQuery (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<Commit>b__7_0 (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage+<>c__DisplayClass26_0.<UseTransaction>b__0 (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseConnection (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseTransaction (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerStorage.UseTransaction (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit (Hangfire.SqlServer, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.CoreBackgroundJobFactory.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory+<>c__DisplayClass7_0.<CreateWithFilters>b__0 (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory.InvokeClientFilter (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.Client.BackgroundJobFactory.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) at Hangfire.BackgroundJobClient.Create (Hangfire.Core, Version=1.6.20.0, Culture=neutral, PublicKeyToken=null) Inner exception System.ComponentModel.Win32Exception handled at System.Data.SqlClient.SqlConnection.OnError:
These errors happened at the same time this was happening
This isn’t a huge issue, it has only happened once.