How to debug gunicorn failure issues? (Worker failed to boot)

前端 未结 3 1729
醉酒成梦
醉酒成梦 2021-01-03 18:16

I have a Django web application that uses Gunicorn and runs good locally, but when I deploy app on EC2, I see that Gunicorn is failing:

 $ gunicorn_django -b         


        
相关标签:
3条回答
  • 2021-01-03 19:07

    You need --debug --log-level debug

    0 讨论(0)
  • 2021-01-03 19:19

    In my case I had to run gunicorn_django --bind example.com:8001 from the same folder as my manage.py file.

    0 讨论(0)
  • 2021-01-03 19:21

    Try running with --preload as an argument to gunicorn_django - it should show you the error the workers are having when starting. See this bug

    0 讨论(0)
提交回复
热议问题