Python Dash Plotly App Container Crashing during Start Up

Patrick Brett 1 Reputation point
2022-01-05T18:19:41.93+00:00

Python Web App keeps crashing during start up.

Crash Logs are as follows:

Container data-visualisation_0_466e17a4 couldn't be started: Logs = 2022-01-05T16:54:30.145701884Z
2022-01-05T16:54:30.145740785Z _____
2022-01-05T16:54:30.145748985Z / _ \ __________ _________ ____
2022-01-05T16:54:30.145755785Z / /_\ ___ / | _ __ _/ __ \
2022-01-05T16:54:30.145762485Z / | / /| | /| | /\ /
2022-01-05T16:54:30.145768685Z _
|__ /_____ ____/ || _ >
2022-01-05T16:54:30.145776285Z / / /
2022-01-05T16:54:30.145782785Z
2022-01-05T16:54:30.145788386Z A P P S E R V I C E O N L I N U X
2022-01-05T16:54:30.145794386Z
2022-01-05T16:54:30.145800286Z Documentation: http://aka.ms/webapp-linux
2022-01-05T16:54:30.145806286Z Python 3.9.0
2022-01-05T16:54:30.145812186Z Note: Any data outside '/home' is not persisted
2022-01-05T16:54:30.650996890Z Starting OpenBSD Secure Shell server: sshd.
2022-01-05T16:54:30.684947629Z App Command Line not configured, will attempt auto-detect
2022-01-05T16:54:30.686210053Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite
2022-01-05T16:54:30.759367629Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2022-01-05T16:54:30.762503288Z Build Operation ID: |KiJ+4QVcFvM=.b619d52d_
2022-01-05T16:54:30.763605309Z Output is compressed. Extracting it...
2022-01-05T16:54:30.763627009Z Oryx Version: 0.2.20210805.1, Commit: f3aa4eb16e7085ef7fd6f4521daa9b51d69fedd8, ReleaseTagName: 20210805.1
2022-01-05T16:54:30.765161738Z Extracting '/home/site/wwwroot/output.tar.gz' to directory '/tmp/8d9d06b6425929f'...
2022-01-05T16:54:46.686914441Z App path is set to '/tmp/8d9d06b6425929f'
2022-01-05T16:54:47.396573848Z Detected an app based on Flask
2022-01-05T16:54:47.396673750Z Generating gunicorn command for 'app:app'
2022-01-05T16:54:47.586098608Z Writing output script to '/opt/startup/startup.sh'
2022-01-05T16:54:47.729017268Z Using packages from virtual environment antenv located at /tmp/8d9d06b6425929f/antenv.
2022-01-05T16:54:47.729068669Z Updated PYTHONPATH to ':/tmp/8d9d06b6425929f/antenv/lib/python3.9/site-packages'
2022-01-05T16:54:48.368179512Z [2022-01-05 16:54:48 +0000] [38] [INFO] Starting gunicorn 20.1.0
2022-01-05T16:54:48.368714722Z [2022-01-05 16:54:48 +0000] [38] [INFO] Listening at: http://0.0.0.0:8000 (38)
2022-01-05T16:54:48.368737822Z [2022-01-05 16:54:48 +0000] [38] [INFO] Using worker: sync
2022-01-05T16:54:48.373242409Z [2022-01-05 16:54:48 +0000] [39] [INFO] Booting worker with pid: 39

The app start up time (WEBSITES_CONTAINER_START_TIME_LIMIT) has been increased to 1800 but it still crashes.
Locally the app will run without any issues.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,934 questions
{count} votes

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.