I have a configured EC2 server running Ubuntu 11.10 running a Django App on Apache2/WSGI. This server works perfectly, stops and restarts without any problems.
When I clone this instance, everything about it is exactly the same. I have not changed anything meaningful. But...it will NOT full restart or stop. The app runs fine and the server doesn't seem to crash...until I try to restart/stop it.
Every time I try to STOP, it takes at least 30 to 45 seconds to stop with an
[OK] message. I can immediate try to stop it AGAIN, and it will do the same thing. If I try to RESTART, then it eventually fails with an "Address already in use error". I then manually kill the stagnant OLD
/usr/sbin/apache2 -k start process in order to restart. Then I still have 4 or 5
<defunct> processes that eat up resources for the rest of the life of the boot.
What can I do to figure out why this is happening. The process just gets hung EVERY single time. I've been bashing my head against this for days and am at a loss.
I just tried cloning the AMI to 2 more instances, one MICRO and one SMALL. This is VERY weird: The SMALL instance works perfectly. The MICRO instance has the same restarting issue. To verify this, I did the same thing again (cloned to another SMALL and another MICRO). Same thing....