No usable temporary directory found

后端 未结 9 1643
迷失自我
迷失自我 2020-12-14 05:51

I am trying to find a temp directory , but when i am trying to get the directory using

tempfile.gettempdir()

it\'s giving me error of

9条回答
  •  执念已碎
    2020-12-14 06:11

    Problem can also occur if inode are full.

    You can type df -i

    # df -i
    Filesystem      Inodes   IUsed  IFree IUse% Mounted on
    udev            253841     322 253519    1% /dev
    tmpfs           255838     430 255408    1% /run
    /dev/xvda1     5120000 5120000      0  100% /
    tmpfs           255838       1 255837    1% /dev/shm
    tmpfs           255838       7 255831    1% /run/lock
    tmpfs           255838      16 255822    1% /sys/fs/cgroup
    tmpfs           255838       4 255834    1% /run/user/1000
    

提交回复
热议问题