Azure / Azure/azure-functions-dotnet-worker

Isolated Process Azure function v4 with .net 6 fails on Azure but works local

Open
#747 33 comments 0 reactions 1 assignee Claimed by @brettsam View on GitHub
needs-investigation
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

We have a few Azure Functions developed using isolated-process in .net 5 and we are migrating to .net 6.

The migration worked without problems and runs perfectly local, but fails when deployed to azure. We are using Http, ServiceBus and Timer triggers and all fail the same way:

It shows an "Executing" log in the "Log stream", but after a few seconds it fails with "**[Error] Final functionDispatcher state: WorkerProcessRestarting. Initialization timed out and host is shutting down**". After that the host is restarted.

All functions fail the same way, but only when running on Azure. They work perfectly local and there are no other logs on Azure to find out what could be going on.

![image](https://user-images.githubusercontent.com/702100/145279564-466c9f85-5ec6-4c6c-ac53-702b0a78ad4a.png)

The app was not created from scratch, but was updated from the previous version to use .net 6 and updating/upgrading all required dependencies.

**Edit**:

Application Insights shows the following 2 error log messages, aprox. 50 seconds after any attempts:
**Final functionDispatcher state: WorkerProcessRestarting. Initialization timed out and host is shutting down** and **Did not find any initialized language workers**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.