Skip to content
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

Failing: Starting gunicorn 23.0.0..ModuleNotFoundError: No module named 'app' #1183

Open
cshouraboura opened this issue Nov 20, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@cshouraboura
Copy link

Describe the bug
Trying to deploy a very simple web app where I just changed the system message. When it is: Starting gunicorn 23.0.0... it then says: ModuleNotFoundError: No module named 'app'

To Reproduce
Steps to reproduce the behavior:
I am using the old look

  1. edit the system message
  2. deploy web app
  3. get the error message

Expected behavior
the web app to load

Screenshots
Image

Configuration: Please provide the following

  • Azure OpenAI model name and version (e.g. 'gpt-35-turbo-16k, version 0613'): gpt-4o
  • Is chat history enabled?: yes
  • Are you using data? If so, what data source? (e.g. Azure AI Search, Azure CosmosDB Mongo vCore, etc): no
  • Verify the startup command and runtime configuration by showing the output of the following az CLI command:
az webapp show --name <app name> --resource-group <resource group name> --query "{startupCommand: siteConfig.appCommandLine, runtime: siteConfig.linuxFxVersion}"

I do not know how to do this.

Logs
I do not know how to do this.

  1. If the application deployment is failing, please share the deployment logs using the following az CLI command:
az webapp log deployment show --name <app name> --resource-group <rg name>
  1. If the application is crashing after deployment, please share the application logs using the following az CLI command:
az webapp log tail --name <app name> --resource-group <resource group name>

Additional context
Add any other context about the problem here.
It should be fairly straight forward - I do not know why it is not working.

@cshouraboura cshouraboura added the bug Something isn't working label Nov 20, 2024
@jack-vinitsky
Copy link

Just deployed a new web app from Azure AI Studio and am getting the same error messages. : (

@cshouraboura
Copy link
Author

Also when I try it form the new look, it just does not work:
Image

@rude-seagull
Copy link

Same here, worked previously, tried to deploy a new instance today, exact same error

@ghahm
Copy link

ghahm commented Nov 25, 2024

"I am experiencing the same issue. In some cases, the deployment is successful, but when it fails, I get the error message 'ModuleNotFoundError: No module named 'app', resulting in a failed deployment."

@mgroupservice
Copy link

Experiencing same issue, have you managed to get it resolved ?

@saschadoemer
Copy link

@mgroupservice it was the redeployment which was successful for me. It looks like a glitch during the deployment.

@jackhan008
Copy link

Encountering the same issue causing inability to browse the web.

@mgroupservice
Copy link

It might sound a silly workaround, but before deploying it to production, I removed frontend folder from source code and it got deployed and worked successfully. Not once but many times, tried this and surprisingly it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants