IOError: No space left on device - which device?

前端 未结 4 1231
走了就别回头了
走了就别回头了 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

    Try df -i , maybe there are no free inodes.

    EDIT:

    another option, find werkzeug pid, let it be 777,

    • run strace -p 777 &> /tmp/strace_log
    • try to upload a file
    • stop strace
    • find that No space left on device message, it will be like write(1, "blah blah ..."..., 57) = -1 ENOSPC (No space left on device) first argument to write is a file descriptor
    • go up and try to locate specific open(... = X syscall , that X is a file descriptor that will fail in "write" syscall step

    Pretty cumbersome, I know, but that's debugging.

提交回复
热议问题