Open ottosulin opened 1 year ago
hi @ottosulin have you got any solution for above mentioned issue?
@ottosulin any solution you got for this error? My Cx is facing same issue with custom handler too. any pointers to resolve this would help.
We migrated to deploying containers on Functions using Azure Container Registry, and that kind of resolved the issue. When deploying we still get some errors when the container comes up but it does run eventually after a minute or so. The container deployment to Functions is not well documented which made it hard to get it working. We tried so many configuration combinations so to be honest I don't remember anymore what helped.
We tried to get help from Azure Support but they had no clue what's happening. I suggest you also open a support request as well and hope you will have better luck there than I had, because Microsoft doesn't seem to be interested in these Github issues.
If it helps, I have a demo project as well as rust script to deploy that demo project here.
And proof that it executes within an Azure Function here.
FWIW I've gotten 3x Rust projects deployed to Azure Functions, and each time I've gone through an extended period of somewhat unhelpful error messages such as that which prompted this thread.
And each time the error messages gave me no indication that the project would ever execute correctly until bam! My 50th wild guess gets it running. So I would encourage anyone encountering this thread to keep at it, if only for a little while longer.
And to the Azure Functions team - anything that can be done to improve error messages around Custom Handlers that fail to initialize would be a huge benefit.
Description of issue
We deploy our Function Apps with Bicep templates. Our Function Apps are custom handlers (Go binary).
Whenever we deploy the Bicep template, this error occurs. I have tested at this point probably hundreds of different configuration combinations and it doesn't seem to make any difference to the result. This occurs consistently with all our Function Apps, which have very similar configurations.
This issue occurs in both of these scenarios:
This error has been referenced before, mainly with dotnet-isolated it seems (e.g. this and this).
Also with one of our function apps, currently deployed as a custom container, we're seeing this error which I have not been able to reproduce elsewhere:
How to reproduce
func azure functionapp publish
func azure functionapp publish
. Sometimes requires 2-3 deploys before the runtime recovers.