Quantcast
Channel: WhizCreed
Viewing all articles
Browse latest Browse all 14

Mysql::Error: Incorrect key file for table

$
0
0

Few days ago my current Ruby on Rails project was been moved to a staging server with similar configuration of the live web site. Suddenly yesterday in one of the administration modules I started getting the following error:

Mysql::Error: Incorrect key file for table ‘/tmp/#sql_61a9_0.MYI’;
try to repair it

After searching about it on Google I landed to a MySQL bug page. I tried several things to fix this issue like:

  • Running repair command on tables
  • Importing a working copy from live server
  • Recreating the database with the working data
  • Switching over to a different database
  • Tested locally with the database having issue

But nothing worked, so today I wrote to Rimu hosting’s tech support explaining about the problem.

I received a response within half hour and I really do appreciate their promptness. This pointed me into the right direction that the issue was not with MySQL but due to the fact that there was no disk space available on server.

[root@xxxxxxx ~]# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/xvda1             4.3G   4.3G   512k 100% /

Tada the problem was gone after freeing up some space on the server


Viewing all articles
Browse latest Browse all 14

Trending Articles