Skip to content

app command line miss match #1830

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

Closed
cforce opened this issue Jul 17, 2024 · 3 comments
Closed

app command line miss match #1830

cforce opened this issue Jul 17, 2024 · 3 comments

Comments

@cforce
Copy link
Contributor

cforce commented Jul 17, 2024

The azure web application is not starting up / errors with

6gwercguaeuhq.scm.azurewebsites.net/api/vfs/LogFiles/2024_07_17_lw1sdlwk0000ZJ_default_docker.log)
2024-07-17T23:17:06.604588362Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-17T23:17:06.604591862Z   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2024-07-17T23:17:06.604613262Z   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2024-07-17T23:17:06.604617062Z   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
2024-07-17T23:17:06.604620962Z ModuleNotFoundError: No module named 'main'
2024-07-17T23:17:06.607552268Z [2024-07-17 23:17:06 +0000] [67] [INFO] Worker exiting (pid: 67)
2024-07-17T23:17:07.259553990Z [2024-07-17 23:17:07 +0000] [62] [ERROR] Worker (pid:67) exited with code 3
2024-07-17T23:17:07.268840809Z [2024-07-17 23:17:07 +0000] [62] [ERROR] Shutting down: Master
2024-07-17T23:17:07.285444443Z [2024-07-17 23:17:07 +0000] [62] [ERROR] Reason: Worker failed to boot./home/LogFiles/2024_07_17_lw1sdlwk0000ZJ_default_scm_docker.log  (https://app-backend-6gwercguaeuhq.scm.azurewebsites.net/api/vfs/LogFiles/2024_07_17_lw1sdlwk0000ZJ_default_scm_docker.log)
2024-07-17T15:30:10.6406269Z Wed Jul 17 15:30:10 UTC 2024 running .net core
2024-07-17T15:30:15.3463564Z Startup : 03.30.15.242558
2024-07-17T15:30:15.5617329Z Configure Services : 03.30.15.560726
2024-07-17T15:30:17.3290924Z Configure : 03.30.17.313987
2024-07-17T15:30:18.7879275Z Setting Up Routes : 03.30.18.787621
2024-07-17T15:30:20.6814800Z Exiting Configure : 03.30.20.674603
2024-07-17T15:30:21.6960998Z Hosting environment: Production
2024-07-17T15:30:21.6969482Z Content root path: /opt/Kudu
2024-07-17T15:30:21.6978900Z Now listening on: http://0.0.0.0:8181
2024-07-17T15:30:21.7149183Z Application started. Press Ctrl+C to shut down./home/LogFiles/2024_07_17_lw1sdlwk0000ZJ_docker.log  (https://app-backend-6gwercguaeuhq.scm.azurewebsites.net/api/vfs/LogFiles/2024_07_17_lw1sdlwk0000ZJ_docker.log)

There is a python webapp runtime missmatch between bicep main.bicep

runtimeName: 'python'
runtimeVersion: '3.11'
appCommandLine: 'python3 -m gunicorn main:app'

and the one used in app/frontend/start.sh which starts fine without erros
[email protected] , [email protected], [email protected]

cd ../backend
port=50505
host=localhost
python -m quart --app main:app run --port "$port" --host "$host" --reload

Using latest version /main /17.07.2024

@pamelafox
Copy link
Collaborator

The commands are expected to be different. We use gunicorn in production, since it can handle multiple processes.

If you are getting that error, it usually means there was an issue with the deploy or that the App Service server is still starting up. See this guide to debugging App Service deployments:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/appservice.md

@pamelafox
Copy link
Collaborator

Closing this issue, but please open a new one if you believe there's an error after going through the App Service deployment guide.

@cforce
Copy link
Contributor Author

cforce commented Jul 27, 2024

see #1864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants