Skip to main content
All CollectionsKnowledge BaseBitrise infrastructure
java.io.IOException: No space left on device
java.io.IOException: No space left on device
Updated over a week ago

Issue:

The build fails with the following error:

java.io.IOException: No space left on device

Possible solution:

All Bitrise VMs have 200GB of storage space. The preinstalled tools in the VM take up space and when combined with the space needed for your build, the VM may run out of space.

The tools that are preinstalled differ for each stack. If you run out of space, you may wish to try another stack to see if this resolves the issue.

If you are not able to change stacks, you can add a Script Step at the beginning of your workflow to uninstall the tools that you do not need.

Check the system report for the stack to see what tools are installed.

Here is an example:

#!/usr/bin/env bash
# fail if any commands fails
>set -e
sudo rm -rf /usr/local/share/android-sdk

Additional information

Did this answer your question?