Amazon + Django each 12 hours appears that [Errno 5] Input/output error

后端 未结 3 2590
臣服心动
臣服心动 2021-02-20 15:37

I recently setup and deploy an Amazon EC2 instance for deploy my django project.

I was interacting with my application via browser when I get this error in the browser:

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 16:39

    some possible causes and suggestions for this problem.

    Causes:

    1. circular references
    2. hard disk bad sector error
    3. complex process, user, network, permission and other raise mixed error

    Suggestions:

    1. use logging replace print, it is best way!!!
    2. redirect IO to a file or to null: python test.py > test.log 2>&1 &, python test.py > /dev/null 2>&1 &

提交回复
热议问题