Copied to clipboard

Flag this post as spam?

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


  • Christopher Crawford 5 posts 109 karma points
    Jul 18, 2017 @ 14:24
    Christopher Crawford
    0

    Duplicate entries in umbraco-plugins.{machinename}.list on Application Starting

    We started seeing behavior in environments that are causing a runtime exception when trying to navigate to backoffice. Our delivery servers are still serving content. The stack trace is as follows:

    2017-07-18 11:24:44,476 [P25320/D55/T14] ERROR Umbraco.Core.CoreBootManager - An error occurred running OnApplicationStarting for handler MyOrg.Application.Core.CoreExtension.ApplicationAppEventHandler
    System.InvalidOperationException: Type MyOrg.Application.Core.CoreExtension.ApplicationContentFinder is already in the collection of types.
       at Umbraco.Core.ObjectResolution.ManyObjectsResolverBase`2.InsertTypeBefore(Type existingType, Type value)
       at MyOrg.Application.Core.CoreExtension.ApplicationAppEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in F:\TeamCityBuildAgent\BuildAgent\work\c6e8f5976b5b4087\MyOrg.Application.Core\CoreExtension\ApplicationAppEventHandler.cs:line 18
       at Umbraco.Core.ApplicationEventHandler.OnApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
       at Umbraco.Core.CoreBootManager.<Startup>b__8(IApplicationEventHandler x)
     2017-07-18 11:24:44,476 [P25320/D55/T14] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.InvalidOperationException: Type MyOrg.Application.Core.CoreExtension.ApplicationContentFinder is already in the collection of types.
       at Umbraco.Core.ObjectResolution.ManyObjectsResolverBase`2.InsertTypeBefore(Type existingType, Type value)
       at MyOrg.Application.Core.CoreExtension.ApplicationAppEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in F:\TeamCityBuildAgent\BuildAgent\work\c6e8f5976b5b4087\MyOrg.Application.Core\CoreExtension\ApplicationAppEventHandler.cs:line 18
       at Umbraco.Core.ApplicationEventHandler.OnApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
       at Umbraco.Core.CoreBootManager.<Startup>b__8(IApplicationEventHandler x)
       at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
       at Umbraco.Core.CoreBootManager.Startup(Action`1 afterStartup)
       at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
    

    After some investigation, we discovered the root issue to be the umbraco-plugins.{machinename}.list. Deleting this file and letting it regenerate allows for a temporary fix, however the problem seems to return after an indeterminate amount of time.

    It seems as if this file was duplicating some of the line items after a seemingly random amount of time (potentially after a period of inactivity?). The file's duplicated entries are as follows:

    <baseType type="umbraco.interfaces.IApplicationStartupHandler" resolutionType="FindAllTypes">
        <add type="umbraco.BusinessLogic.ApplicationRegistrar, businesslogic, Version=1.0.6247.17498, Culture=neutral, PublicKeyToken=null" />
        <add type="umbraco.BusinessLogic.ApplicationTreeRegistrar, businesslogic, Version=1.0.6247.17498, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Models.Identity.IdentityModelMappings, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Strategies.RelateOnCopyHandler, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Strategies.RelateOnTrashHandler, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="Our.Umbraco.FileSystemProviders.Azure.VirtualPathProviderController, Our.Umbraco.FileSystemProviders.Azure, Version=0.5.7.143, Culture=neutral, PublicKeyToken=null" />
        <add type="MyOrg.MyApp.Core.ApplicationStartup, MyOrg.MyApp.Core, Version=1.0.0.1072, Culture=neutral, PublicKeyToken=null" />
        <add type="MyOrg.MyApp.Core.CoreExtension.ApplicationAppEventHandler, MyApp.MyOrg.Core, Version=1.0.0.1072, Culture=neutral, PublicKeyToken=null" />
        <add type="umbraco.providers.members.MembershipEventHandler, umbraco.providers, Version=1.0.6247.17501, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.UmbracoRestStartup, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.MediaModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.MemberModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.RelationModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.ContentModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.ModelsBuilder.Umbraco.ModelsBuilderApplication, Umbraco.ModelsBuilder, Version=3.0.5.96, Culture=neutral, PublicKeyToken=null" />
        <add type="Jumoo.uSync.BackOffice.uSyncApplicationEventHandler, Jumoo.uSync.BackOffice, Version=3.2.1.740, Culture=neutral, PublicKeyToken=null" />
        <add type="umbraco.BusinessLogic.ApplicationRegistrar, businesslogic, Version=1.0.6247.17498, Culture=neutral, PublicKeyToken=null" />
        <add type="umbraco.BusinessLogic.ApplicationTreeRegistrar, businesslogic, Version=1.0.6247.17498, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Models.Identity.IdentityModelMappings, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Strategies.RelateOnCopyHandler, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.Core.Strategies.RelateOnTrashHandler, Umbraco.Core, Version=1.0.6247.17495, Culture=neutral, PublicKeyToken=null" />
        <add type="MyOrg.MyApp.Core.ApplicationBuilderStartup, MyOrg.MyApp.Core, Version=1.0.0.1072, Culture=neutral, PublicKeyToken=null" />
        <add type="MyOrg.MyApp.Core.CoreExtension.ApplicationAppEventHandler, MyOrg.MyApp.Core, Version=1.0.0.1072, Culture=neutral, PublicKeyToken=null" />
        <add type="Jumoo.uSync.BackOffice.uSyncApplicationEventHandler, Jumoo.uSync.BackOffice, Version=3.2.1.740, Culture=neutral, PublicKeyToken=null" />
        <add type="umbraco.providers.members.MembershipEventHandler, umbraco.providers, Version=1.0.6247.17501, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.UmbracoRestStartup, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.MediaModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.MemberModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.RelationModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.RestApi.Models.ContentModelMapper, Umbraco.RestApi, Version=1.0.6263.39032, Culture=neutral, PublicKeyToken=null" />
        <add type="Umbraco.ModelsBuilder.Umbraco.ModelsBuilderApplication, Umbraco.ModelsBuilder, Version=3.0.5.96, Culture=neutral, PublicKeyToken=null" />
        <add type="Our.Umbraco.FileSystemProviders.Azure.VirtualPathProviderController, Our.Umbraco.FileSystemProviders.Azure, Version=0.5.7.143, Culture=neutral, PublicKeyToken=null" />
        ...
    

    There are additional entries in this file that are not being duplicated which include items that live in Umbraco.Web.

    Does anyone know what triggers these files to be regenerated and what could possibly be causing this to affect some of our environments but not others? Any information would be appreciated. Our current version is 7.5.9.

    For what it's worth, in looking at the Umbraco source, it seems the offending code (PluginManager.cs) has been updated in subsequent minor releases, so upgrading is certainly on the table if it would fix this problem.

Please Sign in or register to post replies

Write your reply to:

Draft