MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Dipak Bhoi on April 08, 2014, 10:57:47 PM

Title: Warning: session_start(): open(/tmp/sess44, O_RDWR) failed: No space left
Post by: Dipak Bhoi on April 08, 2014, 10:57:47 PM
Hi guys,

When accessing the WordPress site showing an error like as bellow :-

Quote
Warning: session_start(): open(/tmp/sess_e90cd8d93e27dd54644, O_RDWR) failed: No space left on device (28) in /home/dipak/public_html/wp-content/plugins/dipak-contact-form/dipakcontactform.php on line 10

Website is showing this error due to no space left in your session storage directory. Generally it is /tmp directory. Directory /tmp store the all session files. Then check the disk size of /tmp directory. To check follow the following commands.

Quote
[root@server]# df -h

Please check the output of command.

Quote
Filesystem            Size    Used  Avail  Use% Mounted on
/dev/sda5                         139G   75G    57G  58%   /
/dev/sda3                         2.0G   1.9G      0  100%   /tmp
/dev/sda1                       190M   18M  163M  10%  /boot
tmpfs                               2.0G     0       2.0G   0%   /dev/shm

In above output it shows that the /tmp partition has been 100% full. To Find and remove the unnecessary files run the below commands.

Quote
[root@server]#cd /tmp
[root@server /tmp]#find -type f -exec rm -f {} \;

This command find the unnecessary executable files and deletes them from /tmp directory. Now WordPress site should working fine.

Enjoy !!!