question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azurite | Durable functions not starting - The listener for function 'x' was unable to start.

See original GitHub issue

Which service(blob, file, queue, table) does this issue concern?

Queue (affects only durable functions though) normal queue trigger works fine

Which version of the Azurite was used?

3.9.0

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

Used both npm & VSCode extension

What’s the Node.js version?

v12.13.0

What problem was encountered?

When I start my azure function app, I get the following:

[2020-11-04T17:41:50.594] The listener for function 'Functions.DurableFunctionsActivity1' was unable to start.
[2020-11-04T17:41:50.596] The listener for function 'Functions.DurableFunctionsActivity1' was unable to start. Microsoft.WindowsAzure.Storage: No connection could be made because the target machine actively refused it. System.Net.Http: No connection could be made because the target machine actively refused it. System.Private.CoreLib: No connection could be made because the target machine actively refused it.

[2020-11-04T17:42:22.228] The listener for function 'Functions.DurableFunctionsActivity2' was unable to start.
[2020-11-04T17:42:22.231] The listener for function 'Functions.DurableFunctionsActivity2' was unable to start. Microsoft.WindowsAzure.Storage: No connection could be made because the target machine actively refused it. System.Net.Http: No connection could be made because the target machine actively refused it. System.Private.CoreLib: No connection could be made because the target machine actively refused it.

[2020-11-04T17:42:50.648] The listener for function 'Functions.DurableFunctionsOrchestrator' was unable to start.
[2020-11-04T17:42:50.655] The listener for function 'Functions.DurableFunctionsOrchestrator' was unable to start. Microsoft.WindowsAzure.Storage: No connection could be made because the target machine actively refused it. System.Net.Http: No connection could be made because the target machine actively refused it. System.Private.CoreLib: No connection could be made because the target machine actively refused it.

The project still runs but if I were to try send a http request to my durable function http listener then I would get the following error in the console

Result: Failure
Exception: Error: The operation failed with an unexpected status code: 500. Details: {"Message":"Something went wrong while processing your request","ExceptionMessage":"No connection could be made because the target machine actively refused it"

Attached is my debug.log generated by azurite: debug.log

Steps to reproduce the issue?

  1. Install azurite

  2. Setup the azure durable functions

  3. run the azure function project and you shall see the errors described above

Have you found a mitigation/solution?

No, I know it works with the Microsoft Azure Storage Emulator but azurite is a requirement since it works with MAC OS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bluewwcommented, Nov 6, 2020

@Jamess-Lucass

There might be no short term solution , and we need wait for table in Azurite V3. For legacy version (v2) , it supports table, so in theory it supports Azure function, but not validated before.

0reactions
XiaoningLiucommented, Mar 5, 2021

We already have item tracking Azurite V3 Table in #253, will close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The listener for function was unable to start. Why?
Azure Durable Functions rely on TableStorage, and the latest version of Azurite (v3) currently doesn't support TableStorage.
Read more >
Listener for Azure function was unable to start error while ...
I have one Azure function app and I am trying to run that locally but getting the below error. I have the storage...
Read more >
How to fix Azure Functions Timer Trigger unable to start ...
The listener for function 'function name' was unable to start. Azure.Storage.Blobs: Service request failed. This error is related to Azurite ( ...
Read more >
How to fix "The listener for function was unable to start. Out of ...
I'm not saying it was built with Azure Functions, but it was definitely. How to fix “The listener for function was unable to...
Read more >
Azure Function - The listener for function was unable to start
Issue. When debugging one of my Azure Functions in Visual Studio 2017, I got the error below: “The listener for function 'MyFunction' was ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found