Issue :

Following error shows up on the websites which run with mysql.

Warning: session_write_close() [function.session-write-close]: write failed: No
space left on device (28)
in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42

Restarting MySQL fixes the issue temporarily.

Fix :

This usually occurs when /tmp runs out of space. You can check the space by using the following command:

[email protected]# df -h

Couple of tips to clear some space in /tmp :

1. Check and remove older session files.

[email protected]# rm -f /tmp/sess*

2. Get rid of semaphores.

[email protected]# ipcs -s | grep nobody | perl -e ‘while () { @a=split(/s+/); print `ipcrm sem $a[1]`}’

Contact Us On WhatsApp