azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

The listener for function '' was unable to start.Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException : The listener for function

Open SailleshPawar opened this issue 3 years ago • 7 comments

Check for a solution in the Azure portal

For issues in production, please check for a solution to common issues in the Azure portal before opening a bug. In the Azure portal, navigate to your function app, select Diagnose and solve problems from the left, and view relevant dashboards before opening your issue.

Investigative information

Please provide the following:

  • Timestamp:
  • FUNCTIONS_EXTENSION_VERSION: 3
  • Function App version:
  • Function App name:
  • Function name(s) (as appropriate):
  • Invocation ID:
  • Region: West Europe

Related information

Provide any related information

  • Programming language used
  • Links to source
  • Bindings used
Azure.RequestFailedException : This request is not authorized to perform this operation.RequestId:3a945827-201e-0031-4515-0e9215000000Time:2022-01-20T15:53:37.3831861ZStatus: 403 (This request is not authorized to perform this operation.)ErrorCode: AuthorizationFailureContent:AuthorizationFailureThis request is not authorized to perform this operation.RequestId:3a945827-201e-0031-4515-0e9215000000Time:2022-01-20T15:53:37.3831861ZHeaders:Server: Microsoft-HTTPAPI/2.0x-ms-request-id: 3a945827-201e-0031-4515-0e9215000000x-ms-client-request-id: 558f6040-c65c-4a6c-b5b0-17968e881fdfx-ms-error-code: AuthorizationFailureDate: Thu, 20 Jan 2022 15:53:36 GMTContent-Length: 246Content-Type: application/xmlat async Azure.Storage.Blobs.BlobRestClient.AcquireLeaseAsync(Nullable`1 timeout,Nullable`1 duration,String proposedLeaseId,Nullable`1 ifModifiedSince,Nullable`1 ifUnmodifiedSince,String ifMatch,String ifNoneMatch,String ifTags,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration,RequestConditions conditions,Boolean async,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireAsync(TimeSpan duration,RequestConditions conditions,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Script.BlobLeaseDistributedLockManager.TryAcquireLeaseAsync(BlobLeaseDistributedLockManager lockManager,BlobClient blobClient,TimeSpan leasePeriod,String proposedLeaseId,CancellationToken cancellationToken,String accountOverride) at D:\a\1\s\src\WebJobs.Script\Host\DistributedLockManagers\BlobLeaseDistributedLockManager.cs : 134at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Script.BlobLeaseDistributedLockManager.TryLockAsync(String account,String lockId,String lockOwnerId,String proposedLeaseId,TimeSpan lockPeriod,CancellationToken cancellationToken) at D:\a\1\s\src\WebJobs.Script\Host\DistributedLockManagers\BlobLeaseDistributedLockManager.cs : 82at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Host.SingletonManager.TryLockAsync(String lockId,String functionInstanceId,SingletonAttribute attribute,CancellationToken cancellationToken,Boolean retry) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Singleton\SingletonManager.cs : 113at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Host.Listeners.SingletonListener.StartAsync(CancellationToken cancellationToken) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Singleton\SingletonListener.cs : 48at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Host.Listeners.FunctionListener.StartAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Listeners\FunctionListener.cs : 68End of inner exception
</details>
-->

SailleshPawar avatar Jan 20 '22 15:01 SailleshPawar

Hi @SailleshPawar , Thank you for your feedback! We will check for the possibilities internally and update you with the findings.

v-bbalaiagar avatar Jan 25 '22 12:01 v-bbalaiagar

Hi @SailleshPawar , Similar scenarios were tracked earlier as mentioned here - https://docs.microsoft.com/en-us/answers/questions/698846/listener-for-azure-function-was-unable-to-start-er.html Please check and let us know if this helps.

v-bbalaiagar avatar Feb 01 '22 12:02 v-bbalaiagar

Thanks will check the same. :)

SailleshPawar avatar Feb 01 '22 12:02 SailleshPawar

@v-bbalaiagar The above mentioned docs is specifying the issue on local env which doesn't seems to be the same, the issue that we are facing is on the function app which is deployed on Azure.

SailleshPawar avatar Feb 01 '22 12:02 SailleshPawar

Hi @SailleshPawar , Thanks for the update, We will investigate this further and update you with the findings.

v-bbalaiagar avatar Feb 01 '22 12:02 v-bbalaiagar

I'm experiencing the same problem with a range of function apps running SDK functions 3.0.11 and on framework .Net Core 3.1.

dndao avatar Mar 30 '22 06:03 dndao

Did anyone find a solution to this?

alecglen avatar Apr 12 '24 16:04 alecglen