hashicorp / field-workshops-consul

Slide decks and Instruqt code for Consul Workshops
Mozilla Public License 2.0
70 stars 56 forks source link

Apache is not started in service-mesh-with-consul #177

Open malekai101 opened 2 years ago

malekai101 commented 2 years ago

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.

omkensey commented 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.