Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 869 posts 2328 karma points
    Sep 17, 2020 @ 09:36
    Claushingebjerg
    0

    Site crashes when multiple nodes with domains configured

    I have as site with two "root" nodes, for two different sites. I then configure a domain for each node, and the site crashes on one of the nodes with the following error. Umbraco 8.6. Both domains use the same app pool and root dir on the server.

    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
    -> System.IO.IOException: The process cannot access the file 'D:\WEB\sitename.dk\www\App_Data\TEMP\NuCache\NuCache.Content.db' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
       at CSharpTest.Net.IO.TransactedCompoundFile..ctor(Options options)
       at CSharpTest.Net.Storage.BTreeFileStoreV2..ctor(Options options)
       at CSharpTest.Net.Collections.BPlusTree`2.OptionsV2.CreateStorage()
       at CSharpTest.Net.Collections.BPlusTree`2.NodeCacheBase..ctor(BPlusTreeOptions`2 options)
       at CSharpTest.Net.Collections.BPlusTree`2.NodeCacheNone..ctor(BPlusTreeOptions`2 options)
       at CSharpTest.Net.Collections.BPlusTree`2..ctor(BPlusTreeOptions`2 ioptions)
       at Umbraco.Web.PublishedCache.NuCache.DataSource.BTree.GetTree(String filepath, Boolean exists)
       at Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService.MainDomRegister()
       at Umbraco.Core.Runtime.MainDom.Register(Action install, Action release, Int32 weight)
       at Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService..ctor(PublishedSnapshotServiceOptions options, IMainDom mainDom, IRuntimeState runtime, ServiceContext serviceContext, IPublishedContentTypeFactory publishedContentTypeFactory, IdkMap idkMap, IPublishedSnapshotAccessor publishedSnapshotAccessor, IVariationContextAccessor variationContextAccessor, IProfilingLogger logger, IScopeProvider scopeProvider, IDocumentRepository documentRepository, IMediaRepository mediaRepository, IMemberRepository memberRepository, IDefaultCultureAccessor defaultCultureAccessor, IDataSource dataSource, IGlobalSettings globalSettings, IEntityXmlSerializer entitySerializer, IPublishedModelFactory publishedModelFactory, UrlSegmentProviderCollection urlSegmentProviders)
       at DynamicMethod(Object[] )
       at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0()
       at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1()
       at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope)
       at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton)
       at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms)
       at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency)
       at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter)
       at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod)
       at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__2(IEmitter ms)
       at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter)
       at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1()
       at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope)
       at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton)
       at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms)
       at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency)
       at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter)
       at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod)
       at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__2(IEmitter ms)
       at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter)
       at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1()
       at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope)
       at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton)
       at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms)
       at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency)
       at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter)
       at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod)
       at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__0(IEmitter methodSkeleton)
       at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms)
       at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter)
       at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError)
       at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError)
       at LightInject.ServiceContainer.GetInstance(Type serviceType)
       at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type)
       at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItem(IFactory factory, Type itemType)
       at Umbraco.Core.Composing.CollectionBuilderBase`3.<>c__DisplayClass10_0.<CreateItems>b__0(Type x)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateItems(IFactory factory)
       at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItems(IFactory factory)
       at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateCollection(IFactory factory)
       at Umbraco.Core.Composing.LightInject.LightInjectContainer.<>c__DisplayClass20_0`1.<Register>b__0(IServiceFactory f)
       at DynamicMethod(Object[] )
       at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0()
       at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1()
       at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope)
       at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter)
       at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton)
       at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms)
       at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter)
       at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError)
       at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError)
       at LightInject.ServiceContainer.GetInstance(Type serviceType)
       at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type)
       at Umbraco.Core.FactoryExtensions.GetInstance[T](IFactory factory)
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)]
       Umbraco.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) +226
       Umbraco.Web.<>c.<Init>b__18_0(Object sender, EventArgs args) +35
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +201
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73
    
  • Claushingebjerg 869 posts 2328 karma points
    Sep 17, 2020 @ 10:34
  • Thomas Rydeen Skyldahl 42 posts 199 karma points
    Sep 17, 2020 @ 11:14
    Thomas Rydeen Skyldahl
    0

    You should only have a single Site in IIS with multiple domain bindings, from what I read it sounds like you have created two IIS sites one for each domain.

  • Claushingebjerg 869 posts 2328 karma points
    Sep 17, 2020 @ 11:34
    Claushingebjerg
    0

    Nope. Same site, same app pool, multiple domain bindings.

    But the above solutions fixed it.

  • Thomas Rydeen Skyldahl 42 posts 199 karma points
    Sep 17, 2020 @ 11:41
    Thomas Rydeen Skyldahl
    0

    Great just wanted to make sure you only had one site, as the other thing could cause multiple problems.

Please Sign in or register to post replies

Write your reply to:

Draft