Ubuntu/mysql-server-8.0 builds fail - "Error: Unable to shut down server" due to zombie process #3224
Labels
area/filesystems
For all bugs related to kaniko container filesystems (mounting issues etc)
differs-from-docker
kind/bug
Something isn't working
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
works-with-docker
Actual behavior
Hi, when using
docker build
the below Dockerfile builds and installsmysql-server-8.0
correctly. When using Kaniko it hangs and eventually errors out when trying to establish if the mysqld process has exited during post installation configurationLooks like the postinst script starts and then kills the mysqld process, and needs to detect its absence before continuing:
https://git.launchpad.net/ubuntu/+source/mysql-8.0/tree/debian/mysql-server-8.0.postinst#n46
mysqld becomes a zombie rather than exiting fully so the script fails
ps
in the kaniko container before exit:ps
in the kaniko container after exit:ps
on the host after exit:Expected behavior
The mysqld process to exit cleanly as it does in docker (and podman) build
To Reproduce
Steps to reproduce the behavior:
Additional Information
Running the debug container with:
/kaniko/executor --ignore-var-run=false --no-push
latest - sha256:c090be9d4042f64a1f44af5abfec6e778dc8f61bd301c54001485205fd1324e0
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: