App Service Linux containers: "Container get mounts/processes received unexpected exception" and ImagePullFailure on specific workers only

Tom-1146 0 Reputation points
2026-11-24T15:46:42.8+00:00

On a P2v3 Linux App Service plan (East US, custom container from ACR via user-assigned managed identity), new containers repeatedly fail to start on specific workers. Other workers start the same image tag in the same minute.

  • On affected workers: the image pull completes, then container creation logs Container get mounts received unexpected exception / Container get processes received unexpected exception, and startup takes 170–200 s or never completes. After that, later pulls on the same worker fail after about 100–120 s with ImagePullFailure and no error detail.
  • Registry side is clean: ACR logs show every login and manifest pull returning 200 during the failure windows. Public network access, no firewall, no private endpoint, no VNet integration on the app.
  • Recurrence: four times this month. Scaling the plan up and down to land on new workers helps only temporarily, and new workers have shown the same errors.

Has anyone seen this? Is there a way to get a worker-level health check, or a move to a different stamp, for an affected plan? Platform logs are attached to the linked support case.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


2 answers

Sort by: Most helpful
  1. Venkatesan S 10,830 Reputation points Microsoft External Staff Moderator
    2026-11-26T19:17:59.8066667+00:00

    Hi @Tom-1146 ,

    Thanks for reaching out in Microsoft Q&A forum,

    The lines "Container get mounts received unexpected exception" and "Container get processes received unexpected exception" are usually not the cause of a startup problem on their own. The platform logs them while it collects details about the container as it is being created, and they also appear on starts that complete successfully. If your log shows these lines followed by "Container is running" and "Site started", the container started normally and you can ignore them.

    If the site does fail to start, look a few lines further down the platform log for the actual error. One pattern worth checking is a site that fails only on certain instances with "Create container failed with unexpected exception", "ContainerCreateFailure" or "ImagePullFailure", keeps failing until that instance is replaced, and comes back after a number of deployments. That is often caused by files in the image owned by a user ID (UID) or group ID (GID) above 65535. App Service on Linux maps container user and group IDs into a 65,536-ID range. When an image has IDs outside that range, the image is pulled through a slower path, and over repeated deployments that can exhaust disk resources on the instance.

    To check and fix this:

    Find out whether your image has files with IDs above 65535:

    docker run --rm <your-image> find / -xdev \( -uid +65535 -o -gid +65535 \) -print
    

    If this prints anything, the listed paths are the cause. Package managers that keep ownership from the archives they extract are a common source.

    Reset file ownership in your Dockerfile after installing dependencies, for example RUN chown -R root:root /app. If the container runs as a non-root user, use that user instead. If the package with the high IDs is only needed for development or testing, install production dependencies only.

    Rebuild the image, run the command from step 1 again to confirm it prints nothing, and deploy the new image to every slot that uses it.

    Scale the App Service plan up one tier and back down to move the app onto fresh instances.

    If the command in step 1 prints nothing and the site still fails to start, please share the platform log lines that come just after the "unexpected exception" messages (the ones with "LastError" and "LastErrorDetails"), together with the UTC time of a failed start. That will show where the start is actually failing.

    Useful references:

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please do not forget to 210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

  2. Alex Burlachenko 26,305 Reputation points MVP Volunteer Moderator
    2026-11-25T10:14:53.7366667+00:00

    hi Tom-1146 & thx for join me at Q&A platform,

    worker-specific behaviour is particularly significant here. The same image starts successfully on other workers, while affected workers initially encounter container mount/process exceptions and subsequently report ImagePullFailure.

    This suggests a possible worker-level container runtime, storage or host infrastructure issue rather than an application configuration or managed identity problem.

    However, successful ACR authentication and manifest requests don't necessarily confirm successful retrieval of all image layers.

    I'd request escalation of your existing support case to the App Service platform engineering team, specifically asking for worker-level investigation of container runtime health, filesystem mounts, local storage, image caching and container lifecycle operations.

    Provide the affected worker instance IDs alongside UTC timestamps and successful startup examples from healthy workers.

    App Service Health Check monitors application health, not the underlying worker infrastructure. Scaling the plan doesn't guarantee placement on a different infrastructure stamp.

    I'd also ask Microsoft to assess whether worker replacement or migration to another deployment stamp is appropriate.

    Given the recurrence and your existing diagnostic evidence, further scaling should be treated as a temporary mitigation rather than a permanent resolution.

    Best regards,

    Alex

    💬 P.S. Did this help? Mark it as the solution: it keeps me motivated!

    ➕ Follow me on Q&A for more answers

    📝 And feel free to visit my blog → https://ctrlaltdel.blog/

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.