session_start() failed no space left on device (28)

Posted August 16, 2014 39.3k views

This morning I found that most of my sites are either blank or having some error message such as this:
Warning: sessionstart(): open(/tmp/sess8c125544dd7a170503b284e020e59e09, ORDWR) failed: No space left on device (28) in /home/betaedel/publichtml/system/library/session.php on line 11

Trying to googling around the web for answer, and apparently most people say about /tmp is full.
But from what I see here, it’s not really full yet
Device Size Used Available Percent Used Mount Point
/dev/vda1 30G 15G 14G 51% /
/usr/tmpDSK 1.2G 341M 795M 31% /tmp

Honestly I’m total newbie for the unix commands. I’m using Cpanel/WHM on CentOS 6.4, hoping that by Cpanel I dont have to deal much with console commands.
Any help or info is much appreciated.

Hero Wijayadi

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers

No one got any clue with this?
Based on some recommendation that I read, I already resized the /tmp/ size from the default 500MB to 2GB. But not sure if that’s really the cause of problem.

Hi, i got the same error today.
Go your php.ini settings. (If you’re using cpanel like me, go there: /root/php.ini.orig )

Change the following settings “off” to “on”

output_buffering = On

ssh to the server

rm -rf /tmp/*

crontab -e

0 0 * * * rm -rf /var/tmp/*

have you try to check your php session log?

I started deleting the session files in /tmp/ folder and now my site shows a DB connection error.  What should I do??