我运行一个命令行,在此处记录:
running: gunicorn -w 11 --worker-class socketio.sgunicorn.GeventSocketIOWorker --bind=127.0.0.1:8800 --access-logfile - --error-logfile - fbrealtime.wsgi:application
2014-08-03 19:15:20 [4047] [INFO] Starting gunicorn 19.1.0
2014-08-03 19:15:20 [4047] [INFO] Listening at: http://127.0.0.1:8800 (4047)
2014-08-03 19:15:20 [4047] [INFO] Using worker: socketio.sgunicorn.GeventSocketIOWorker
2014-08-03 19:15:20 [4052] [INFO] Booting worker with pid: 4052
2014-08-03 19:15:20 [4053] [INFO] Booting worker with pid: 4053
2014-08-03 19:15:20 [4052] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 193, in init_process
super(GeventWorker, self).init_process()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
self.run()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/src/gevent-socketio/socketio/sgunicorn.py", line 80, in run
**ssl_args
File "/home/luismasuelli/.virtualenvs/dj16fbrt/src/gevent-socketio/socketio/server.py", line 72, in __init__
address = args[0].cfg_addr[0]
AttributeError: 'socket' object has no attribute 'cfg_addr'
Traceback (most recent call last):
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 193, in init_process
super(GeventWorker, self).init_process()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
self.run()
File "/home/luismasuelli/.virtualenvs/dj16fbrt/src/gevent-socketio/socketio/sgunicorn.py", line 80, in run
**ssl_args
File "/home/luismasuelli/.virtualenvs/dj16fbrt/src/gevent-socketio/socketio/server.py", line 72, in __init__
address = args[0].cfg_addr[0]
AttributeError: 'socket' object has no attribute 'cfg_addr'
为什么我收到此错误?命令行是日志的第一行。我做错了吗?
这是一个django 1.6应用程序,带有gevent 1.0.1和gevent-socketio(git state:master 668d11edbd62052cde1583be1e1d0512c930f16d#)gevent-websocket 0.9.3和gunicorn 19.1.0。
显然,当我尝试在http://localhost:8800/
访问我的应用程序时,此错误不会影响但是:这是什么意思?这意味着什么?我该如何解决?