Azure / Azure/azure-functions-core-tools
The listener for function was unable to start
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
OS: Debian 11
package: azure-functions-core-tools-4 4.0.5312-1 amd64
Core Tools Version: 4.0.5312 Commit hash: N/A (64-bit)
Function Runtime Version: 4.23.2.21220
I am unable to start my timerTrigger function with `func start` which throws this error:
The listener for function 'Functions.myfunc' was unable to start. Azure.Core: Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (Connection refused (127.0.0.1:10000)) (Connection refused (127.0.0.1:10000)) (Connection refused (127.0.0.1:10000)) (Connection refused (127.0.0.1:10000)) (Connection refused (127.0.0.1:10000)) (Connection refused (127.0.0.1:10000)). Azure.Core: Connection refused (127.0.0.1:10000). System.Net.Http: Connection refused (127.0.0.1:10000). System.Net.Sockets: Connection refused.
local.settings.json:
```
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "custom",
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
}
}
```
It seems it can't connect to the azurite emulator blob storage container. How can I fix this?
Contributor guide
Research direction
Use local.settings.json and the `func start` entry point to reproduce the timerTrigger failure, then inspect how the tool handles the configured `UseDevelopmentStorage=true` endpoint at 127.0.0.1:10000. Done means the cause and a reliable fix or diagnostic for starting the function are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100