I logged onto my server and did a standard update and upgrade. For some odd reason, MySQL refused to start up and hence my blog went offline.
In particular I got this error:
[email protected]:~$ service mysql start start: Rejected send message, 1 matched rules; type="method_call", sender=":1.4" (uid=1000 pid=1406 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
I tried starting manually. I tried uninstalling and reinstalling MySQL. But I couldn’t even get that far. Thankfully I had a backup of the entire server from last night. Restored, started up. Same problem.
Hmm. What else could it be? After a bit of searching I managed to start MySQL with this:
[email protected]:~$ sudo -u mysql mysqld
I was however seeing errors such as is marked as crashed and should be repaired
After some further searching, I found that you can sometimes get these MySQL errors when your disk is full. So let’s have a look at the disk then. 100% full. Great.
This VM itself has a fairly small hard disk. I was running the cli version of the dropbox daemon and slowly but surely my dropbox folder completely filled the disk :(
I removed dropbox and removed everything out of my synced folder. Restarted MySQL and no more problems :)