I am running an Umbraco 13.6 website with a Local/Staging/Prod setup. We use Git push-to-deploy to push code and uSync configuration files to Staging, and uSync to push content between environments. Staging and Prod are on Azure App Service. I am getting the following error when I try to push content from any environment to any other:
Error while processing Push - (export/Push/0/)
Unexpected end of Stream, the content may have already been read by another component.
Pulling seems to work fine, just not pushing. The servers are set up as “Connected servers” on each other. When I go into uSync Publisher and do Check Access, the environments I’m trying to push to show up as Available. If I export and import a configuration package, uSync works as expected. This happens every time, even with only one content node selected.
uSync publishing worked on this site at one point, but both Umbraco and uSync have been updated minor versions since I last remember it working.
What would cause this?
Full trace :
Step: Push (4)
PageNumber: 0
ClassName: <UploadFile>d__14
Method: MoveNext
Trace:
Upload fail: 244bf1f5-99cd-4726-98db-3e354c7fbcf2 - {"code":500,"message":"Unexpected end of Stream, the content may have already been read by another component. ","exceptionMessage":"System.IO.IOException: Unexpected end of Stream, the content may have already been read by another component. \r\n at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken)\r\n at Microsoft.AspNetCore.WebUtilities.MultipartReader.ReadNextSectionAsync(CancellationToken cancellationToken)\r\n at uSync.Publisher.Controllers.uSyncReceiveApiController.GetFileFromRequest(String folder)\r\n at uSync.Publisher.Controllers.uSyncReceiveApiController.GetFileFromRequest(Boolean allowBlankGuid)\r\n at uSync.Publisher.Controllers.uSyncReceiveApiController.PushPack()\r\n at lambda_method3562(Closure, Object)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"}
at uSync.Publisher.Publishers.SyncPublisherBase.UploadFile(String url, Stream stream, uSyncCallbacks callbacks)
at uSync.Publisher.Publishers.SyncRealtimePublisher.PushToServer(PublisherActionRequest request)
at uSync.Publisher.Services.SyncPublisherActionService.PerformAction(PublisherActionRequest request, ISyncPublisher publisher, IUser user)