-
Notifications
You must be signed in to change notification settings - Fork 652
Linux App Service: ERROR - failed to register layer: Error processing tar file(exit status 1): Container ID 1210765499 cannot be mapped to a host ID #2512
Comments
This happens when the docker image uses a high-UID because we have userns mapping enabled for docker. You can repro this issue even locally if you enable userns mapping. What kind of image do you hit this for? We have seen this for node 8.x images that use npm 5 that hit this issue. I believe their latest node 8x image that uses the latest npm5x version doesn't, but every previous npm 5x version did. |
interesting. Yes, we use node 8.1.2 and the base image is I will repro locally, and look into a workaround. Thank you for the info. |
So, using One final thing - I was hoping that The |
We just had this happen with jupyter/scipy-notebook. Any ideas about how to fix. I'm looking at it and I can't see any high uid or gids. What's the best way to debug |
For anyone facing this issue on NPM 9.1.1/9.1.2, we have created the following blog post detailing how to further troubleshoot and resolve the high UID constraint: https://azureossd.github.io/2022/06/30/Docker-User-Namespace-remapping-issues/index.html |
Current symptom has been exposed to NPM maintainers, breaking change discussion can be tracked here: npm/rfcs#546 |
In my case I could experience this issue with any of npm 9.x versions, actually tried all of them below 9.1.1. |
I want to mention that the chown needs to be included on the same instruction/layer where I may also share that the issue started to occur specifically on npm 9.0.0-pre.6 (we were unable to reproduce the symptom on 9.0.0-pre.5): Reasons for the change and further discussion can be seen on the aforementioned RFC, unfortunately it seems the behavior is here to stay on release 9. |
Thank you for keeping us posted Melroy, this has been impacting a good portion of our customers for quite a while 💪 Tagging @Ajsalemo for visibility |
You can force update the npm dependency: |
The above-mentioned PR has been merged and included in the |
|
Hi If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: This way we can better track and assist you on this case Thanks, Joaquin Vano |
Repro steps.
eventually receive the following webpage after a long wait...
Image builds and runs fine locally (either in a swarm or standalone).
If i use
az webapp log tail -g myresgroup -n myappsvc
i get the following output...I have tried standing up a completely new Linux App Service Plan but this makes no difference.
Have also checked disk space, and there is plenty.
If i use a sample image from docker hub, such as
training/webapp
it works fine.How can i debug this further without any more detailed diagnostics info? and what could be causing this to fail?
The text was updated successfully, but these errors were encountered: