umbraco / Umbraco.Deploy.Issues

1 stars 0 forks source link

Umbraco deploy timeout issue #179

Open Deba22 opened 1 year ago

Deba22 commented 1 year ago

Hi All,

We have migrated our project to umbraco version 10.5.1 from version 8. Im trying to do a partial restore of one node from Live to Staging. The partial restore fails with following error:

d3800087 - Executing, 10%
d3800087 - Executing, 10% - Get remote session
d3800087 - Executing, 80% - Exception!
d3800087 - Executing, 80% - Abort remote session
d3800087 - Executing, 80% - Restore caches and indexes
d3800087 - Failed, 80% - Total time 00:07:41.263.

-- EXCEPTION ---------------------------------------------------
 (proper exception traces at the end of this log)
Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiTimeoutException: The remote API returned content indicating a platform timeout.
----------------------------------------------------------------

EXCEPTION:

Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiTimeoutException: The remote API returned content indicating a platform timeout.
   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SucceedOrThrow(HttpResponseMessage result, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Environments.RemoteUmbracoEnvironment.BeginSessionAsync(Guid sessionId, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOnWithBatchInfo(IUmbracoEnvironment env, Nullable`1 batchIndex, Nullable`1 numberOfBatches)
   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOn(IUmbracoEnvironment env)
   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetPartialRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetPartialRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)
   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetPartialRestoreWorkItem.ExecuteAsync(IWorkContext context, CancellationToken token)

REMOTE:
TEXT: <html><head><title>500 - The request timed out.</title></head><body>  <font color ="#aa0000">         <h2>500 - The request timed out.</h2></font>  The web server failed to respond within the specified time.</body></html>

I have the following app settings in appsettings.json file

    "Deploy": {
      "Settings": {
        "SessionTimeout": "0.0:40:00",
        "SourceDeployTimeout": "0.0:40:00",
        "DatabaseCommandTimeout": "0.0:40:00",
        "HttpClientTimeout": "0.0:40:00",
        "DiskOperationsTimeout": "0.0:25:00"
      },

Even though I have set and increased the timeout values, the partial restore fails well within 10 mins

Here are the versions of Umbraco deploy I'm using: Umbraco.Deploy.Contrib => 10.1.1 Umbraco.Deploy.Forms => 10.2.3 Umbraco.Deploy.OnPrem => 10.2.3

Please let me know if more information is required.

AndyButland commented 1 year ago

We've detailed some options you can look at on the "troubleshooting" page of the documentation, which you can find here. In particular it here may well be worth looking at the step where we discuss "Ensure signatures are pre-cached".