Did not find functions with language [dotnet-isolated].

Jibin Johnson 50 Reputation points
2023-08-07T02:03:47.9433333+00:00

We recently migrated our Azure Functions to isolated process (running on .NET 6). This was tested in our DEV subscription where there were no host level issues reported. However, in our production subscription, the functions 'intermittently' report the error "Did not find functions with language [dotnet-isolated].". What we have noticed also is that the function host is shut down. You need to then access the function through Azure portal which activates the host. Please note that the issue is intermittent. The function does work fine for a while.

On a parallel note, since the isolated process deployment, on some of the functions we have noticed "A collision for Host ID 'functionsv4placeholdertemplatesi' was detected in the configured storage account. For more information, see https://aka.ms/functions-hostid-collision.".

Error details

Description : A host error has occurred during startup operation 'f228ae71-6bab-43db-9603-a6844fa77dab'.
Last offline at 8/6/2023 10:59:28 PM
Microsoft.Azure.WebJobs.Script.HostInitializationException : Did not find functions with language [dotnet-isolated]. at Microsoft.Azure.WebJobs.Script.Utility.VerifyFunctionsMatchSpecifiedLanguage(IEnumerable1 functions,String workerRuntime,Boolean isPlaceholderMode,Boolean isHttpWorker,CancellationToken cancellationToken) at //src/WebJobs.Script/Utility.cs : 627
at async Microsoft.Azure.WebJobs.Script.ScriptHost.GetFunctionDescriptorsAsync(IEnumerable1 functions,IEnumerable1 descriptorProviders,String workerRuntime,CancellationToken cancellationToken) at /
/src/WebJobs.Script/Host/ScriptHost.cs : 746
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Script.ScriptHost.InitializeFunctionDescriptorsAsync(IEnumerable1 functionMetadata,String workerRuntime,CancellationToken cancellationToken) at /_/src/WebJobs.Script/Host/ScriptHost.cs : 520 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.Script.ScriptHost.InitializeAsync(CancellationToken cancellationToken) at /_/src/WebJobs.Script/Host/ScriptHost.cs : 314 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at async Microsoft.Azure.WebJobs.Script.ScriptHost.StartAsyncCore(CancellationToken cancellationToken) at /_/src/WebJobs.Script/Host/ScriptHost.cs : 256 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.UnsynchronizedStartHostAsync(ScriptHostStartupOperation activeOperation,Int32 attemptCount,JobHostStartupMode startupMode) at /_/src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs : 328

Related information

  • Programming language - C#
  • .NET version - 6.0
  • Note : The functions are hosted in consumption plan. The app service plan hosts about 38 apps and they do use a shared storage account. However, each of these functions have unique host ids.
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,910 questions
{count} votes

Accepted answer
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-08-24T02:47:07.6566667+00:00

    @Jibin Johnson We appreciate your patience on this. The Microsoft Azure Functions Team has investigated the issue you reported on your Function Apps, where your functions stopped processing new invocations. This issue was mitigated by browsing the Function App in the Azure Portal.

    Upon investigation, engineers discovered that after a regular scale in operation in response to Function App configured triggers, one of the instances was in an unhealthy state. The scale controller kept monitoring the healthiness of the Function App, however, was not able to determine with enough confidence that the unhealthy instance had to be removed.

    Further investigation on the unhealthy instance showed that due to a race condition on the scale operation, after the Functions Runtime failed to start with "Did not find functions with language [dotnet-isolated]", it couldn't automatically recover as expected when it detects such errors as part of Function App initialization.

    Once the Function App was browsed in the Azure Portal, the process started properly and your functions started processing invocations.

    We are continuously taking steps to improve the Azure Functions service and our processes to ensure such incidents do not occur in the future, and in this case it includes (but is not limited to):

    Please keep the track of the fix here: https://github.com/Azure/azure-functions-host/issues/9477

    This has the fix mitigation to address this issue due to race condition.

    We apologize for any inconvenience.

    Regards,

    The Microsoft Azure Team

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.