Report this

What is the reason for this report?

🧨 fwrite(): write of 2268 bytes failed with errno=28 no space left on device

Posted on February 26, 2022

Hello, so my website was working just like about 1h ago, then I get clients spamming me that nothing is working. So I try to go to my site and I see this message

🧨 fwrite(): write of 2268 bytes failed with errno=28 no space left on device

I don’t know what to do, my developer is literally in the military right now for 6 weeks. And I don’t code, I don’t know anything about coding, and I’m freaking out because I have almost a thousand clients who are angry and want their services working.

I know some of them will start to do a chargeback, especially new ones, and a lot of chargebacks will make Paypal, stripe, and stuff suspecting you of something. I googled those writing and it seems like this issue happened to others and they said something about resyncing things, I don’t even know a single thing about coding.

My site is coded in… PHP with some SQL,(that’s all I know)

CAN ANYONE HELP ME FIX THIS? I AM WILLING TO PAY YOU $$/h to fix this. PLEASE GUY HELP ME, I’m literally crying right now, I’m extremely overwhelmed.



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.

This comment has been deleted

Hello,

It looks like your server has run out of disk space. What I could suggest is to upgrade your server and add some extra storage, you can do that directly via your DigitalOcean control panel by following the steps here:

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

This does not require any coding or technical skills.

Alternatively, if you want to get to the bottom of the problem and find out what is filling up the disk space, you can follow the steps from this answer here:

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

Let me know how it goes!

Best,

Bobby

The error message you provided, ā€œfwrite(): write of 2268 bytes failed with errno=28 no space left on deviceā€, suggests that your server has run out of disk space. When the disk is full, applications can’t write to the filesystem, which can cause various issues, including the one you’re experiencing.

Here are the steps to diagnose and address the issue:

Check Disk Usage: SSH into your server and use the df command to verify the disk usage:

df -h

This will show the amount of space used and available on each partition. If any partition, especially the root (/), is at 100% usage, then that’s the source of the issue.

Identify Large Files and Directories: To find which directories are consuming most of the space, you can use the du command. Here’s a way to list the size of top-level directories under /:

sudo du -h --max-depth=1 /

You can then drill down into directories that seem to be unusually large.

Clear Unnecessary Files:

  • Log Files: Log files can often consume a large amount of space. Check the /var/log directory and consider removing or compressing old logs.
  • Temporary Files: Clear out the /tmp directory.
  • Cache: If you use a system like apt for package management, you can clear out cached package files with:
sudo apt autoclean
sudo apt autoremove
    • Old Kernels: If you’re using a system that accumulates kernel updates, these can take up space. Be careful with removing these, but old unused kernels can be safely removed in most cases.
    • Databases: If you’re running a database server, it may have generated large binary logs or temporary tables. Check its configuration and consider cleanup or adjustments to prevent unbounded growth.
    • Backups: If you’re taking backups and storing them on the same disk, they can also occupy a lot of space. Consider moving them offsite or to a different storage medium.
  1. Expand Disk Space: If you find that even after cleanup, the space is insufficient, you might need to consider resizing your server’s disk or attaching additional storage, depending on your hosting provider’s offerings.

  2. Automate Monitoring: To prevent this from happening in the future, consider setting up monitoring and alerts for disk usage. There are many tools available that can notify you when disk space is getting low, giving you a chance to address the issue before it impacts your users.

Finally, once you’ve cleared up enough space, you might need to restart some services (or even the whole server) to resolve any issues caused by the lack of disk space.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.