azure-functions-host: Function host is not running. Host Job Stop after Timeout or Function Error
Investigative information
Please provide the following:
- Timestamp: [20/12/2017 16:09:19.661]
- Function App version (1.0 or 2.0-beta): 2.0-beta
- Invocation ID: ddcceb06-d3f0-42e6-aae4-6ee4a0e50404’
- Region: East US 2
- Language: Javascript
Captured the following error output…
Function had errors. See Azure WebJobs SDK dashboard for details. Instance ID is 'ddcceb06-d3f0-42e6-aae4-6ee4a0e50404'
Microsoft.Azure.WebJobs.Host.FunctionTimeoutException : Timeout value of 00:30:00 was exceeded by function: <MyFunctionName>
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryHandleTimeoutAsync(Task invokeTask,CancellationToken shutdownToken,Boolean throwOnTimeout,CancellationToken timeoutToken,TimeSpan timeoutInterval,IFunctionInstance instance,Action onTimeout) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 658
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,ParameterHelper parameterHelper,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 580
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,ParameterHelper parameterHelper,TraceWriter traceWriter,CancellationTokenSource functionCancellationTokenSource) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 534
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 477
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 264
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 320
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken cancellationToken) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 96
Job host stopped
info: Host.Startup[0]
=> RequestId:0HLA78K6RN59G:0000000F RequestPath: => Microsoft.Azure.WebJobs.Script.WebHost.Controllers.AdminController.Invoke (Microsoft.Azure.WebJobs.Script.WebHost)
Job host stopped
After the timeout or function failure the host stops and doesn’t return until we kill w3wp.exe
via kudu console. The function app is not accessible via the portal blades - just spinning wheel. Navigating to website shows Function host is not running.
, and all functions stop running.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 15 (9 by maintainers)
I’ll note that this can completely hose a V2 application running in a dedicated app service plan as it puts the app into a state of permanently returning 503s, so even functionality like Always On will not return the app to a healthy state.