Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.9k stars 4.04k forks source link

:( Application Error If you are the application administrator, you can access the diagnostic resources. #483

Open tjjingshen opened 1 year ago

tjjingshen commented 1 year ago

App Service does not work

:( Application Error If you are the application administrator, you can access the diagnostic resources.

docker_log.txt

tjjingshen commented 1 year ago

Attaching 2023_07_30_lw0sdlwk0001OA_default_docker 2023_07_30_lw0sdlwk0001OA_default_docker.log

tjjingshen commented 1 year ago

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)

PG-9000 commented 1 year ago

Having the same issue.

dantasticdotcom commented 1 year ago

Same issue too

pamelafox commented 1 year ago

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:

  1. Deleting in Portal and re-saving Screenshot 2023-08-02 at 6 37 34 AM
  2. 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.

dantasticdotcom commented 1 year ago

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.

pamelafox commented 1 year ago

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.

KrishKanojia commented 12 months ago

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:

  1. Deleting in Portal and re-saving

Screenshot 2023-08-02 at 6 37 34 AM 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.

Hypatchia commented 11 months ago

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)

pamelafox commented 11 months ago

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.

Hypatchia commented 11 months ago

@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

pamelafox commented 11 months ago

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.

github-actions[bot] commented 8 months ago

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.

yusufdemirbeigene commented 7 months ago

:( Application Error

my health check is not configured. should i configure it to be able to fix the issues? if yes, how? thanks

image

image image image image image image image image image
pamelafox commented 7 months ago

What's the actual error from the traceback? Your screenshot cuts off before the error is shown.

yusufdemirbeigene commented 7 months ago

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..

image
yusufdemirbeigene commented 7 months ago
image
yusufdemirbeigene commented 7 months ago

there are application logs, platform logs, deployment logs error. i shared them.

yusufdemirbeigene commented 7 months ago

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.

yusufdemirbeigene commented 7 months ago

do you think it is add provider issue for the wep app?

pamelafox commented 7 months ago

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?

https://github.com/Azure-Samples/azure-search-openai-demo/pull/1261/files#diff-7019572a0cefb4f12f3ae1705e309340b753273cc2f85144315da33fd080837d

Hope to merge it soon.