Frequent offline debian apache2 server
I have a debian (wheezy) web server (home built machine) that frequently (once a day) goes offline mysteriously. I administer the server via ssh and when it goes offline a "Broken pipe"g message appears, which means that the SSH connection died. Websites are no longer reachable. If I connect a monitor to the webserver after the server is unreachable by SSH and sites unreachable, the monitor screen remains black (entire system is dead?). The only thing I can do is a force reboot via the power button. Many times it takes two reboots for the server to become reachable again.
I have reviewed /var/log files and searched and have come up empty on a possible the cause.
When this happens, I notice that /var/log/syslog file reports one or more tables in a mysql database has crashed and needs repair. However, repairing the database tables via myphpadmin does not prevent the server from going offline again, which may indicate the database table crash was due to the force reboots.
I have checked the server for rootkts with rkhunter (1.4.0) and none are found.
I can post only 2 minutes of the syslog file and doubtful it will be very informative.
Any suggestion on what to look for in my log files or any kind of pointer will be appreciated.
System: Debian (Wheezy)
Services: apache2, fail2ban, squirrelmail, pure-ftp, courier, bind, autofs
Hardware: 1.7 Ghz CPU, 2Gb RAM, 1TB disk space,
Update (Oct 14): Apparent cause was postfix not running, see post below dated Oct 14. Started the service with the /etc/init.d/postfix start command.
Last edited by drhood; 10-14-2013 at 06:35 AM.
Reason: [Solved] Apparent solution below