问题解决了,访问这个链接时,查看了 gunicorn 的运行日志,出现了这样的错误信息:
---------------------------------------
Traceback (most recent call last):
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/
sync.py", line 108, in handle_request
resp.write_file(respiter)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
wsgi.py", line 333, in write_file
self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
wsgi.py", line 310, in sendfile_all
sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
_sendfile.py", line 66, in sendfile
raise OSError(e, os.strerror(e))
OSError: [Errno 11] Resource temporarily unavailable
ERROR:gunicorn.error:Error handling request
Traceback (most recent call last):
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/
sync.py", line 108, in handle_request
resp.write_file(respiter)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
wsgi.py", line 333, in write_file
self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
wsgi.py", line 310, in sendfile_all
sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/
_sendfile.py", line 66, in sendfile
raise OSError(e, os.strerror(e))
OSError: [Errno 11] Resource temporarily unavailable
---------------------------------------
把 gunicorn 版本升级到 19.3.0 就解决了