-
Notifications
You must be signed in to change notification settings - Fork 49
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
Flask app failure happens days after deployment #13
Comments
Any update on this one? |
@KevinXTian |
Yes, it is a simple flask app. And the initial deployment is done with git.
…________________________________
From: JennyLawrance <[email protected]>
Sent: Friday, December 7, 2018 8:57 PM
To: Azure-App-Service/python
Cc: Tian, Xueli (Kevin); Mention
Subject: Re: [Azure-App-Service/python] Flask app failure happens days after deployment (#13)
@KevinXTian<https://github.com/KevinXTian>
I'll have to reproduce this behavior and see for myself why this failure happens. Are you deploying a simple flask app? Also, was the initial deployment done with git or FTP?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#13 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Afr9NAg9JxI85SD8jWHKwnPDkhHqzBtAks5u2xx1gaJpZM4Ym231>.
|
I have a theory for this failure: Essentially, we have an issue / disconnect between the UX and the runtime, where UX allowed python 3.6 to be selected while the runtime was not yet upgraded. This meant that, for this site, the runtime 3.6 version was only available after 11/14 on that scale unit, and I believe you also did a Virtual Environmet create with SSH portal to get the site back to an operational state. |
I have an Azure Linux App Service running with
code deployment
andAlways On: False
. The app service works as expected right after deployment, and failed with 503 errors after a certain amount of time. When a 503 error is observed, the stream log from the app service shows the following error message.The problem is solved by switching
Always On: True
. I suspect that the right virtual environment works right after the deployment. WhenAlways On
is turned off, the container is destroyed after a certain amount of time. Then when a new request coming, a container is being created but fails in creating the virtual environment. Then the default Python, who did not install dependencies from requirements.txt, is called. ThenModuleNotFoundError
is shown.By setting
Always On
to True, the container is always running and the virtual environment created in the container works as well. So that problem is temporary solved.For more detailed information, please check support ticket [REG:118111321002576]. I really appreciate the help from MSFT support engineers Ramya Gangula and Prashanth Madi in figuring out the possible causes.
The text was updated successfully, but these errors were encountered: