Hello,
Yesterday, we updated our Octopus Server to the last 2021.2.7650 version.
Since then, a majority of our deployments fail with a strange error (see screenshot below) although all steps were successful :
Both the tentacle and the server versions are up-to-date.
Exception occurred while executing a reader for `SELECT TOP 1 * FROM [dbo].[Deployment] WHERE [Id] = @Id`
System.Exception
at Nevermore.Transient.DbCommandExtensions.ExecuteReaderWithRetryAsync(DbCommand command, RetryPolicy commandRetryPolicy, CommandBehavior commandBehavior, RetryPolicy connectionRetryPolicy, String operationName, CancellationToken cancellationToken)
at Nevermore.CommandExecutor.ExecuteReaderAsync(CancellationToken cancellationToken)
at Nevermore.Advanced.ReadTransaction.ExecuteReaderAsync(PreparedCommand preparedCommand, CancellationToken cancellationToken)
at Nevermore.Advanced.ReadTransaction.StreamAsync[TRecord](PreparedCommand command, CancellationToken cancellationToken)+MoveNext()
at Nevermore.Advanced.ReadTransaction.LoadAsync[TDocument,TKey](TKey id, CancellationToken cancellationToken)
at Nevermore.Advanced.ReadTransaction.LoadAsync[TDocument,TKey](TKey id, CancellationToken cancellationToken)
at Octopus.Core.RelationalStorage.RawRelationalTransaction.LoadAsync[TDocument](String id, CancellationToken cancellationToken) in RawRelationalTransaction.cs:line 26
at Octopus.Server.Web.Infrastructure.OctopusQueryExecutor.LoadAsync[TDocument](String id, CancellationToken cancellationToken) in OctopusQueryExecutor.cs:line 225
at Octopus.Core.Persistence.Database.ProjectPathDecorators.ProjectPathQueryExecutorDecorator.LoadAsync[TDocument](String id, CancellationToken cancellationToken) in ProjectPathQueryExecutorDecorator.cs:line 39
at Octopus.Core.Persistence.Database.DatabaseDocumentStore`1.GetAsync(String id, CancellationToken cancellationToken) in DatabaseDocumentStore.cs:line 45
at Octopus.Core.Persistence.Database.FullTableCacheDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in FullTableCacheDocumentStoreDecorator.cs:line 53
at Octopus.Core.Persistence.Database.ProjectPathDecorators.ProjectPathDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in ProjectPathDocumentStoreDecorator.cs:line 42
at Octopus.Core.Persistence.EntityTracking.EntityTrackingDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in EntityTrackingDocumentStoreDecorator.cs:line 42
at Octopus.Core.Persistence.Auditing.AuditingDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in AuditingDocumentStoreDecorator.cs:line 48
at Octopus.Core.Persistence.Database.Deletion.DeleteRelatedDocumentsDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in DeleteRelatedDocumentsDocumentStoreDecorator.cs:line 36
at Octopus.Core.Persistence.Database.Deletion.VetoDocumentStoreDecorator`1.GetAsync(String id, CancellationToken cancellationToken) in VetoDocumentStoreDecorator.cs:line 35
at Octopus.Core.Persistence.DocumentStore`1.GetAsync(String id, CancellationToken cancellationToken) in DocumentStore.cs:line 83
at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentPlanService.LoadStateContainer(DeploymentPlan plan, CancellationToken cancellationToken) in DeploymentPlanService.cs:line 83
at Octopus.Server.Orchestration.ServerTasks.Deploy.ExecutionPlanService`3.Persist(DeploymentPlan plan, CancellationToken cancellationToken) in ExecutionPlanService.cs:line 60
at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentTaskController.<>c__DisplayClass5_0.<PersistPlan in DeploymentTaskController.cs:line 70
at Octopus.Server.Infrastructure.Orchestration.UnitsOfWork.UnitOfWorkExecutor.<>c__DisplayClass3_0`1.<Execute in UnitOfWorkExecutor.cs:line 61
at Octopus.Core.Infrastructure.UnitsOfWork.UnitOfWorkExtensionMethods.DoAsync(IUnitOfWork unitOfWork, Func`1 action, CancellationToken cancellationToken, String name) in UnitOfWorkExtensionMethods.cs:line 73
at Octopus.Core.Infrastructure.UnitsOfWork.UnitOfWorkExtensionMethods.DoAsync(IUnitOfWork unitOfWork, Func`1 action, CancellationToken cancellationToken, String name) in UnitOfWorkExtensionMethods.cs:line 73
at Octopus.Server.Infrastructure.Orchestration.UnitsOfWork.UnitOfWorkExecutor.Execute[T](Func`3 action, CancellationToken cancellationToken, String name) in UnitOfWorkExecutor.cs:line 62
at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentTaskController.PersistPlan(DeploymentPlan plan, CancellationToken cancellationToken) in DeploymentTaskController.cs:line 71
at Octopus.Server.Orchestration.ServerTasks.Deploy.ExecutionTaskController`1.ExecuteBase(ITaskLog taskLogRoot, CancellationToken cancellationToken) in ExecutionTaskController.cs:line 106
at Octopus.Server.Orchestration.ServerTasks.Deploy.DeploymentTaskController.Execute(ITaskLog taskLog, CancellationToken cancellationToken) in DeploymentTaskController.cs:line 55
at Octopus.Server.Orchestration.ServerTasks.RunningTask.<>c__DisplayClass32_0.<RunMainThread in RunningTask.cs:line 154
at Octopus.Core.Infrastructure.UnitsOfWork.UnitOfWorkExtensionMethods.DoAsync(IUnitOfWork unitOfWork, Func`1 action, CancellationToken cancellationToken, String name) in UnitOfWorkExtensionMethods.cs:line 73
at Octopus.Core.Infrastructure.UnitsOfWork.UnitOfWorkExtensionMethods.DoAsync(IUnitOfWork unitOfWork, Func`1 action, CancellationToken cancellationToken, String name) in UnitOfWorkExtensionMethods.cs:line 73
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Octopus.Server.Orchestration.ServerTasks.RunningTask.RunMainThread() in RunningTask.cs:line 181
--Inner Exception--
SQL Error 995 - A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The I/O operation has been aborted because of either a thread exit or an application request.)
Microsoft.Data.SqlClient.SqlException
at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at Nevermore.Transient.DbCommandExtensions.<>c__DisplayClass3_0.<ExecuteReaderWithRetryAsync
at Nevermore.Transient.DbCommandExtensions.<>c__DisplayClass3_0.<ExecuteReaderWithRetryAsync
at Nevermore.Transient.RetryPolicy.ExecuteActionAsync[TResult](Func`1 func)
at Nevermore.Transient.DbCommandExtensions.ExecuteReaderWithRetryAsync(DbCommand command, RetryPolicy commandRetryPolicy, CommandBehavior commandBehavior, RetryPolicy connectionRetryPolicy, String operationName, CancellationToken cancellationToken)
--Inner Exception--
The I/O operation has been aborted because of either a thread exit or an application request.
System.ComponentModel.Win32Exception
May this issue be related to bug in the last release ? Thanks in advance for your help. Selmir