gunicorn.errors.HaltServer:<HaltServer'工作程序无法启动。' 3

时间:2019-12-15 05:37:42

标签: django ubuntu gunicorn

我遵循了此document,但遇到了此错误。你能让我知道我在想什么吗?我整天尝试了几件事,但没有任何效果?请告诉我您是否对此有任何解决方案?

$ sudo systemctl status gunicorn.socket
Failed to dump process list, ignoring: No such file or directory
● gunicorn.socket - gunicorn socket
   Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled)
   Active: active (listening) since Sun 2019-12-15 05:15:27 UTC; 17s ago
   Listen: /home/xx/myproject/myapp/myapp.sock (Stream)
   CGroup: /system.slice/gunicorn.socket

Dec 15 05:15:27 ubuntu-s-01 systemd[1]: Listening on gunicorn socket.


$ sudo systemctl status gunicorn.service
● gunicorn.service - gunicorn daemon
   Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-12-15 04:22:54 UTC; 53min ago
 Main PID: 15788 (code=exited, status=1/FAILURE)

Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     self.stop()
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File "/home/xx/myproject/xxenv/lib/python3.6/site-packages/gunicorn/arbi
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     time.sleep(0.1)
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File "/home/xx/myproject/xxkenv/lib/python3.6/site-packages/gunicorn/arbi
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     self.reap_workers()
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:   File "/home/xx/myproject/xxenv/lib/python3.6/site-packages/gunicorn/arbi
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]:     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Dec 15 04:22:54 ubuntu-s-01 gunicorn[15788]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Dec 15 04:22:54 ubuntu-s-01 systemd[1]: gunicorn.service: Main process exited, code=exited, status=1/FAILURE
Dec 15 04:22:54 ubuntu-s-01 systemd[1]: gunicorn.service: Failed with result 'exit-code'.

0 个答案:

没有答案