Thread Starter
zz298
(@zz298)
Wanted to update this – I think I mostly solved the problem. Our site is still experiencing some other strange errors once a week, however all the errors I mentioned above are now fixed due to tweaking a few things with the server configuration.
Here’s how I went about fixing it, in case anyone else has this problem:
I found this Stack Overflow page was key to fixing this – I found out that my server was configured with /tmp on its own partition, and was only allocated 100M of space. The errors I listed above were caused by the /tmp folder running out of space and MySQL not having enough space to write to.
To fix this, I reconfigured MySQL to use a new temp folder I created on our main partition (as illustrated here). As soon as I did that, the errors stopped completely.
Hope this helps someone with a similar issue!
(@zz298)
14 years, 4 months ago
I run a fairly large WordPress-driven site (around 700k uniques/month) and for the past few months, we have been experiencing a very strange error once a week. (Almost once every seven days, like clockwork.) I think it’s PHP/MySQL crash-related, however my knowledge of these is limited and I’m hoping someone here will be able to help.
Here’s what happens when this problem occurs:
[ERROR] /usr/libexec/mysqld: Incorrect key file for table ‘/tmp/#sql_c9d_101.MYI’; try to repair it
These problems persist until I restart the server, which fixes this, then everything will be fine for another week until all of these things happen again. The cycle repeats – a server restart fixes it for about seven days, then it’s back again.
I’ve done some research and I think it might have to do with memory on our server, however I’m at a loss for how to fix this. Any suggestions? Possible fixes? Any logs I should take a look at? Any help would be seriously appreciated.