Deploy as Web App fails in Chat playground from Azure Open AI. ModuleNotFoundError: No module named 'app'

Hansen, Alex 15 Reputation points
2024-10-17T12:36:27.81+00:00

Description:

I am experiencing an issue with the one-click deployment from the Azure OpenAI Studio (Chat Playground). The web app is being deployed with the following settings:

  • Web App Plan: S1
  • Region: Sweden Central

The deployment process completes successfully, but the web app fails to start. I have tried deploying with and without the "enable history" feature, but the issue persists.

Upon reviewing the logs, the following errors are consistently shown:

  • ModuleNotFoundError: No module named 'app'
  • Worker exited with code 3 and [ERROR] Shutting down: Master
  • Container didn't respond to HTTP pings on port: 8000, failing site start

As this is a one-click deployment, I expect it to work out of the box. However, it seems there is a problem related to the application startup, potentially due to a misconfiguration in the deployed container or missing files. I need assistance in resolving this issue as soon as possible.

Steps Taken:

  • Tried deploying both with and without the "enable history" feature.
  • Checked the logs, which indicate a failure during startup.

Please advise on the necessary steps or configuration changes required to resolve this issue.Description:

I am experiencing an issue with the one-click deployment from the Azure OpenAI Studio (Chat Playground). The web app is being deployed with the following settings:

  • Web App Plan: S1
  • Region: Sweden Central

The deployment process completes successfully, but the web app fails to start. I have tried deploying with and without the "enable history" feature, but the issue persists.

Upon reviewing the logs, the following errors are consistently shown:

  • ModuleNotFoundError: No module named 'app'
  • Worker exited with code 3 and [ERROR] Shutting down: Master
  • Container didn't respond to HTTP pings on port: 8000, failing site start

As this is a one-click deployment, I expect it to work out of the box. However, it seems there is a problem related to the application startup, potentially due to a misconfiguration in the deployed container or missing files. I need assistance in resolving this issue as soon as possible.

Steps Taken:

  • Tried deploying both with and without the "enable history" feature.
  • Checked the logs, which indicate a failure during startup.

Please advise on the necessary steps or configuration changes required to resolve this issue.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,313 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
990 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Max Lacy 100 Reputation points
    2024-11-16T19:54:00.2166667+00:00

    Depending on what is being deployed using the one click Azure deployment. You may need to configure the startup command.

    Microsoft Learn - Configure Startup Command

    check that the configuration settings web app that was created say something like: python3 -m gunicorn app:app

    Screenshot 2024-11-16 at 1.52.44 PM

    After updating the settings you'll need to restart the application.

    Thanks,

    Max

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.