eventlet 0.24.1是否与任何其他配置不兼容?

2024-05-12 23:54:14 发布

您现在位置:Python中文网/ 问答频道 /正文

前面的问题在这里:The web-app is crashed when I deployed to Heroku but nothing is changed in the code

所有配置,请参见前面的问题

在我将eventlet从0.21.0更新到0.24.1之后,下面发生了错误。eventlet 0.24.1是否与任何其他配置不兼容

或者这是什么问题

$ heroku logs --tail --app main_project
(node:11006) ExperimentalWarning: The fs.promises API is experimental
 ���    heroku-cli: update available from 6.12.8 to 6.99.0-ec9edad
2019-11-26T13:17:40.891103+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 387, in sendfile
2019-11-26T13:17:40.891105+00:00 app[web.1]:     sent += os.sendfile(sockno, fileno, offset + sent, count)
2019-11-26T13:17:40.891107+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.891109+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.891111+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.891113+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.891115+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.891118+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.891120+00:00 app[web.1]:   [Previous line repeated 912 more times]
2019-11-26T13:17:40.891176+00:00 app[web.1]: RecursionError: maximum recursion depth exceeded
2019-11-26T13:17:40.901002+00:00 app[web.1]: [2019-11-26 13:17:40 +0000] [9] [ERROR] Error handling request
2019-11-26T13:17:40.901005+00:00 app[web.1]: Traceback (most recent call last):
2019-11-26T13:17:40.901008+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 111, in handle_request
2019-11-26T13:17:40.901010+00:00 app[web.1]:     resp.write_file(respiter)
2019-11-26T13:17:40.901012+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 397, in write_file
2019-11-26T13:17:40.901013+00:00 app[web.1]:     if not self.sendfile(respiter):
2019-11-26T13:17:40.901015+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 387, in sendfile
2019-11-26T13:17:40.901017+00:00 app[web.1]:     sent += os.sendfile(sockno, fileno, offset + sent, count)
2019-11-26T13:17:40.901019+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.901021+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.901023+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.901025+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.901027+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.901029+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.901031+00:00 app[web.1]:   [Previous line repeated 912 more times]
2019-11-26T13:17:40.901067+00:00 app[web.1]: RecursionError: maximum recursion depth exceeded
2019-11-26T13:17:40.918234+00:00 app[web.1]: [2019-11-26 13:17:40 +0000] [9] [ERROR] Error handling request
2019-11-26T13:17:40.918238+00:00 app[web.1]: Traceback (most recent call last):
2019-11-26T13:17:40.918254+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 111, in handle_request
2019-11-26T13:17:40.918256+00:00 app[web.1]:     resp.write_file(respiter)
2019-11-26T13:17:40.918258+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 397, in write_file
2019-11-26T13:17:40.918260+00:00 app[web.1]:     if not self.sendfile(respiter):
2019-11-26T13:17:40.918262+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 387, in sendfile
2019-11-26T13:17:40.918264+00:00 app[web.1]:     sent += os.sendfile(sockno, fileno, offset + sent, count)
2019-11-26T13:17:40.918265+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.918267+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.918269+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.918271+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.918273+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 32, in _eventlet_sendfile
2019-11-26T13:17:40.918275+00:00 app[web.1]:     return os.sendfile(fdout, fdin, offset, nbytes)
2019-11-26T13:17:40.918277+00:00 app[web.1]:   [Previous line repeated 912 more times]
2019-11-26T13:17:40.918278+00:00 app[web.1]: RecursionError: maximum recursion depth exceeded
2019-11-26T13:17:40.919734+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/imgs/sample.png" host=main_project.herokuapp.com request_id=05b57afb-de68-4a10-bc7d-acd752512b1c fwd="70.164.46.15" dyno=web.1 connect=1ms service=56ms status=503 bytes= protocol=https
2019-11-26T13:17:40.882508+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/js/ext/jquery-extensions.js" host=main_project.herokuapp.com request_id=be1c1bca-44c4-4220-b312-f9e722a5f3d9 fwd="70.164.46.15" dyno=web.1 connect=0ms service=29ms status=503 bytes= protocol=https
2019-11-26T13:17:40.901887+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/css/provider_video.css" host=main_project.herokuapp.com request_id=ee867669-b721-4e91-b0bf-151bc28f9364 fwd="70.164.46.15" dyno=web.1 connect=0ms service=52ms status=503 bytes= protocol=https
2019-11-26T13:17:40.778743+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/imgs/sample.svg" host=main_project.herokuapp.com request_id=691bdd85-3515-40d1-bb32-69294c87fbe8 fwd="70.164.46.15" dyno=web.1 connect=0ms service=22ms status=503 bytes= protocol=https
2019-11-26T13:17:40.892685+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/js/ext/jquery-ui.min.js" host=main_project.herokuapp.com request_id=df473aa6-df8d-4a27-9642-66be75b5838f fwd="70.164.46.15" dyno=web.1 connect=1ms service=42ms status=503 bytes= protocol=https
2019-11-26T13:17:40.842326+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/js/ext/jquery.min.js" host=main_project.herokuapp.com request_id=e40552ae-17bf-4778-93ed-55c58595b183 fwd="70.164.46.15" dyno=web.1 connect=0ms service=24ms status=503 bytes= protocol=https
2019-11-26T13:17:40.970404+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/js/ext/jquery-extensions.js" host=main_project.herokuapp.com request_id=a62c7b3e-f59f-4973-8776-b0fbd20412d5 fwd="70.164.46.15" dyno=web.1 connect=0ms service=19ms status=503 bytes= protocol=https

程序文件是

web: gunicorn --worker-class eventlet -w 1 main:app

请帮我回答这个问题,非常感谢


Tags: inpyappherokuoslibpackagesline