Azure / Azure/azure-functions-host

Linux consumption custom container images fails to start

Open
#4,087 0 comments 0 reactions 2 assignees Claimed by @balag0 View on GitHub
platform:linux
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

Starting a custom container in linux consumption fails with the following exception

System.ObjectDisposedException : Cannot access a disposed object. Object name: 'LoggerFactory'. at Microsoft.Extensions.Logging.LoggerFactory.AddProvider(ILoggerProvider provider) at Microsoft.Azure.WebJobs.Script.WebHost.ScriptLoggerFactory.AddProvider(ILoggerProvider provider) at /azure-functions-host-sr2/src/WebJobs.Script.WebHost/Diagnostics/ScriptLoggerFactory.cs : 21 at async Microsoft.Azure.WebJobs.Host.Executors.JobHostContextFactory.Create(CancellationToken shutdownToken,CancellationToken cancellationToken) at C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\Executors\\JobHostContextFactory.cs : 99 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.JobHost.InitializeHostAsync(CancellationToken cancellationToken,TaskCompletionSource`1 initializationTask) at C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\JobHost.cs : 359 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.JobHost.StartAsyncCore(CancellationToken cancellationToken) at C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\JobHost.cs : 99 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.Script.ScriptHost.StartAsyncCore(CancellationToken cancellationToken) at /azure-functions-host-sr2/src/WebJobs.Script/Host/ScriptHost.cs : 252 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.Script.WebHost.WebJobsScriptHostService.StartHostAsync(CancellationToken cancellationToken,Int32 attemptCount,JobHostStartupMode startupMode) at /azure-functions-host-sr2/src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs : 146\",\"A host error has occurred\",2.0.12304.0,02/15/2019 07:06:01.204 AM,System.ObjectDisposedException,\"Cannot access a disposed object. Object name: 'LoggerFactory'.\",,eba3a5af-c4ed-4417-81fc-99947549b0ee,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.