Fixing Environment: Error - No space left on device Error

Please note that this will not give you more disk space, this will increase your TEMP storage size, which is what causes this error message. This temporary storage is stored within your container.

Prerequisites:

  • PYTHON Server

Directions:

On the PYTHON server, follow these steps:

Create a new directory, in the home/container directory, named TEMP

If your issue is occurring whilst running PIP to install requirements.txt, use:

pip3 install --cache-dir="$HOME/TEMP/" -r requirements.txt

If your issue is occurring whilst running code, you need to export the TEMP directory, using:

export TMPDIR=$HOME/TEMP

Please note that the TMPDIR export will be wiped on reboot.

Making the TMPDIR permanent:

create a file, named run.sh and set its contents to:

export TMPDIR=$HOME/TEMP

# replace this comment (this line) with your current Startup Command

Then set your Startup Command in the Startup category to bash run.sh

Note:

Splitting up your requirements.txt file also helps out if you're getting this error whilst installing PIP packages.

Note:

Make sure your run.sh is in a directory which can reach any file listed in your Startup Command written to this file.

Note:

Thank you to alphaspiderman (212992967462486016) for creating this guide on the Python Support channel.

Danbot Host
DanBot Hosting Docs is coded by our Dev team and updated by staff members