Closed luislavena closed 11 months ago
Hello,
I have exactly the same issue with a PHP image : php:7.4-fpm-alpine Do you have an idea about this error ?
Thank you and thank for your amazing tool !
Hello, Found workaround for this issue: 1) use dumb-init 2)
ENTRYPOINT: ["dumb-init", "--rewrite", "3:15", "--"]
CMD: ["supercronic", "/etc/crond.d/echo"]
Basically, we remaping SIGQUIT to SIGTERM here, because of supercronic (according to this line) doesn't handling anything beyond SIGTERM, SIGINT and SIGUSR2.
Reproduced error in almost all reasonable versions of php:xx-fpm images, with all available distros. This fix worked in all of them.
I can't wrap my head around whats happening in php images, but it looks like it's not a supercronic problem, php dockerimage maintainers must be done something to inflict this behaviour. As far as I know, php-fpm can't handle SIGTERM properly (well, I believe it can, but it's not implemented for any reason), so they are sticking to SIGQUIT for graceful shutdown or something.
I can't wrap my head around whats happening in php images, but it looks like it's not a supercronic problem, php dockerimage maintainers must be done something to inflict this behaviour. As far as I know, php-fpm can't handle SIGTERM properly (well, I believe it can, but it's not implemented for any reason), so they are sticking to SIGQUIT for graceful shutdown or something.
PHP images just set STOPSIGNAL SIGQUIT
in their Dockerfile here.
Thanks for the PR, I'll take a look at it now.
Thanks a lot, I've probably just missed that instruction in their Dockerfile.
Hello,
First and most important, thank you for creating and making supercronic available to the world!
I'm trying to add supercronic to Docker container based on official Docker PHP one, and noticed that when supercronic is launched, either as entrypoint or via sh
exec
, the following exception is shown when trying todocker stop
that container:I was able to reduce the test scenario to the following Dockerfile:
While PHP container is based on
debian:buster-slim
, I was not able to reproduce this scenario when using that image, however, This also works withcli-buster
image, which makes things more tricky to investigate. I'm not proficient in Go in order to deeper debug this and report to Docker's official tracker.Any hint that could help me debug this further?
Thank you in advance for your time.
❤️ ❤️ ❤️