Docker Community Forums

Share and learn in the Docker community.

Trouble with supervisord: apache2 "entered fatal state"


(Zebrilee) #1

Hi everyone,

I’m a beginner and I think I have a problem with supervisord for apache2.

Everything seems fine while building, 172.17.0.5 gives a “it’s works” but when I look do the docker-compose logs command I see :

INFO exited: apache2 (exited status 0; not expected)
INFO gave up : apache2 entered fatal state, too many start retries too quickly
CRIT reaped unknown pid 32

I’m afraid it’s not good at all.

The superviord.conf is quite like docker’s doc, just try few add at the end :

[supervisord]
nodaemon=true

[program:apache2]
command=/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND" 
user = root
autorestart=false
startentries=0

I tried many different things for supervisord but still have this error.
Can someone help me on this and explain me what I did wrong?

Thanks in advance