I have a Django web application using a PostgreSQL 9.3 database, which occassionally throws the error:
File "/usr/local/my_site/.env/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/usr/local/my_site/.env/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) OperationalError: could not write block 2432320 of temporary file: No space left on device HINT: Perhaps out of disk space?
It's running on EC2/RDS and I can't find anything that's low on disk space. The EC2 instance has a 9GB drive that's only 38% in use. The RDS PostgreSQL database has 20GB of storage that's barely 1% in use. I thought this might be a low inode issue on the EC2 instance, but
df -i shows that is only 33% in use.
What would be causing this error?