Report this

What is the reason for this report?

Error In Php file

Posted on August 15, 2018

I got this issue please help me…

A PHP Error was encountered Severity: Warning Message: fopen(/var/lib/php/sessions/ci_sessionbjsk3ii2igj14muuc5t9p4t8k7d0buvh): failed to open stream: No space left on device Filename: drivers/Session_files_driver.php Line Number: 172

A PHP Error was encountered Severity: Warning

Message: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions)

Filename: Unknown

Line Number: 0

Backtrace:



This textbox defaults to using Markdown to format your 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.

Hey,

Could you run for us df -h and df -i and paste the output?

Hello, all

You can examine the disk space usage and delete any data which is not crucial to your application or website. What is the output of the following command:

  1. df -h

Also, I could suggest following the steps from this answer here on how to find the folders that are using the most disk space:

https://www.digitalocean.com/community/questions/28-no-space-left-on-device-error

The other option will be to resize the droplet. You can check this article on how to resize your droplet:

https://docs.digitalocean.com/products/droplets/how-to/resize/

Hope that this helps! Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.