Apache Server Keeps Crashing, "Caught Sigterm, Shutting Down"

Apache server keeps crashing, caught SIGTERM, shutting down

SIGTERM is used to restart Apache (provided that it's setup in init to auto-restart): http://httpd.apache.org/docs/2.2/stopping.html

The entries you see in the logs are almost certainly there because your provider used SIGTERM for that purpose. If it's truly crashing, not even serving static content, then that sounds like some sort of a thread/connection exhaustion issue. Perhaps a DoS that holds connections open?

Should definitely be something for your provider to investigate.

How to fix: Apache httpd container for Docker shuts down unexpectedly (SIGTERM)

Fixed!

The Dockerfile included a healthcheck command, namely:

HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:80/ || exit 1

So, after the check failed for any reason, the container just got killed. Either remove that line from the Dockerfile or, better yet, instruct Docker to automatically restart the container whenever it dies.

Rails - Caught SIGTERM, shutting down on AWS EC2 running on Apache Server

Try to check your configurations. This problem may be because you set your config.force_ssl equal to true. Change it back to false then restart your server using sudo service apache2 restart.



Related Topics



Leave a reply



Submit