Container app crashing

Mansi Gusain 190 Reputation points
2025-02-11T10:48:15.8766667+00:00

Hii, have hosted my application in the azure container app, using a docker image. Such that I provide the image name, and it extracts and runs the application.

User's image

User's image

Now as soon as I login to my application and try accessing my files, I get the following log message-

crash.txt

This is happening both in chrome and edge.

User's image

I am using single replica of my container apps. My files are there already network is clean what is causing this and how can I fix this?

image

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
528 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 3,430 Reputation points Microsoft Vendor
    2025-02-12T10:33:22.4166667+00:00

    @Mansi Gusain ,

    Thanks for reaching out! There could be a few reasons why your Azure Container App is crashing when you try to access your files. Here are some common ones and how to troubleshoot them:

    1. Application Crash or Exception: If your app hits an error it can't recover from, the container might exit. Check your code for unhandled exceptions or errors.
    2. Out of Memory (OOM) Errors: If your app uses more memory than allocated, the system might kill the container. Check your memory settings and monitor usage.
    3. Incorrect Exit Code or Misconfiguration: A nonzero exit code means abnormal termination. Make sure your app is configured correctly, including environment variables and startup commands.
    4. Normal Application Termination: If your app is meant to complete its task and exit, this is expected. If not, adjust your app logic.

    To dig deeper, check your container app logs:

    1. Sign in to the Azure portal.
    2. Search for your container app's name.
    3. Select your container app from the resources section.
    4. Go to Monitoring and select Log stream.

    If the log stream shows the revision is scaled to zero, deploy a new revision with a minimum replica count of 1.

    Also, try using the Diagnose and solve problems tool in the Azure portal to check your container app's health, configuration, and performance.

    References :

    Hope this helps! Let me know if you need more assistance.


    If this answers your query, do click Accept Answer and Yes for "Was this answer helpful." And if you have any further questions, let us know.


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.