Can’t create/write to file ‘/tmp/ (Errcode: 30) [How to Solve]

Open the web site, go to the user information editing interface, and an error appears.

UCenter info:MySQL Query Error
SQL:SELECT a.*,b.region_name as tworegion,c.region_name as oneregion FROM [Table]members as a LEFT JOIN [Table]region as b ON a.region_id=b.region_id LEFT JOIN [Table]region as c ON b.parent_id=c.region_id WHERE uid=’332′
Error:File ‘./cking_ucenter/[Table]region.MYD’ not found (Errcode: 30)
Errno:29

Use the chkconfig –list command to prompt for a bus error.

 

==============================

one zen cart website’s front page got corrupted,the error message looks like:

Can’t create/write to file ‘/tmp/#sql_ .MYI’ (Errcode: 30)
i tried to restart mysql server with

/etc/init.d/mysqld restart

but the problem still no solved

i found that the zen cart backend home page is ok from browse.so i tried to repair the table according to the error message,but still no.

after a while search,i got the solution as below:

It is likely that your /usr/tmpDSK is corrupted. You should stop all processes that have files open on /tmp such as MySQL and other applications using:

lsof /tmp

Run the following commands (in that order):

/bin/umount -l /tmp #umount tmp /bin/umount -l /var/tmp # umount /var/tmp /bin/rm -fv /usr/tmpDSK # remove /usr/tmpDSK

/scripts/securetmp #recreate
This should create a new /tmp partition for you. That’s all .This will take a while to run.and keep in mind that only server with Cpanel have /scripts/securetmp script.You will have to recreate yourself if you are not running Cpanel.
Someone says restart the system sometimes fixes the problem.

 

Similar Posts: