IOError: No space left on device - which device?

前端 未结 4 1236
走了就别回头了
走了就别回头了 2021-02-06 06:56

I\'m uploading a small file (8.5 Mb) to a flask test server.

When the file finishes uploading, the server reports:

    File \"/home/ubuntu/.virtualenvs/e         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 07:26

    @Tom Hunt's comment was on the right track.

    This unix SE answer explains what happened.

    As a protection against low disc space, some daemons automatically "shadows" the current /tmp/ dir with a ram disc if the the root partition runs out of disc space. Sadly there's no automatic reversion of that process once enough disc space is free again.

    I unmounted /tmp directory and followed Nitesh's suggestion:

    sudo umount /tmp
    sudo echo 'MINTMPKB=0' > sudo /etc/default/mountoverflowtmp
    

    and now uploads are working properly.

提交回复
热议问题