16GB server shutting down very often

November 22, 2013 1.7k views
Hello All I have been hosting at digitalocean for about 4 months now without any problem, but suddenly since yesterday my sites are down very often when I restart the server, they are up again but after some few hours the sites are down again and again. I have checked the /var/log but could not see any relevant errors. Note: I haven’t change anything on the server for the last few weeks. So please can you help to better investigated the issue because it is really an emergency for me as I need to reboot the server almost every 2 hours. I am currently hosting on a 16GB RAM machine and running the apache2 + MySQL on the same machine. Regards DO Customer
2 Answers
Are you sure your droplet is shutting down and not simply apache or mysql crashing? Check both of their error logs and see if you can find any pointers there.
Before tinkering w/your droplet further, make sure to take a snapshot (believe me, I've learned the hard way on this one).

"I haven’t change anything on the server for the last few weeks."

Perhaps there are some updates to MySQL, Apache or to any number of their dependencies that you've missed out on. Try executing:
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove

to see if that solves the problem.
by Etel Sverdlov
This tutorial provides an explanation for how backup and snapshots work on DigitalOcean. Additionally, it includes information on how to scale, backup, and clone out servers with snapshots.
Have another answer? Share your knowledge.