Get your free beta license ↗
Panel and server · Linux quota

A site cannot save files

Last updated 30 Nov 2026
Summary

A site fails to save uploads or files, and PHP logs possibly out of free disk space while the server still has room. The customer has reached their Linux quota, and freeing space or raising the limit lets the site save files again.

Symptoms

Uploads fail or files are cut short. Check the domain's PHP log with urbestack-domain-log --name example.com --type php. It shows the following warning.

Output
PHP Warning:  file_put_contents(): Only 4194304 of 8000000 bytes written, possibly out of free disk space in /home/USER/files/web/example.com/public_html/q.php on line 1

df -h shows plenty of free space on the server.

Cause

The customer reached their package's disk limit. The limit counts everything in their home folder, including sites, mail, and files.

Files deleted in the web interface's file manager go to its Trash at /home/USER/files/.trash for 30 days. They still count toward the limit while they are there.

Resolution

  1. Check how much disk space the customer uses against their limit.

    urbestack-disk-usage --name USER
  2. Free space by emptying the Trash in the file manager or deleting files the customer no longer needs.

  3. You can also raise the package's limit for every customer on it.

    urbestack-package-set --name PACKAGE --disk-mb 20480
  4. To raise the limit for this customer by moving them to a larger package, run the following command.

    urbestack-user-set --name USER --package PACKAGE