Functions runtime won't start with "func start" locally

Anni 20 Reputation points
2025-01-23T07:22:57.7966667+00:00

I have installed Python, VS code, Python and Azure Extensions, node.js, Azure Functions Core Tools and Azurite emulator. I have created azure function. When I'm trying to start locally using "func start", it doesn't start, I only get:

Found Python version 3.12.5 (py).

Azure Functions Core Tools

Core Tools Version: 4.0.6821 Commit hash: N/A +c09a2033faa7ecf51b3773308283af0ca9a99f83 (64-bit)

Function Runtime Version: 4.1036.1.23224

MS_FUNCTION_LOGS 5,,,,,ScriptApplicationHostOptionsSetup,"","ScmRunFromPackage is empty.",4.1036.1.23224,2025-01-23T07:06:29.6575321Z,,"",,,,RFQ-FILES,,,,

Language Worker Process exited. Pid=12704.

py exited with code -1073741819 (0xC0000005). .

PublishSpecializationCompleteEvent failed with System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.

at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)

at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)

at Microsoft.Azure.WebJobs.Script.WebHost.Management.MeshServiceClient.SendAsync(IEnumerable`1 formData) in /_/src/WebJobs.Script.WebHost/Management/MeshServiceClient.cs:line 154

at Microsoft.Azure.WebJobs.Script.WebHost.Management.MeshServiceClient.NotifyHealthEvent(ContainerHealthEventType healthEventType, Type source, String details) in /_/src/WebJobs.Script.WebHost/Management/MeshServiceClient.cs:line 104

at Microsoft.Azure.WebJobs.Script.WebHost.ContainerManagement.LinuxContainerActivityPublisher.PublishSpecializationCompleteEvent() in /_/src/WebJobs.Script.WebHost/ContainerManagement/LinuxContainerActivityPublisher.cs:line 122

Starting worker process failed

Microsoft.Azure.WebJobs.Script.Grpc: The operation has timed out.

Failed to start language worker process for runtime: python. workerId:01e33c9f-cdf4-4c7c-af84-5403aefc2a36

Removing errored webhost language worker channel for runtime: python workerId:01e33c9f-cdf4-4c7c-af84-5403aefc2a36

Microsoft.Azure.WebJobs.Script.Grpc: The operation has timed out.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,933 questions
{count} votes

Accepted answer
  1. Khadeer Ali 5,990 Reputation points Microsoft External Staff Moderator
    2025-01-27T10:41:59.6733333+00:00

    @Anni ,

    I'm glad to hear that you were able to resolve your issue, and thank you for sharing your solution! It's great to see your contribution, as it helps others in the community who may face a similar issue.

    Since the Microsoft Q&A community policy states, "The question author cannot accept their own answer—they can only accept answers by others," I'm reposting your solution here so you can mark it as accepted if it resolves your query:

    Issue:

    Functions runtime won't start with "func start" locally

    Reposted Solution:

    System variables should not include "CONTAINER_NAME" named variable so removing this from computer solved this problem.

    If you have any further questions, feel free to reach out.

    0 comments No comments

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.