Closed lokeshkri closed 5 months ago
You're seeing a 502 with the App Service URL or with the Codespaces URL? I saw the 502 with Codespace URLs this morning, and ended up working around that by changing my local port. If you are seeing 502s with App Service, then you'll need to check the App Service logs. My guide from another repo can help with that: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/appservice.md
Thanks for filing!
Error is with Web App Service end point URL. Thanks for the pointers. This is the error message I am noticing in the WebContainer App.
Console Log
2024-06-11T16:36:31.43548 Connecting to the container 'main'...
2024-06-11T16:36:31.45862 Successfully Connected to container: 'main' [Revision: 'xxxxxxxxxx-uhlvle-ca--azd-1718120404-7d46647f96-pccw4', Replica: 'xxxxxxxxxx-uhlvle-ca--azd-1718120404']
2024-06-11T16:31:29.148172875Z from . import frontend_routes # noqa
2024-06-11T16:31:29.148177443Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-06-11T16:31:29.148182092Z File "/demo-code/fastapi_app/frontend_routes.py", line 22, in
System Log
{"TimeStamp":"2024-06-11T16:41:47Z","Type":"Normal","ContainerAppName":null,"RevisionName":null,"ReplicaName":null,"Msg":"Connecting to the events collector...","Reason":"StartingGettingEvents","EventSource":"ContainerAppController","Count":1} {"TimeStamp":"2024-06-11T16:41:48Z","Type":"Normal","ContainerAppName":null,"RevisionName":null,"ReplicaName":null,"Msg":"Successfully connected to events server","Reason":"ConnectedToEventsServer","EventSource":"ContainerAppController","Count":1} {"TimeStamp":"2024-06-11 16:25:10 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Persistent Failiure to start container","Reason":"ContainerBackOff","EventSource":"ContainerAppController","Count":59} {"TimeStamp":"2024-06-11 16:25:58 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":13} {"TimeStamp":"2024-06-11 16:25:58 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":14} {"TimeStamp":"2024-06-11 16:30:18 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Persistent Failiure to start container","Reason":"ContainerBackOff","EventSource":"ContainerAppController","Count":82} {"TimeStamp":"2024-06-11 16:31:34 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":15} {"TimeStamp":"2024-06-11 16:31:34 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":16} {"TimeStamp":"2024-06-11 16:35:09 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Persistent Failiure to start container","Reason":"ContainerBackOff","EventSource":"ContainerAppController","Count":104} {"TimeStamp":"2024-06-11 16:37:14 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":17} {"TimeStamp":"2024-06-11 16:37:14 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Container \u0027main\u0027 was terminated with exit code \u00273\u0027","Reason":"Error","EventSource":"ContainerAppController","Count":18} {"TimeStamp":"2024-06-11 16:40:16 \u002B0000 UTC","Type":"Warning","ContainerAppName":"xxxxxxxxxx","RevisionName":"xxxxxxxxxx","ReplicaName":"xxxxxxxxxx-1718120404-7d46647f96-pccw4","Msg":"Persistent Failiure to start container","Rea son":"ContainerBackOff","EventSource":"ContainerAppController","Count":127}
Hm, that static folder should have been built in the prepackage step, from this line: https://github.com/Azure-Samples/rag-postgres-openai-python/blob/main/azure.yaml#L15C27-L15C64
Can you try running that step manually to see if it's perhaps error'ing?
cd frontend;npm install;npm run build
Running the steps manually /redeployment potentially must have helped, seems the app is back up and running now. Many thanks!
Okay, App Service deployment can be a bit finicky, I'll keep my eye out for the issue. Closing this for now, glad it's working.
Description
What is wrong or what would you like to see improved? After going through the deployment process, post all steps completing successfully the URL link appears when clicked getting an error message.
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: remote connection failure, transport failure reason: delayed connect error: 111
From devtools: chrome-error://chromewebdata/:1
Environment
Describe your OS and dev environment (Codespaces, Dev Container, etc): Codespacess setup