I have encountered an issue when i try to create a new organization it fails on the following step:
Failed to execute action DeployPackage on attempt 1. Retrying in 60 seconds. Reason for retry: NoErrorOnFailure.Exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
12:53:52| Info| Failed to execute action DeployPackage on attempt 2. Retrying in 60 seconds. Reason for retry: NoErrorOnFailure.Exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
12:54:52| Info| Failed to install CustomControlsCoreException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.InstallDynamicsPackageInternal(String solutionUniqueName, FileInfo packageFile, OrganizationInfo organizationInfo)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.InstallDynamicsPackage(String solutionUniqueName, FileInfo packageFile, OrganizationInfo organizationInfo)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
12:54:52| Info| CrmAction execution time; InstallPlatformSolutionsAction; 00:02:01.0443667
12:54:52| Error| Installer Complete: OrganizationCreator - Error encountered
12:54:52| Error| Exception occurred during Microsoft.Crm.Tools.Admin.OrganizationCreator: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallPlatformSolutionsAction
InnerException:
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.<>c__DisplayClass30_0.<Do>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallPlatformSolutionsAction ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.<>c__DisplayClass30_0.<Do>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.Installer.<>c__DisplayClass83_0.<DoAction>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.Installer.<>c__DisplayClass67_0.<Install>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Execute()
at Microsoft.Crm.Tools.Admin.CreateOrganizationInstaller.Create(ICreateOrganizationInfo organizationInfo)
This is something that did not happen previously as we have managed to create new organizations without any issues.