Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Skelton 1 post 71 karma points
    Jan 31, 2023 @ 13:12
    Steve Skelton
    0

    Cannot restore content from Cloud to Local instance

    Hi

    We are trying to migrate to Umbraco cloud and one of our other developers has created content, templates etc on our new cloud instance which i want to sync back to local o we can contunue local development

    I have used gitlab to sync the files , which works, but when we click on the restore button when we first run the site it fails with the error.

    "The source environment has thrown a Umbraco.Deploy.Infrastucture.Exceptions.remoteAPIException with message: The remote api did not return application/json content. it may have been caused by an inner with message: (empty)"

    enter image description here

    The local instance error logs are included below

    I have found a few post and solutions in the forum but i cannot find one that works, Has anyone had the problem and found a solution or any ideas how I can debug this further

    Thanks in advance

    Steve

    {"@t":"2023-01-31T12:22:21.1154631Z","@mt":"Work {id} has failed.","@l":"Error","@x":"Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiException: The remote API did not return application/json content.\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SucceedOrThrow(HttpResponseMessage result, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Environments.RemoteUmbracoEnvironment.BeginSessionAsync(Guid sessionId, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOnWithBatchInfo(IUmbracoEnvironment env, Nullable`1 batchIndex, Nullable`1 numberOfBatches)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOn(IUmbracoEnvironment env)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsync(IWorkContext context, CancellationToken token)","id":"a387066c-15bb-4413-bb1a-ad3f44174b14","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkTask","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"ERROR"}
    
    
    {"@t":"2023-01-31T12:22:21.1784310Z","@mt":"Deployment {id} completed.","id":"a387066c-15bb-4413-bb1a-ad3f44174b14","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkEnvironment","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"INFO "}
    
    
    {"@t":"2023-01-31T12:22:21.1785680Z","@mt":"Deployment failed.","@l":"Error","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkEnvironment","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"ERROR"}
    
  • Carl Sargunar 69 posts 91 karma points MVP 3x
    Mar 21, 2023 @ 00:46
    Carl Sargunar
    0

    Hi Steve - did you find a solution to this problem? I'm seeing similar myself, and not much info online

  • Jason D 66 posts 218 karma points
    Sep 25, 2023 @ 14:32
    Jason D
    0

    I'm having same issue, but from Local to Umbraco Cloud environment.

Please Sign in or register to post replies

Write your reply to:

Draft