Question

PHP ERROR - Message: fopen(/var/lib/php/sessions/..): failed to open stream: No space left on device

Hi,

I have gone through the community posts and still I face this Message: fopen(/var/lib/php/sessions/ci_sessiond0v4i5qeugpm0t9qodulbij3aoabot4b): failed to open stream: No space left on device issue persists.

Output for df -h

Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 798M 636K 798M 1% /run /dev/vda1 155G 82G 74G 53% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda15 105M 3.6M 101M 4% /boot/efi tmpfs 798M 0 798M 0% /run/user/0

I still have space available, so that is not the issue. I have also gone through this post .

This error comes frequently, if I refresh then it might work for sometime. Then the same issue pops up again. Please help me resolve this, as this is affecting the user experience a lot.

Framework used - Codeigniter

Regards

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

This comment has been deleted

Hello,

It sounds like that your Inodes might be full. Try running the df command but with -i argument:

df -i

This usually happens when you have a huge number of really small files, that way you would still have space available but no available inodes.

Let me know how it goes! Regards, Bobby