New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot extract OTP release tarball during Kaniko build #513
Comments
👋 @vassilevsky. I'm not sure how Note: In any case, What would you suggest we do? Or what is the exact issue we should look at? |
eluklar is indeed me. I think github actions failed for 25.3.2.9 so I had to build the pre-built source manually which is why it shows up like that. |
Nice to meet you, Paulo :) For now I have solved this issue by pointing Kerl to my fork of OTP. My fork does not have releases, so Kerl resorts to downloading tags. In the archives made by GitHub, files are owned by root:
They are extracted without problems and the build succeeds :) Very nice to meet you, Lukas :) Thank you for making this effort of uploading OTP archives to GitHub releases. I found your issue #351 where you announced it and it led me to this discovery. I did not want to bother you at all with this, but oh well. I think that one possible thing that Kerl might do to prevent errors like this in the future is to always run Or we might as well do nothing, because this is such a niche problem, and next OTP archives will most likely be made by CI anyway :) |
I think it's a reasonable change. Just be sure to make it POSIX compliant, since |
The bug
This bug is very interesting. I just had to share :)
Usually OTP releases on GitHub are packed by
runner:docker (1001:127)
:But a recent release was packed by a different, strange user:
Would you look at this UID.
I build an image from the following Dockerfile, nothing fancy:
I run Kaniko (
gcr.io/kaniko-project/executor:debug
) to build the image.It builds OTP 24.3.4.16 just fine. But OTP 25.3.2.9 fails with this:
It says that for every file in the archive.
Tar has options:
So I guess that Kaniko runs builds as superuser by default, tries to set UID and GID from the archive, and fails spectacularly :)
Software versions
All the software is the latest one. Kerl is downloaded by asdf-erlang automatically.
How to replicate
Build provided Dockerfile with Kaniko.
Expected behaviour
OTP 25.3.2.9 is installed.
Additional context
I think that bothering OTP team with this issue is not necessary.
The text was updated successfully, but these errors were encountered: