Platform.sh is now Upsun. Click here to learn more
Upsun Fixed User Documentation

Troubleshoot disks

Try Upsun for 15 days
After that, enjoy the same game-changing Upsun features for less with the First Project Incentive!¹ A monthly $19 perk!
Activate your 15-day trial
¹Terms and conditions apply. Only for Flexible Resource projects.

For more general information, see how to troubleshoot development.

Exceeding plan storage limit Anchor to this heading

Professional plans come with a default amount of storage that you can change with your plan. The storage is allocated among your services and applications using the disk parameter in their configuration files.

You might accidentally set the sum of all disk parameters in the files to exceed your plans storage limit. For example, by setting disk: 4096 for a MySQL service in .platform/services.yaml and disk: 4096 in .platform.app.yaml for a plan with a 5 GB storage limit.

In such cases, you get an error like the following:

Error: Resources exceeding plan limit; disk: 8192.00MB > 5120.00MB; try removing a service, or add more storage to your plan

To fix the error, do one of the following:

Low disk space or inode exhaustion Anchor to this heading

Health notifications can alert you to low disk space, inode exhaustion (a file count limit), or both.

To help identify the cause, you can:

Deleting unnecessary files such as temporary files, logs, or build artifacts can free up disk space and inodes. If you know their origin, consider setting up automated cleanup to prevent recurrence.

If cleanup measures are insufficient, you can increase the allocated disk space.

Check your database disk space Anchor to this heading

If you receive a low disk space notification, the database might be a contributing factor.

To get an estimate of current database disk usage, run platform db:size. The estimate looks something like this:

+----------------+-----------------+--------+
| Allocated disk | Estimated usage | % used |
+----------------+-----------------+--------+
| 1.0 GiB        | 520.3 MiB       | ~ 51%  |
+----------------+-----------------+--------+

Try cleaning up unused data before increasing the allocated disk space.

Increase allocated disk space Anchor to this heading

If you find that your application or service is running out of disk space, available inodes, or both, you can increase the available storage.

To increase the space available for applications and services, use the disk keys in your .platform.app.yaml and .platform/services.yaml files. The sum of all disk keys can’t exceed the available storage in your plan.

If you need more storage to fit the sum of all disk keys, increase your plan’s storage limits. This can only be done by people with the manage plans permission.

No space left on device Anchor to this heading

During the build hook, you may see the following error:

W: [Errno 28] No space left on device: ...

This is caused by the disk limit on the build container — a temporary environment used to compile your app before deployment. The resulting image is restricted to 8 GB, no matter how much writable disk has been allocated for the deployed application.

Some build tools (yarn/npm) store cache for different versions of their modules. This can cause the build cache to grow over time beyond the maximum. Try clearing the build cache and triggering a redeploy.

If your application requires more than 8 GB during the build phase, you can open a support ticket to have this limit increased.