-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Hi i'm trying to deploy the app on azure i give you some content:
-
I followed the main mandatory steps of the readMe until the azd deploy command line. I don't use AzureOpenai but OpenAi as AI service provider directly so i changed OPENAI_HOST="openai"
and defined OPENAI_ORGANIZATION and OPENAI_API_KEY in the .env created with azd. -
I'm on francecentral location.
-
I have no error during the deployment.
Oryx build didn't show any error in the deployement center.
I have access to Kudu page i share the web app service/docker logs here:
2025-03-06T13:21:11.032030379Z _____
2025-03-06T13:21:11.032705121Z / _ \ __________ _________ ____
2025-03-06T13:21:11.032709749Z / /_\ \\___ / | \_ __ \_/ __ \
2025-03-06T13:21:11.032712512Z / | \/ /| | /| | \/\ ___/
2025-03-06T13:21:11.032714982Z \____|__ /_____ \____/ |__| \___ >
2025-03-06T13:21:11.032717782Z \/ \/ \/
2025-03-06T13:21:11.032720420Z A P P S E R V I C E O N L I N U X
2025-03-06T13:21:11.032722838Z
2025-03-06T13:21:11.032725157Z Documentation: http://aka.ms/webapp-linux
2025-03-06T13:21:11.032727597Z Python 3.11.11
2025-03-06T13:21:11.032729963Z Note: Any data outside '/home' is not persisted
2025-03-06T13:21:15.107009674Z Starting OpenBSD Secure Shell server: sshd.
2025-03-06T13:21:15.107037280Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2025-03-06T13:21:15.451342277Z Updating certificates in /etc/ssl/certs...
2025-03-06T13:21:35.725295587Z 2 added, 0 removed; done.
2025-03-06T13:21:35.743288085Z Running hooks in /etc/ca-certificates/update.d...
2025-03-06T13:21:35.754151107Z done.
2025-03-06T13:21:35.783148403Z CA certificates copied and updated successfully.
2025-03-06T13:21:36.116912540Z Site's appCommandLine: python3 -m gunicorn main:app
2025-03-06T13:21:36.126692407Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -m gunicorn main:app'
2025-03-06T13:21:36.338790775Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2025-03-06T13:21:36.357129901Z Build Operation ID: f57d09767c429d60
2025-03-06T13:21:36.367733595Z Output is compressed. Extracting it...
2025-03-06T13:21:36.367854793Z Oryx Version: 0.2.20250121.2, Commit: d363b83aad8365d7e91cc246d6dfb3ddad209ddb, ReleaseTagName: 20250121.2
2025-03-06T13:21:36.378632370Z Extracting '/home/site/wwwroot/output.tar.gz' to directory '/tmp/8dd5cadfc134646'...
2025-03-06T13:22:37.082733034Z App path is set to '/tmp/8dd5cadfc134646'
2025-03-06T13:22:37.103086365Z Writing output script to '/opt/startup/startup.sh'
2025-03-06T13:22:38.151934384Z Using packages from virtual environment antenv located at /tmp/8dd5cadfc134646/antenv.
2025-03-06T13:22:38.151959893Z Updated PYTHONPATH to '/opt/startup/app_logs:/tmp/8dd5cadfc134646/antenv/lib/python3.11/site-packages'
2025-03-06T13:22:40.747922841Z [2025-03-06 13:22:40 +0000] [1006] [INFO] Starting gunicorn 23.0.0
2025-03-06T13:22:40.766647069Z [2025-03-06 13:22:40 +0000] [1006] [INFO] Listening at: http://0.0.0.0:8000 (1006)
2025-03-06T13:22:40.766672108Z [2025-03-06 13:22:40 +0000] [1006] [INFO] Using worker: custom_uvicorn_worker.CustomUvicornWorker
2025-03-06T13:22:40.848140411Z 2025-03-06 13:22:40,827 - INFO - Booting worker with pid: 1007
2025-03-06T13:22:41.067905083Z 2025-03-06 13:22:41,048 - INFO - Booting worker with pid: 1008
2025-03-06T13:22:41.230923888Z 2025-03-06 13:22:41,229 - INFO - Booting worker with pid: 1009
2025-03-06T13:32:14.219218074Z _____
2025-03-06T13:32:14.219265237Z / _ \ __________ _________ ____
2025-03-06T13:32:14.219269001Z / /_\ \\___ / | \_ __ \_/ __ \
2025-03-06T13:32:14.219271714Z / | \/ /| | /| | \/\ ___/
2025-03-06T13:32:14.219274311Z \____|__ /_____ \____/ |__| \___ >
2025-03-06T13:32:14.219277312Z \/ \/ \/
2025-03-06T13:32:14.219279790Z A P P S E R V I C E O N L I N U X
2025-03-06T13:32:14.219282262Z
2025-03-06T13:32:14.219284477Z Documentation: http://aka.ms/webapp-linux
2025-03-06T13:32:14.219286817Z Python 3.11.11
2025-03-06T13:32:14.219289290Z Note: Any data outside '/home' is not persisted
2025-03-06T13:32:16.023776213Z Starting OpenBSD Secure Shell server: sshd.
2025-03-06T13:32:16.062645263Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2025-03-06T13:32:16.125239823Z Updating certificates in /etc/ssl/certs...
2025-03-06T13:32:37.715162143Z 2 added, 0 removed; done.
2025-03-06T13:32:37.725688664Z Running hooks in /etc/ca-certificates/update.d...
2025-03-06T13:32:37.746596067Z done.
2025-03-06T13:32:37.844726285Z CA certificates copied and updated successfully.
2025-03-06T13:32:38.129314987Z Site's appCommandLine: python3 -m gunicorn main:app
2025-03-06T13:32:38.129338617Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -m gunicorn main:app'
2025-03-06T13:32:38.390534792Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2025-03-06T13:32:38.400649883Z Build Operation ID: f57d09767c429d60
2025-03-06T13:32:38.400665783Z Oryx Version: 0.2.20250121.2, Commit: d363b83aad8365d7e91cc246d6dfb3ddad209ddb, ReleaseTagName: 20250121.2
2025-03-06T13:32:38.400612823Z Output is compressed. Extracting it...
2025-03-06T13:32:38.400672163Z Extracting '/home/site/wwwroot/output.tar.gz' to directory '/tmp/8dd5cadfc134646'...
2025-03-06T13:33:39.762997718Z App path is set to '/tmp/8dd5cadfc134646'
2025-03-06T13:33:39.826185549Z Writing output script to '/opt/startup/startup.sh'
2025-03-06T13:33:40.247057457Z Using packages from virtual environment antenv located at /tmp/8dd5cadfc134646/antenv.
2025-03-06T13:33:40.247083644Z Updated PYTHONPATH to '/opt/startup/app_logs:/tmp/8dd5cadfc134646/antenv/lib/python3.11/site-packages'
2025-03-06T13:33:42.529998156Z [2025-03-06 13:33:42 +0000] [1006] [INFO] Starting gunicorn 23.0.0
2025-03-06T13:33:42.531303135Z [2025-03-06 13:33:42 +0000] [1006] [INFO] Listening at: http://0.0.0.0:8000 (1006)
2025-03-06T13:33:42.541252948Z [2025-03-06 13:33:42 +0000] [1006] [INFO] Using worker: custom_uvicorn_worker.CustomUvicornWorker
2025-03-06T13:33:42.562603396Z 2025-03-06 13:33:42,552 - INFO - Booting worker with pid: 1007
2025-03-06T13:33:42.782088035Z 2025-03-06 13:33:42,743 - INFO - Booting worker with pid: 1008
2025-03-06T13:33:42.853928099Z 2025-03-06 13:33:42,852 - INFO - Booting worker with pid: 1009
2025-03-06T13:36:10.370838706Z 2025-03-06 13:36:10,351 - INFO - CORS enabled for ['https://portal.azure.com', 'https://ms.portal.azure.com']
2025-03-06T13:36:10.380521726Z 2025-03-06 13:36:10,370 - INFO - CORS enabled for ['https://portal.azure.com', 'https://ms.portal.azure.com']
2025-03-06T13:36:10.392192439Z 2025-03-06 13:36:10,381 - INFO - CORS enabled for ['https://portal.azure.com', 'https://ms.portal.azure.com']
2025-03-06T13:36:10.623766309Z 2025-03-06 13:36:10,603 - INFO - Started server process [1009]
2025-03-06T13:36:10.631417999Z 2025-03-06 13:36:10,622 - INFO - Started server process [1007]
2025-03-06T13:36:10.641853263Z 2025-03-06 13:36:10,631 - INFO - Waiting for application startup.
2025-03-06T13:36:10.641995960Z 2025-03-06 13:36:10,631 - INFO - Waiting for application startup.
2025-03-06T13:36:10.642003467Z 2025-03-06 13:36:10,632 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.642006424Z 2025-03-06 13:36:10,633 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.642009163Z 2025-03-06 13:36:10,633 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.642011630Z 2025-03-06 13:36:10,641 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.681162136Z 2025-03-06 13:36:10,663 - INFO - Started server process [1008]
2025-03-06T13:36:10.681929347Z 2025-03-06 13:36:10,681 - INFO - Waiting for application startup.
2025-03-06T13:36:10.782506174Z 2025-03-06 13:36:10,682 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.782527132Z 2025-03-06 13:36:10,683 - INFO - Setting up Azure credential using ManagedIdentityCredential
2025-03-06T13:36:10.923636844Z 2025-03-06 13:36:10,923 - INFO - OPENAI_HOST is not azure, setting up OpenAI client using OPENAI_API_KEY and OPENAI_ORGANIZATION environment variables
2025-03-06T13:36:10.955253997Z 2025-03-06 13:36:10,954 - INFO - OPENAI_HOST is not azure, setting up OpenAI client using OPENAI_API_KEY and OPENAI_ORGANIZATION environment variables
2025-03-06T13:36:10.973153869Z 2025-03-06 13:36:10,972 - INFO - OPENAI_HOST is not azure, setting up OpenAI client using OPENAI_API_KEY and OPENAI_ORGANIZATION environment variables
I'm not sure how to interpret this. I don't think i forget some env variable configuration.
It seems to me that the docker constantly restarts and is not serving the app throught the server?
Maybe gunicorn server does not really start or fails directly during execution of CMD dockerfile instruction i don't understand why.
Can you help me to debug this please?
Thank you very much for your time and availability.