Usync Complete "The given path's format is not supported." error
Being a non-developer, I am using Umbraco CMS and I am trying to use Usync.complete(currently in trial status).
While testing, we are having some problems. Everything seems to be working fine but "media" related functions are not working. Been through the documentation and FAQs but could not find the solution.
Following/similar error pops-up in few areas like Publisher: including media to push or Exporting Sync pack.
Unhandled controller exception occurred for request '"https://cms-dev.test.com/umbraco/backoffice/uSync/uSyncExporterApi/ExportItems/"
System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
at uSync8.BackOffice.Services.SyncFileService.GetAbsPath(String path)
at uSync8.BackOffice.Services.SyncFileService.OpenWrite(String path)
at uSync8.BackOffice.Services.SyncFileService.SaveFile(String filename, Stream stream)
at uSync.Expansions.Core.Physical.uSyncMediaFileService.CopyMediaFile(IMedia item, String folder)
at uSync.Expansions.Core.Services.uSyncDependencyService.ExportDependency(uSyncDependency dependency, String folder, ISyncExtendedHandler handler, HandlerSettings settings, SyncPackOptions options)
at uSync.Expansions.Core.Services.uSyncDependencyService.ExportDependencies(IEnumerable`1 dependencies, String handlerSetName, SyncPackOptions options, SyncUpdateCallback update, Int32 startIndex, Int32 totalSteps)
at uSync.Expansions.Core.Services.uSyncDependencyService.CreateSyncPack(IEnumerable`1 dependencies, String handlerSetName, SyncPackOptions options, uSyncCallbacks callbacks)
at uSync.Exporter.Controllers.uSyncExporterApiController.Export(IEnumerable`1 dependencies, Boolean includeFiles, String name, String type, uSyncCallbacks callbacks)
at uSync.Exporter.Controllers.uSyncExporterApiController.ExportItems(ExportItemsView model)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
Currently using AWS instance for Umbraco and S3 for the media storage location.
Just wondering did you have media in your media folders before you setup the S3 storage ? We have seen a couple of issues with media paths changing after people setup cloud storage and then the exports being affected by it.
if you can add the following two lines to the config/serilog.config file. then you will hopefully get some extra debug logging in the umbraco logs (settings -> Log Viewer) just before the error :
I have tried this out and got result as following.
Oct 30, 2020 9:42:58 PM Error EC2AMAZ-S49PQNV Unhandled controller exception occurred for request '"https://cms-dev.test.com/umbraco/backoffice/uSync/uSyncPublisherApi/PerformStep/67be6690-d345-42f3-a89f-8ee0d67c4ba2?mode=push"'
Oct 30, 2020 9:42:58 PM Debug EC2AMAZ-S49PQNV Saving File: "D:\IIS_WWW\cms-dev.test.com\App_Data\TEMP\uSync\pack\guplx4ijhttps://test.s3-eu-west-1.amazonaws.com/Media/n5udbfwe/10px_img.jpeg"
Oct 30, 2020 9:42:57 PM Debug EC2AMAZ-S49PQNV file path from crop: "https://test.s3-eu-west-1.amazonaws.com/Media/n5udbfwe/10px_img.jpeg"
Oct 30, 2020 9:42:57 PM Debug EC2AMAZ-S49PQNV CopyMediaFile: 1698 "D:\IIS_WWW\cms-dev.test.com\App_Data\TEMP\uSync\pack\guplx4ij"
I guess I should have mentioned more details of the the process these error came from:
I have been testing pushing media using "remote media" function Local to remote server(Dev1 -> Dev2)
And for your question on having media file beforehand: We were using S3 from the start.
Umbraco was configured from start with S3 storage. But we did change S3 storage location for Dev2 to point to new one. Before, Dev1 and Dev2 were pointing at same S3 bucket. These tests were done on Dev1.
Please, check. And give me an information to solve this.
- We have 2 Instance (Dev1, Dev2) that are installed uSync
- We Use AWS S3 for Media storage (Use different bucket for each.)
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV Saving File: "D:\IIS_WWW\cms-dev.intelliantech.com\App_Data\TEMP\uSync\pack\bi5amx34https://intellianwebstage.s3-us-west-2.amazonaws.com/Media/eayoegy5/2018_contest_winner_v4_500x500px-사본.jpg"
Dec 22, 2020 11:17:04 AM Error EC2AMAZ-S49PQNV Unhandled controller exception occurred for request '"https://cms-dev.intelliantech.com/umbraco/backoffice/uSync/uSyncPublisherApi/PerformStep/2b3b84cd-cc35-4acc-89f3-f96af32f9b33?mode=push"'
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV 19: {Count} Required Media Items Exporting
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV PackMedia: 19 media files in "D:\IIS_WWW\cms-dev.intelliantech.com\App_Data\TEMP\uSync\pack\bi5amx34"
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV CopyMediaFile: 2597 "D:\IIS_WWW\cms-dev.intelliantech.com\App_Data\TEMP\uSync\pack\bi5amx34"
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV file path from crop: "https://intellianwebstage.s3-us-west-2.amazonaws.com/Media/eayoegy5/2018_contest_winner_v4_500x500px-사본.jpg"
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV PeformStep: ["2b3b84cd-cc35-4acc-89f3-f96af32f9b33":"Push"] - "dev2" - "publish"["Push Media"]
Dec 22, 2020 11:17:04 AM Debug EC2AMAZ-S49PQNV PeformStep: Starting "Push Media" 0
And It's detail error log...
Exception
System.NotSupportedException: The given path's format is not supported.
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
at uSync8.BackOffice.Services.SyncFileService.GetAbsPath(String path)
at uSync8.BackOffice.Services.SyncFileService.OpenWrite(String path)
at uSync8.BackOffice.Services.SyncFileService.SaveFile(String filename, Stream stream)
at uSync.Expansions.Core.Physical.uSyncMediaFileService.CopyMediaFile(IMedia item, String folder)
at uSync.Expansions.Core.Physical.uSyncMediaFileService.CopyMediaFile(Guid key, String folder)
at uSync.Expansions.Core.Services.uSyncDependencyService.PackMedia(IEnumerable`1 keys, uSyncCallbacks callbacks)
at uSync.Publisher.Publishers.SyncRealTimeStepPublisher.<PushMedia>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at uSync.Publisher.Controllers.uSyncPublisherApiController.<PerformStep>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
Usync Complete "The given path's format is not supported." error
Being a non-developer, I am using Umbraco CMS and I am trying to use Usync.complete(currently in trial status).
While testing, we are having some problems. Everything seems to be working fine but "media" related functions are not working. Been through the documentation and FAQs but could not find the solution.
Following/similar error pops-up in few areas like Publisher: including media to push or Exporting Sync pack.
Currently using AWS instance for Umbraco and S3 for the media storage location.
Hi,
Sorry this is working for you .
Just wondering did you have media in your media folders before you setup the S3 storage ? We have seen a couple of issues with media paths changing after people setup cloud storage and then the exports being affected by it.
if you can add the following two lines to the
config/serilog.config
file. then you will hopefully get some extra debug logging in the umbraco logs (settings -> Log Viewer) just before the error :You will have to restart your site once you've edited this file to see the log entries.
It would be good to see what these lines look like in your logs:
CopyMediaFile: {Id} {folder}
and"Saving File: {0}
Kevin
Hi, Kevin
I have tried this out and got result as following.
I guess I should have mentioned more details of the the process these error came from: I have been testing pushing media using "remote media" function Local to remote server(Dev1 -> Dev2)
And for your question on having media file beforehand: We were using S3 from the start.
Umbraco was configured from start with S3 storage. But we did change S3 storage location for Dev2 to point to new one. Before, Dev1 and Dev2 were pointing at same S3 bucket. These tests were done on Dev1.
Thanks
Chan
Hi~ Kevin
While trying uSync test, It has a same error.
This is my error log.
Please, check. And give me an information to solve this. - We have 2 Instance (Dev1, Dev2) that are installed uSync - We Use AWS S3 for Media storage (Use different bucket for each.)
And It's detail error log...
Hi,
it might be worth looking at this in the issues repo - as it goes through some of the S3 config needed to get media to copy correctly.
https://github.com/Jumoo/uSync.Complete.Issues/issues/75
it contains config, and there is an updated dll in this comment : https://github.com/Jumoo/uSync.Complete.Issues/issues/75#issuecomment-737842760 which helps with s3 and when your media folder isn't called media
Sorry., But it doesn't work for me.
In my case
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.