Python causing: IOError: [Errno 28] No space left on device: '../results/32766.html' on disk with lots of space

前端 未结 6 677
北荒
北荒 2020-12-01 10:14

I am running a Python script that is causing the above error. The unusual thing is this script is running on a different machine and is having no problems.

The diff

6条回答
  •  日久生厌
    2020-12-01 11:10

    1. Show where memory is allocated sudo du -x -h / | sort -h | tail -40
    2. Delete from either your /tmp or /home/user_name/.cache folder if these are taking up a lot of memory. You can do this by running sudo rm -R /path/to/folder

    Step 2 outlines fairly common folders to delete from (/tmp and /home/user_name/.cache). If you get back other results when running the first command showing you have lots of memory being used elsewhere, I advise being a bit more cautious when deleting from those locations.

提交回复
热议问题