Skip to content

nginx unit php server stops responding when using supervisor #1310

Answered by lcrilly
kapyaar asked this question in Support
Discussion options

You must be logged in to vote

OK, looks like unitd is running :)

But there's no sign of any configuration being applied. I would expect to see

phpApp  | 2024/06/10 13:17:16 [info] 2915#16842233 "php" application started

I suspect that when you added

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

it replaced the default CMD which is to run the Unit entrypoint script.

So now you have both services but Unit has an empty configuration. Confirm by running

docker exec -ti <CONTAINER_ID> curl --unix-socket /var/run/control.unit.sock _/config

To resolve this, you'll need to apply the configuration in the Dockerfile. I recommend

COPY config.json init.json
RUN nohup /bin/sh -c "unitd --no-daemo…

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lcrilly
Comment options

Comment options

You must be logged in to vote
5 replies
@kapyaar
Comment options

@lcrilly
Comment options

@kapyaar
Comment options

@kapyaar
Comment options

@kapyaar
Comment options

Comment options

You must be logged in to vote
8 replies
@lcrilly
Comment options

@kapyaar
Comment options

@kapyaar
Comment options

@lcrilly
Comment options

@kapyaar
Comment options

Answer selected by lcrilly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1309 on June 10, 2024 12:00.