Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Server out of disk space: why uploads and sessions fail

OPS-072High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every server has a fixed amount of storage. When it fills up, anything that needs to write a file fails. That includes saving an uploaded image, creating a PHP session file, writing a log line, caching a page, or letting the database write to its data files.

Two kinds of full exist. Space full: no free bytes left. Inodes full: the disk has room, but you have run out of file entries (inodes), which happens when millions of tiny files pile up, such as session or cache files. Both give the same symptom: No space left on device.

On shared hosting you may instead hit a quota, a per-account storage cap set by your host. The effect is the same, and the message is often Disk quota exceeded.

Why it costs you leads or sales

The site often still loads, so nobody notices. But the parts that capture money quietly break: a form that stores entries in the database or sends mail through a local queue may fail, a login or cart that relies on session files may reset, and a checkout may not save the order. Visitors see a generic error or a form that does nothing, and leave.

How a full disk breaks a lead form
  1. Visitor opens pagePage loads from cache or read-only files
  2. Fills in formSession file cannot be created
  3. Submission savedDatabase or file write fails
  4. Email and CRMNothing is sent

The page loads fine, but the write step fails, so the lead is never stored or sent.

Leads saved as the disk fillsExample numbers
Leads saved as the disk fills (example)Disk 70% full: 20 leads per day; Disk 95% full: 16 leads per day; Disk 100% full: 2 leads per day081520162Disk 70% fullDisk 95% fullDisk 100% fullleads per day

Example: illustrative numbers for a site that normally gets 20 leads a day. Once the disk is full, most submissions fail.

How to check if your site has it

Look for the signs first, then confirm on the server.

Common signs
  • Image or file uploads fail with a generic error
  • Logins, carts or multi-step forms reset between pages
  • Form submissions do nothing or show an error
  • Error logs contain No space left on device or Disk quota exceeded
  • The database stops with write errors or crashes
  • WordPress says it cannot create a directory or move an uploaded file

If you have SSH (command line) access, run these commands.

Check free space, free inodes and the biggest foldersbash
# Free space per disk
df -h

# Free inodes (file entries) per disk
df -i

# Biggest folders in the web root (adjust the path)
sudo du -xh /var/www --max-depth=2 | sort -rh | head -20

# Biggest folders on the whole disk
sudo du -xh / --max-depth=2 2>/dev/null | sort -rh | head -20

# Files over 500 MB
sudo find / -xdev -type f -size +500M -exec ls -lh {} + 2>/dev/null

Look for a Use% of 100% in df -h or IUse% of 100% in df -i. On shared hosting without SSH, check the disk usage or quota page in your hosting control panel (for example cPanel's Disk Usage tool).

How to fix it

Free space and get the site writing again
  1. Take a backup or snapshot first

    Before deleting anything, make sure you can recover. If the host offers snapshots, take one.

  2. Find what is using the space

    Use the du commands above or your control panel's disk usage tool. Usually a few folders account for most of it.

  3. Clear safe-to-delete items

    Typical culprits: huge log files, old backups stored on the same server, cache folders, stale PHP session files, temp files and unused staging copies.

  4. Rotate and cap logs

    Make sure logrotate is set up for web server, PHP and application logs so they are compressed and deleted after a set period.

  5. Move backups and media off the server

    Send backups to separate storage and consider offloading large media files to object storage or a CDN.

  6. Add space if you genuinely need it

    If the data is all legitimate, resize the disk or upgrade the hosting plan.

  7. Restart services if they stopped

    A database or web service may have crashed when the disk filled. Restart it once space is free and check it starts cleanly.

Common safe clean-up commands (review before running)bash
# See how large the systemd journal is, then trim it
journalctl --disk-usage
sudo journalctl --vacuum-size=200M

# Clear the apt package cache (Debian/Ubuntu)
sudo apt-get clean

# See large log files
sudo du -sh /var/log/* | sort -rh | head

# Empty (not delete) a runaway log file
sudo truncate -s 0 /var/log/example-huge.log
Platform-specific clean-up
  1. Check wp-content

    Run du -sh wp-content/*. The uploads, cache and backup plugin folders (for example wp-content/updraft or ai1wm-backups) are common space hogs.

  2. Delete old backups and cache

    Remove old backup archives stored locally and purge your caching plugin's cache from its settings page.

  3. Check debug.log

    A wp-content/debug.log file can grow to gigabytes. Delete it and set WP_DEBUG_LOG to false in wp-config.php.

How to confirm it's fixed

Verification
  • df -h and df -i show comfortable free space (aim for at least 20% free)
  • Upload a test image through your site's admin
  • Submit your real contact form and check that the email arrives and the entry is saved
  • Add a product to the cart and move between pages without it emptying
  • The error log shows no new No space left on device lines
  • Your database service is running and accepting writes

How to prevent it happening again

How a disk quietly fills up
  1. Month 1

    Logs and backups start growing with no rotation

  2. Month 4

    Disk passes 90%. Nothing looks wrong to visitors

  3. Month 5

    Disk hits 100%. Uploads, sessions and forms start failing

  4. Weeks later

    Someone notices the drop in leads, or a customer complains

Prevention
  • Set an alert at 80% disk usage and another at 90% in your host or monitoring tool
  • Configure logrotate for web server, PHP and app logs
  • Store backups off the server and delete old ones automatically
  • Clean up expired PHP sessions (most distros do this by default, check yours)
  • Review disk usage monthly, and before big campaigns or imports
  • Keep staging sites and old copies off the production disk

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It does not read your server's disk, so it cannot tell you that the disk is 92% full or warn you early. It only sees the effect: when a full disk makes a journey step fail, such as a form submission that errors, a button that does nothing or a checkout step that breaks, the step shows up as failed.

When that happens, FunnelGuard re-checks from a second region, then sends one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause. It will not name a full disk as the cause for certain, because many things produce the same failed step.

Frequently asked questions

Questions people ask

Why are my uploads failing with no error?

A full disk or exceeded quota is a common cause. The server cannot write the uploaded file, so the upload stops. Run df -h and df -i, or check your host's disk usage page, and also rule out file size limits such as upload_max_filesize.

How do I check disk space on my web server?

Connect over SSH and run df -h to see free space and df -i to see free inodes. Then use du -xh / --max-depth=2 | sort -rh | head to find the biggest folders. On shared hosting, use the disk usage tool in your control panel.

What does 'No space left on device' mean?

It means the server cannot write any more data because the disk is out of space or out of inodes (file entries). Free up space or inodes by removing old logs, backups, cache and session files, or add more storage.

Can a full disk make my cart or login reset?

Yes. If sessions are stored as files on disk, a full disk stops new session files being created or updated. Visitors then appear logged out or lose their cart between pages.

Why is my disk full but df shows free space?

You may have run out of inodes rather than bytes. Run df -i to check. Millions of tiny session or cache files can use every inode while leaving space free. Delete the old small files to recover.

Is it safe to delete log files to free space?

Usually yes, but empty them with truncate -s 0 rather than deleting a file a service still has open, and keep recent logs if you need them for debugging. Never delete database data files.

Can FunnelGuard tell me my server disk is full?

Not directly. FunnelGuard does not read server disk usage. It detects the effect, when a form, button or checkout step fails, and alerts you with a screenshot and a likely cause. Use a disk alert from your host for early warning.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Visible only as failed steps.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.