-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tennant gone missing intermittently when deployed on Azure Web App #2977
Comments
Okay, i was able to repro. 2019-01-07 00:21:40.0231|None|0HLJK5ML28GM3:00000001||OrchardCore.Environment.Shell.ShellHost|ERROR|A tenant could not be started 'Default' System.ObjectDisposedException: Cannot access a disposed object. And so on. Regarding where it is thrown, i know how to fix it. But first i want to well understand what happens. |
I will merge the fix. Do we know since when this is happening? |
My rough estimate is this started happening only in December when I tried to add tenants on my site B. My site A is working fine with multiple tenants, but running on older versions of dev code. I'm not sure if this answers your question. Please tell me if you need further details. Thanks. |
It was more a question for @jtkech as he found the root cause. |
Background:
Error:
2019-01-05 18:47:06.7974|None|0HLJJ7OO04QNO:00000001||OrchardCore.Environment.Shell.ShellHost|ERROR|A tenant could not be started 't4basicstostart' System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at OrchardCore.Mvc.ShellViewFeatureProvider..ctor(IHttpContextAccessor httpContextAccessor) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\ShellViewFeatureProvider.cs:line 27
at OrchardCore.Mvc.Startup.AddModularFrameworkParts(IServiceProvider services, ApplicationPartManager manager) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\Startup.cs:line 69
at OrchardCore.Mvc.Startup.ConfigureServices(IServiceCollection services) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\Startup.cs:line 50
at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContainerFactory.cs:line 96
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.CreateDescribedContextAsync(ShellSettings settings, ShellDescriptor shellDescriptor) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 75
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.OrchardCore.Environment.Shell.Builders.IShellContextFactory.CreateShellContextAsync(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 49
at OrchardCore.Environment.Shell.ShellHost.GetOrCreateShellContextAsync(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 89
at OrchardCore.Environment.Shell.ShellHost.b__15_0(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 184 at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at OrchardCore.Mvc.ShellViewFeatureProvider..ctor(IHttpContextAccessor httpContextAccessor) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\ShellViewFeatureProvider.cs:line 27
at OrchardCore.Mvc.Startup.AddModularFrameworkParts(IServiceProvider services, ApplicationPartManager manager) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\Startup.cs:line 69
at OrchardCore.Mvc.Startup.ConfigureServices(IServiceCollection services) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore.Mvc.Core\Startup.cs:line 50
at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainer(ShellSettings settings, ShellBlueprint blueprint) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContainerFactory.cs:line 96
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.CreateDescribedContextAsync(ShellSettings settings, ShellDescriptor shellDescriptor) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 75
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.OrchardCore.Environment.Shell.Builders.IShellContextFactory.CreateShellContextAsync(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 49
at OrchardCore.Environment.Shell.ShellHost.GetOrCreateShellContextAsync(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 89
at OrchardCore.Environment.Shell.ShellHost.b__15_0(ShellSettings settings) in C:\dev\oc\repos\busyaprons\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 184
Scenario
The text was updated successfully, but these errors were encountered: