Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages

Help for owners

My server ran out of disk space and the website is down

Short answer

When a server's disk is full, programs cannot write files, so the database, logs and the website itself can stop. The common causes are growing logs, old backups, uploaded files and database temp files. Do not delete anything you do not recognise; get someone to look at what is using the space.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • The website shows errors or will not save anything.
  • Logins or orders fail with no clear message.
  • The host sends an email about disk usage.
  • The database stopped and will not start.

Why does this happen?

  1. Log files grow without limit

    Without rotation, web server and application logs keep growing until they fill the disk.

  2. Backups and old copies pile up

    Backups kept on the same disk as the site take space every day, and old ones are rarely removed.

  3. The database needs working space

    A database writes temporary files while it runs large queries, and it stops when there is no room.

  4. Containers and uploads

    Docker images, old builds and user uploads can fill a disk quietly.

What can I do about it today?

  1. Do not delete files you do not recogniseDeleting the wrong folder can destroy the database or the site, and it cannot be undone.
  2. Look in your hosting panelMany panels show the disk size and usage. Take a screenshot.
  3. Ask your host about a bigger diskA larger disk is often a safe first step, since it adds room without removing anything. Ask whether it can be done without downtime.
  4. Stop uploads if you canIf your site lets users upload files, pause the uploads feature or tell staff not to add large files until it is fixed.
  5. Get a snapshot before any cleanupAsk the host for a snapshot or backup of the server before anybody deletes anything.

When should I bring someone in?

  • The site or database is already down.
  • You do not know what is using the space.
  • It has happened before.

How do I handle it?

  1. Take a snapshotBefore I touch the server I take a snapshot so there is a way back.
  2. Measure what uses the spaceI list the largest folders and files, and I tell you what each is.
  3. Free space safelyI clear old logs and caches I can identify, and move backups off the server.
  4. Stop it returningI set up log rotation and a disk alert, and write down a short routine for what must be checked.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Will I lose data?

Not if the cleanup is done carefully and after a snapshot. The danger is in deleting by guesswork.

Is a bigger disk the answer?

It buys time. If logs or backups grow without limit, the new space fills too, so I fix the cause as well.

How do I know it will not happen again?

I set a disk usage alert, so you hear about it long before the disk is full.

How was this page made?

I drafted this page with AI assistance. It is general guidance for business owners, not advice for your own system. Found a mistake? Tell me.

For your developer: the technical fixes

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.