Azure / Azure-Functions

1.1k stars 189 forks source link

Unable to load metadata for function - KEDA Function running on AKS. #2472

Open gaikwadsantosh opened 2 months ago

gaikwadsantosh commented 2 months ago

We are deploying Azure Function in AKS using KEDA. As per design whenever a message arrived in a service bus, KEDA function will trigger and consume the message.

However intermittently I am getting error "Unable to load metadata for function" and message in service bus is not even put in dead letter queue.

very similar to issue reported here https://github.com/Azure/azure-functions-host/issues/7238

I am running this C# function in AKS, and utilization of AKS resources is well below 50% when this error occurs.

However one important observation we have is, code works well is with version 5.1.0 of Microsoft.Azure.WebJobs.Extensions.ServiceBus and same code stops working with newer version 5.13.5

kindly suggest some solution.

bhagyshricompany commented 2 months ago

pleasse reaise the req on azure portal.Thanks

gaikwadsantosh commented 2 months ago

I had already created ticket in Azure, however they suggested me to open ticket with GitHub

gaikwadsantosh commented 2 months ago

could it be a problem because of having long running (heavy) code in function?

raorugan commented 2 months ago

May I know why functions are running as containers on AKS?

bhagyshricompany commented 1 week ago

Hi @gaikwadsantosh can you share the exception log error details?Thanks