Copied to clipboard

Flag this post as spam?

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


  • Sam Marshallsay 35 posts 135 karma points
    Sep 01, 2021 @ 10:53
    Sam Marshallsay
    0

    Umbraco 9 uSync dashboard not loading after publish to server.

    Stumped on this one, anyone seen it? Seems to work fine on local dev but not after publish to remote server.

    uSync seems to start ok with the log:

    uSync: Startup Complete 2ms
    

    but I see this javascript error in the console and uSync does not show (menu item is there but nothing in right pane)

    umbraco-backoffice-js.js.v1:formatted:17283 Error: [$controller:ctrlreg] http://errors.angularjs.org/1.8.0/$controller/ctrlreg?p0=uSyncSettingsDashboardController
        at umbraco-backoffice-js.js.v1:formatted:13606
        at umbraco-backoffice-js.js.v1:formatted:16391
        at ea (umbraco-backoffice-js.js.v1:formatted:15852)
        at p (umbraco-backoffice-js.js.v1:formatted:15630)
        at g (umbraco-backoffice-js.js.v1:formatted:15439)
        at umbraco-backoffice-js.js.v1:formatted:15416
        at Object.link (umbraco-backoffice-js.js.v1:formatted:22642)
        at umbraco-backoffice-js.js.v1:formatted:13907
        at Ca (umbraco-backoffice-js.js.v1:formatted:16130)
        at p (umbraco-backoffice-js.js.v1:formatted:15679) "<div ng-include=\"templateUrl\">"
    
  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 01, 2021 @ 10:59
    Kevin Jump
    0

    Hi,

    I think you change your csproj file to to include the uSync files (well app_plugins) as part of a publish.

    I am not 100% sure but i think its something like this :in the project file.

    <None Include="App_Plugins\**\*.*">
        <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
        <CopyToPublishDirectory>Always</CopyToPublishDirectory>
    </None>
    
  • Sam Marshallsay 35 posts 135 karma points
    Sep 01, 2021 @ 11:15
    Sam Marshallsay
    0

    Hi Kevin,

    Thanks for the prompt response. I love your work ;)

    Unfortunately that doesn't seem to have helped, i already had a similar entry although was missing the excludefromsinglefile.

    My other dashboards / packages seem to be loading fine.

    Just realised I am also getting the following two errors before the usync related error:

    GET https://x.com/sb/umbraco-backoffice-css.css.v1 net::ERR_ABORTED 500
    GET https://x.com/sb/umbraco-backoffice-extensions-js.js.v1 net::ERR_ABORTED 500
    
  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 01, 2021 @ 11:17
    Kevin Jump
    0

    Hi

    Those two files are the minified and compress css & js files that umbraco produces (via Smidge plugin). it would be good if you can see what the 500 error for those values returns (probably in the Umbraco logs?)

    also if you can see the files on the server - can you confirm the uSync folders are there ?

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 01, 2021 @ 11:29
    Kevin Jump
    0

    Hi Also,

    how are you running the published site ?

    Personally i have been seeing widly varing speeds for the production of the umbraco-backoffice-extensions-js.js file by umbraco depending on how a site is ran.

    (open issue in Umbraco but it might be a Smidge/Nuglify issue) https://github.com/umbraco/Umbraco-CMS/issues/10252

  • Sam Marshallsay 35 posts 135 karma points
    Sep 01, 2021 @ 11:34
    Sam Marshallsay
    0

    Ah, I seem to have sorted it. Uninstalling and cleaning out the files used by TheDashboard seems to have worked. uSync dashboard is back in action!

    TheDashboard https://our.umbraco.com/packages/backoffice-extensions/the-dashboard/ which was fine for RC1 but broke with RC2 had something to do with it?

    The published site is running via IIS.

    Error logs for TheDashboard errors for reference:

        System.IO.FileNotFoundException: No such file exists /app_plugins/Our.Umbraco.TheDashboard/TheDashboard.controller.js (mapped from /app_plugins/Our.Umbraco.TheDashboard/TheDashboard.controller.js)
    File name: '/app_plugins/Our.Umbraco.TheDashboard/TheDashboard.controller.js'
       at Smidge.SmidgeFileSystem.GetRequiredFileInfo(IWebFile webfile)
       at Smidge.FileProcessors.PreProcessManager.<>c__DisplayClass6_0.<ProcessFileImpl>b__0()
       at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
       at System.Lazy`1.CreateValue()
       at System.Lazy`1.get_Value()
       at Smidge.FileProcessors.PreProcessManager.ProcessFileImpl(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.FileProcessors.PreProcessManager.ProcessFile(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.FileProcessors.PreProcessManager.ProcessAndCacheFileAsync(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.Controllers.SmidgeController.Bundle(BundleRequestModel bundleModel)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       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.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
       at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
       at Umbraco.Cms.Web.Common.Middleware.BasicAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Website.Middleware.PublicAccessMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.BackOffice.Middleware.BackOfficeExternalLoginProviderErrorMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
       at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 119
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.PreviewAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
    
        System.IO.FileNotFoundException: No such file exists /app_plugins/Our.Umbraco.TheDashboard/TheDashboard.css (mapped from /app_plugins/Our.Umbraco.TheDashboard/TheDashboard.css)
    File name: '/app_plugins/Our.Umbraco.TheDashboard/TheDashboard.css'
       at Smidge.SmidgeFileSystem.GetRequiredFileInfo(IWebFile webfile)
       at Smidge.FileProcessors.PreProcessManager.<>c__DisplayClass6_0.<ProcessFileImpl>b__0()
       at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
       at System.Lazy`1.CreateValue()
       at System.Lazy`1.get_Value()
       at Smidge.FileProcessors.PreProcessManager.ProcessFileImpl(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.FileProcessors.PreProcessManager.ProcessFile(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.FileProcessors.PreProcessManager.ProcessAndCacheFileAsync(IWebFile file, BundleOptions bundleOptions, BundleContext bundleContext)
       at Smidge.Controllers.SmidgeController.Bundle(BundleRequestModel bundleModel)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       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.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
       at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
       at Umbraco.Cms.Web.Common.Middleware.BasicAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Website.Middleware.PublicAccessMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.BackOffice.Middleware.BackOfficeExternalLoginProviderErrorMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
       at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 119
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.PreviewAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
    

    Those files did actually exist so I'm not sure what was happening here.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 01, 2021 @ 11:36
    Kevin Jump
    0

    Are you on windows or linux ? case might be an issue ?

  • Sam Marshallsay 35 posts 135 karma points
    Sep 01, 2021 @ 11:37
    Sam Marshallsay
    0

    Windows Server 2016 Datacenter

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 01, 2021 @ 11:39
    Kevin Jump
    100

    😞 - not sure then. maybe there is a slight typo somewhere in the dashboard stuff.

  • Sam Marshallsay 35 posts 135 karma points
    Sep 01, 2021 @ 11:40
    Sam Marshallsay
    0

    Thanks for the help!

  • Rob Schall 4 posts 73 karma points
    Nov 13, 2021 @ 05:31
    Rob Schall
    0

    If anyone is still running into this issue and none of the above items helped, give this a try.

    When I looked at the event viewer, I was getting an error like this:

    System.IO.FileNotFoundException: No such file exists E:\inetpub\Capital.Umbraco\Capital.Web\Smidge\Cache\mydesktop\1\umbraco-backoffice-extensions-js.s.map (mapped from 1/umbraco-backoffice-extensions-js.s.map) File name: 'E:\inetpub\Capital.Umbraco\Capital.Web\Smidge\Cache\mydesktop\1\umbraco-backoffice-extensions-js.s.map'
    

    When digging around the smidge boards, folks we mentioning the cache wasn't being built properly. Sure enough, when I checked the smidge folder, it was no longer filling up with minified/compressed files at all. They recommended the following addition to the appsettings.json...

    "Umbraco": {
          "RuntimeMinification": {
            "useInMemoryCache": true,
            "CacheBuster": "AppDomain"
          },
        }
      },
    

    There isn't a ton of documentation on this (https://our.umbraco.com/documentation.../Reference/V9-Config/RuntimeMinificationSettings/), so I'm not sure if the issue was just that the settings were completely missing and it wasn't defaulting correctly OR if I needed to set the memcache to true. Either way, after changing that and running the site again (I utilize IIS Express via VS), the usync dashboard worked without issue and the errors went away from the console.

    Hope that helps someone else.

Please Sign in or register to post replies

Write your reply to:

Draft