添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Error while closing socket [Errno 9] Bad file descriptor #184

@camilonova

Description

I did deployed using gunicorn and django and I'm getting a lot of this:

Aug 28 16:22:17 systemd[1]: Reloading gunicorn daemon.
Aug 28 16:22:17 systemd[1]: Reloaded gunicorn daemon.
Aug 28 16:22:17 gunicorn[738]: [2018-08-28 16:22:17 -0500] [738] [INFO] Handling signal: hup
Aug 28 16:22:17 gunicorn[738]: [2018-08-28 16:22:17 -0500] [738] [INFO] Hang up: Master
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1418] [INFO] Booting worker with pid: 1418
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1417] [INFO] Booting worker with pid: 1417
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:17 -0500] [1416] [INFO] Booting worker with pid: 1416
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1419] [INFO] Booting worker with pid: 1419
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1209] [INFO] Error while closing socket [Errno 9] Bad file descriptor
Aug 28 16:22:18 gunicorn[738]: /usr/local/lib/python3.6/dist-packages/daphne/server.py:12: UserWarning: Something has already installed a non-asyncio Twisted reactor. Attempting to uninstall it; you can fix this warning by importing daphne.server early in your codebase or finding the package that imports Twisted and importing it later on.
Aug 28 16:22:18 gunicorn[738]:   UserWarning,
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1210] [INFO] Error while closing socket [Errno 9] Bad file descriptor
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1210] [INFO] Worker exiting (pid: 1210)
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1209] [INFO] Worker exiting (pid: 1209)
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1211] [INFO] Error while closing socket [Errno 9] Bad file descriptor
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1211] [INFO] Worker exiting (pid: 1211)
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1212] [INFO] Error while closing socket [Errno 9] Bad file descriptor
Aug 28 16:22:18 gunicorn[738]: [2018-08-28 16:22:18 -0500] [1212] [INFO] Worker exiting (pid: 1212)

Also it takes a solid 10 to 20 seconds to respond for the first time. When I use the --preload flag the time goes down to 1-3 seconds but it does not work well. The same error happens with or without the preload flag.

I'm using v0.3.2