session_start(): open failed: No space left on device (28)

September 15, 2014 1.5k views

I occasionally receive this error on my sites.
I've checked the /tmp/ folder and it's not even close to full.

hero@vps [~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        30G   16G   13G  57% /
none            504M     0  504M   0% /dev/shm
/usr/tmpDSK     2.0G  587M  1.3G  31% /tmp

At the same time, some other site has the following error:
Fatal error: Call to a member function get() on a non-object in /home/memeflor/public_html/index.php on line 105

Sometimes they will just back to normal by itself. But the error will happen again some other times.
Does anyone have any advise on this?

Hero Wijayadi

1 comment
  • I notice that your Apache DocumentRoot is in the user's home directory /home/memeflor/public_html/ Are you using cPanel by any chance? If so, check to see if you have user quotas enabled.

1 Answer

Hi asb,
Yes I'm using WHM/CPanel.

If so, check to see if you have user quotas enabled.

Sorry I'm not to clear about this part. I do have packages (which include the disk quota and bandwidth limit) set for each user. And so what does this relate to my problem?
Could you please elaborate on this?

  • While your disk might not actually be full, if the user is hitting their disk space quota you will receive that same error.

  • I run /scripts/fixquotas to fix the "unlimited quota" problem and just realized that some of my accounts were exceeding the assigned quota.
    Nevertheless it didn't really solve the main problem. Since I already increased the corresponding quotas and still I encounter the same problem again this morning.
    Is there anything that I might be missing?

    Here's some screenshots of the error

    Note: Sometimes they just back to normal by itself, and then the error back again unpredictably.

Have another answer? Share your knowledge.