Open malekai101 opened 2 years ago
It seems that sometimes apache just fails to start and no error is logged anywhere explaining why:
root@app:~# touch /tmp/index
root@app:~# service apache2 restart
Restarting Apache httpd web server: apache2 failed!
root@app:~# find / -newer /tmp/index 2>/dev/null | grep -v /sys | grep -v /proc
/root/.bash_history
/dev/pts/0
/dev/pts/ptmx
/tmp
/run/apache2
/consul.out
The consul.out is Consul's own logs; /run/apache2 changes because the PID file from the previous (successful) run is removed by the restart; the other files are changing because of the actual running of the commands trying to find a log file.
This track should probably be updated to use systemctl instead of SysV init scripts.
The apache service is not started in the
open and close the gates
challenge in the service-mesh-with-consul instruqt track. It has to be manually cycled.