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

August 16, 2014 3.8k 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
3 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 another answer? Share your knowledge.