-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nondeterministc deploy bug with 5+ different non-descript failures on two different OS's, worked before, support stumped #1306
Comments
pls share the function name,app name,instance id,timestamp ,region etc. |
function name: all, since the deploy doesn't work etc.: I also wish I could provide the relevant information to isolate the error, however the error messages have not allowed me to do so. |
Setting |
pls create the support request on azure portal https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request |
As mentioned previously, I am already in contact with azure support. |
Tried:
Ran into two new bugs while isolating:
I've been using The combination of all these issues makes it impossible to work. It is very disappointing. |
I have isolated and reproduced reliably one of the vague errors listed above:
This specific reproducible isolated case was fixable with:
Also a note that all my |
So, the above error
came back when including further pieces of my project. I isolated it to the line |
I have discovered a new non-reproducible randomly appearing bug:
I'm not even going to try to figure that one out. I isolated the next reason for |
So, I have solved the deployment issue as a final step, at least for me, by using a specific AUR and deploying from the terminal instead of the azure extension:
Interestingly, the deployment zip is around 200mb smaller, though both do a remote build. I will keep this issue open because I think it highlights the need for better/existent logging and error feedback in many cases. The above combination of steps got my project deployable again, however I will likely never know what was broken, and why it happened without my agency, and good luck to anyone with similar issues. |
In case it helps others: Check the environment variable names you are using. They might conflict with Azure specific variable names and thereby cause errors. In my case no http triggers were found (failing silently), because of the the environment variable Very annoying and impossible to debug. Please add verbose error messages to the deployment output! |
For almost a year now, there has been such a bug in Azure Functions for Python that does not allow them to be used profitably, and which consists in displaying the message "No HTTP triggers found" at the end of deployment from VS Code, despite the fact that the function code works correctly. At this link you will find the desperate attempt of developers to report the anomaly in an issue in the GitHub repository of Oryx: Rightly, Paul Dorsh responds after some reporting on this issue that the problem is not with Oryx (used to build the code), but the problem is in the deployment part to the Azure function: Paul points to the vscode-azurefunction repo, where someone takes the report and fixes the bug, but only for Node.js, not Python: So much so that Simon from Zirconcode is urged to open this issue in the azure-functions-python-worker repo: One of the latest report, which always came in the first issue thread on Oryx, reports the following:
(from microsoft/Oryx#1774 (comment)) I myself had to implement a feature for a major customer using an Azure function with Python, and I sweated my nuts off trying to figure out what was wrong (from 1 day of implementation, it took me 5!). Is it possible that this serious bug cannot be addressed in a reasonable time? |
Unsure how to title this. It's been a week of debugging and isolating with no results.
Is this issue in the correct repo? Also unsure. Help me out here.
I'll walk you through my journey.
I have a very large code base, it runs flawlessly locally. I've deployed it just fine for a long time until recently.
I made a change, including
google-cloud-texttospeech
inrequirements.txt
.It stopped deploying after this (maybe relevant, maybe not).
Removing this change, to the exact same code base as before, still fails to deploy.
Some errors I get at random, and I've tried incredibly hard to isolate.
Both development environments can deploy other things successfully, and push to a new app fine as well.
I have not made any local environment changes at all when it began to fail.
Details:
Azure Functions runtime version 4.24.4.4, Linux premium plan with Elastic Premium EP3.
I deploy directly from visual studio code azure function extension.
My python code follows the folder structure of the v1 coding model (no decorators, lots of folders), however I am on v2 (host.json etc.), this has always worked, and runs locally of course.
Deploying to python 3.9.7.
First development environment:
Manjaro linux, vscode 1.81.1, azure extension 1.12.3
Errors I've encountered seemingly at random, when trying to deploy:
Except it was not successful and functions are empty / don't run (the zip file in webjobstorage contains them thought).
And a very exciting shiny rare one:
Second development environment:
Windows, visual studio code, azure extension v1.12.4.
I've also used this environment before, and it has worked, same as the above one.
Errors:
One successful deploy, and randomly most of the above (with no changes), as well as a new one:
Some other random things I've tried:
What now?
The errors are not helpful. Logs are missing, I can drill down into events, insights, many different logs, they are all over the place and they are all useless or empty. I've mentioned that I've had multiple 2hr+ calls with the technical support team of various ever-increasing escalations, and they are just as stumped as me (and I am grateful for their efforts).
Any thoughts?
What do I try next? Any information I can provide?
See also (maybe relevant, I don't know at this point):
microsoft/vscode-azurefunctions#3805
microsoft/vscode-azurefunctions#2529
microsoft/Oryx#1774
https://stackoverflow.com/questions/76478668/adding-python-module-google-cloud-storage-is-causing-a-working-azure-function-ap
https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly
projectkudu/kudu#3348
microsoft/azure-pipelines-tasks#14201
microsoft/vscode-azurefunctions#2529
microsoft/Oryx#1774
The text was updated successfully, but these errors were encountered: