Error Transferring Local Media folder to Umbraco Cloud
Hello,
I am trying to transfer Media from my local instance to Umbraco Cloud. I go to the Media menu, right click, click 'Queue for transfer'. I then go to Workspaces, and click the 'Transfer to' button. I then get the error below. I have tried it with only just a few files and get the same error.
The source environment has thrown a Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiException with message: The remote API has thrown an exception. It might have been caused by an inner System.AggregateException with message: One or more errors occurred. (Wasn't able to get an UmbracoContext)
Full Error:
ac41a0e0 - Executing, 20% - Create manifest on source
ac41a0e0 - Executing, 25% - Review manifest on target
ac41a0e0 - Executing, 28% - Negotiate files transfer.
ac41a0e0 - Executing, 30% - Create package on source
ac41a0e0 - Executing, 32% - Transfer 0 files.
ac41a0e0 - Executing, 32% - Complete local session
ac41a0e0 - Executing, 35% - Process package on target
❤
ac41a0e0 - Executing, 80% - Complete remote session
ac41a0e0 - Executing, 80% - Exception!
ac41a0e0 - Executing, 80% - Abort remote session
ac41a0e0 - Failed, 80% - Total time 00:00:06.363.
-- EXCEPTION ---------------------------------------------------
(proper exception traces at the end of this log)
System.InvalidOperationException: Wasn't able to get an UmbracoContext
System.AggregateException: One or more errors occurred. (Wasn't able to get an UmbracoContext)
Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiException: The remote API has thrown an exception.
----------------------------------------------------------------
EXCEPTION:
Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiException: The remote API has thrown an exception.
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.WaitAction(Guid sessionId, String action, CancellationToken token)
at Umbraco.Deploy.Infrastructure.Environments.RemoteUmbracoEnvironment.CompleteSessionAsync(Guid sessionId, CompleteInfos infos, CancellationToken token)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.CloseSessionOn(IUmbracoEnvironment env, Boolean complete, Exception exception, Boolean silent, Nullable`1 batchIndex, Nullable`1 numberOfBatches)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SourceDeployWorkItem.ExecuteForItems(IEnumerable`1 items, Nullable`1 batchIndex, Nullable`1 numberOfBatches, CancellationToken token)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SourceDeployWorkItem.ExecuteForItems(IEnumerable`1 items, Nullable`1 batchIndex, Nullable`1 numberOfBatches, CancellationToken token)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SourceDeployWorkItem.ExecuteForItems(IEnumerable`1 items, CancellationToken token)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SourceDeployWorkItem.ExecuteAsync(IWorkContext context, CancellationToken token)
REMOTE:
System.AggregateException: One or more errors occurred. (Wasn't able to get an UmbracoContext)
at Umbraco.Cms.Infrastructure.Scoping.Scope.TryFinally(Action[] actions)
at Umbraco.Cms.Infrastructure.Scoping.Scope.Dispose()
at Umbraco.Deploy.Infrastructure.Core.AltScope.Dispose()
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SessionWorkItem.<>c__DisplayClass24_0.<Complete>b__0()
at Umbraco.Deploy.Infrastructure.Work.WorkTask.TryDo(Action action)
at Umbraco.Deploy.Infrastructure.Work.WorkContext.TryDo(Action action)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SessionWorkItem.Complete(Boolean success)
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SessionWorkItem.<ExecuteCompleteAction>b__23_0()
--- End of stack trace from previous location ---
at Umbraco.Deploy.Infrastructure.Work.WorkItems.SessionWorkItem.WaitIdle()
at Umbraco.Deploy.Infrastructure.Environments.EnvironmentController.WaitCompleted(SessionActionModel model)
at lambda_method601(Closure, Object, Object[])
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--> System.InvalidOperationException: Wasn't able to get an UmbracoContext
at Umbraco.Extensions.UmbracoContextAccessorExtensions.GetRequiredUmbracoContext(IUmbracoContextAccessor umbracoContextAccessor)
at Umbraco.Cms.Infrastructure.DependencyInjection.UmbracoBuilderExtensions.<>c.<AddCoreInitialServices>b__0_10(IServiceProvider factory)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Umbraco.Cms.Core.Events.NotificationHandlerWrapperImpl`1.Handle[TNotification,TNotificationHandler](IEnumerable`1 notifications, ServiceFactory serviceFactory, Action`2 publish)
at Umbraco.Cms.Core.Events.EventAggregator.PublishNotifications[TNotification,TNotificationHandler](IEnumerable`1 notifications)
at Umbraco.Cms.Core.Events.EventAggregator.Publish[TNotification,TNotificationHandler](IEnumerable`1 notifications)
at Umbraco.Deploy.Infrastructure.DeployScopedNotificationPublisher.PublishScopedNotifications(IList`1 notifications)
at Umbraco.Cms.Core.Events.ScopedNotificationPublisher`1.ScopeExit(Boolean completed)
at Umbraco.Cms.Infrastructure.Scoping.Scope.TryFinally(Action[] actions)
Is there a setting or something that I am missing?
Did you have any luck on this? We are experiencing the same. On both content and media. A few retries will usually get it to transfer but not always. We're using Cloud as well and see this even between cloud environments (not just local)
Hi,
Yes this is now fixed. I submitted a support ticket and it turns out it was an issue on Umbraco's side. If you try it again, it also probably fixed for you. If not, submit a support ticket and Umbraco Support will take a look from their side and fix it. Thanks
Error Transferring Local Media folder to Umbraco Cloud
Hello, I am trying to transfer Media from my local instance to Umbraco Cloud. I go to the Media menu, right click, click 'Queue for transfer'. I then go to Workspaces, and click the 'Transfer to' button. I then get the error below. I have tried it with only just a few files and get the same error.
Full Error:
Is there a setting or something that I am missing?
Did you have any luck on this? We are experiencing the same. On both content and media. A few retries will usually get it to transfer but not always. We're using Cloud as well and see this even between cloud environments (not just local)
Hi, Yes this is now fixed. I submitted a support ticket and it turns out it was an issue on Umbraco's side. If you try it again, it also probably fixed for you. If not, submit a support ticket and Umbraco Support will take a look from their side and fix it. Thanks
is working on a reply...