Open tjjingshen opened 1 year ago
Attaching 2023_07_30_lw0sdlwk0001OA_default_docker 2023_07_30_lw0sdlwk0001OA_default_docker.log
2023-07-30T08:02:56.398724729Z /opt/startup/startup.sh: 23: start_appservice.sh: not found (whic is weird , the package deployedd successfully also i can run the web server successully locally)
Having the same issue.
Same issue too
It looks like it found the new app command from the provisioning, but it didn't find the actual file. Can you try 'azd deploy'?
You can also try deleting that command, either by:
Once the server restarts, it should work (using the default App Service startup command), and then you can use SSH from the Portal and check if that "start_appservice.sh" file exists.
I do not have a custom Startup Command defined. I commented out the appCommandLine variable on line 114 and did an 'azd deploy.' Same issue.
Sorry, if you've commented out line 114, you'll need to do a re-provision, either using azd up or azd provision. You can comment out the postprovision hooks in azure.yaml to avoid the lengthy prepdocs.py script running.
It looks like it found the new app command from the provisioning, but it didn't find the actual file. Can you try 'azd deploy'?
You can also try deleting that command, either by:
- Deleting in Portal and re-saving
3. Deleting from infra/main.bicep, Line 114, and running 'azd up' Once the server restarts, it should work (using the default App Service startup command), and then you can use SSH from the Portal and check if that "start_appservice.sh" file exists.
This solved my issue by adding"python app.py" command for flask web app.
I found the issue and solution when I activate App Service logs on my Azure web app, I get that error: :( Application Error If you are the application administrator, you can access the diagnostic resources. and when I deactivate the app service logs, The website loads fine (using Django)
Hm, that's strange, can you look at the logs to see what the error is? We have an FAQ in the readme about finding the logs on App Service.
@pamelafox I don't have a startup command, for days, I kept having "container failed to start", "Site failed to start" 0 errors 0 issues , but site deployed successfully
I'm confused, are you referring to deploying this repo or a different app? You mentioned Django, but this repo is a Quart app. This repo also requires a startup command, which is set in infra/main.bicep.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.
:( Application Error
my health check is not configured. should i configure it to be able to fix the issues? if yes, how? thanks
What's the actual error from the traceback? Your screenshot cuts off before the error is shown.
Thanks Pamelafox for your prompt response. this is screenshot. if it does not show it tell me which screenshot region you would need. thanks again..
there are application logs, platform logs, deployment logs error. i shared them.
in platfrom logs it says: Error 2024-02-14T16:43:56.235 ERROR - Container cbdi_0_3b87d12a for site cbdi has exited, failing site start
in applications logs it says: Warning 2024-02-14T17:09:12.0922397 [2024-02-14 17:09:12 +0000] [67] [ERROR] Exception in worker process
in deployment logs: Deployment logs are currently not available in this view. Go to the Deployment Center to view the logs in the Deployment Center.
do you think it is add provider issue for the wep app?
Sorry, I was asking for the traceback in the other logs, where it says "exception in worker process". I am working on a better document for debugging app service deployments, can you read through this?
Hope to merge it soon.
App Service does not work
:( Application Error If you are the application administrator, you can access the diagnostic resources.
docker_log.txt