Closed shinsenter closed 2 months ago
I don't know or understand your exact setup, your source code repository is too complex for me to dive into; and if something worked yesterday and isn't working today, that's certainly not s6-overlay-related, because s6-overlay did not change. But I can see one thing: you seem to have two apache services - one defined in cont-init and started with zz-start-apache
, and another one as an s6-rc service. Is that intentional?
I’m not entirely sure what happened, but it seems to be working fine now with the recent build using the same source code. It looks like a process in s6-overlay might have sent a signal to close other processes in the container.
Thank you for your support. I’ll close this issue now.
Note: The process named zz-start-apache is actually just for initializing environment variables, creating directories, etc., used for the Apache service.
My issue
Hello @skarnet,
I'm currently using s6-overlay in containers running PHP and Apache. Today, after building my Docker images, I encountered an issue where the containers immediately stop after starting. I've tried updating Docker to the latest version and rebuilding the images multiple times, but the problem persists.
To troubleshoot, I enabled
S6_VERBOSITY=3
and ran the containers again. I noticed an unusual message: "bringing selected services down" appearing right after the Apache service starts. Interestingly, when I tested a container built from a Docker image created yesterday using the same source code and testing methods, this issue did not occur, and Apache worked perfectly.I would greatly appreciate any insights or guidance on what might be causing this issue and how to resolve it. Below, I've included the complete log of the container startup process where the problem occurs.
Dockerfile
Source code I used to build the Docker images is here: https://github.com/shinsenter/php/tree/main
Commands I used to build the Docker images:
Command I ran to test the container built from the above command:
Command I ran to test the container I built yesterday:
Logs
Below is the complete log of the container startup process where the issue occurs for your reference.