No usable temporary directory found

后端 未结 9 1631
迷失自我
迷失自我 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:01

    I got the same issue when there was no space on /.

    Issue:

    File "/usr/lib64/python2.6/tempfile.py", line 201, in _get_default_tempdir("No usable temporary directory found in %s" % dirlist))
    IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']  [FAILED] 
    

    [root@master hue]# df -h

    Filesystem Size Used Avail Use% Mounted on

    /dev/mapper/vg_master-lv_root

                 35G   34G     0 100%     /
    

    tmpfs
    7.8G 72K 7.8G 1% /dev/shm

    /dev/sda1
    477M 34M 418M 8% /boot

    When I cleared out some space then it worked fine for me.

    [root@master log]# service hue start

    Starting hue: [ OK ]

    [root@master log]#

提交回复
热议问题