V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dafuyang
V2EX  ›  问与答

小白求助,gunicorn 部署 Flask 服务,gunicorn 的日志经常报 socket 的错误

  •  
  •   dafuyang · Mar 2, 2021 · 1510 views
    This topic created in 1882 days ago, the information mentioned may be changed or developed.

    [2021-03-02 14:23:21 +0800] [22921] [ERROR] Socket error processing request. Traceback (most recent call last): File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 65, in handle util.reraise(*sys.exc_info()) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/util.py", line 625, in reraise raise value File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 48, in handle req = next(parser) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/parser.py", line 41, in next self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 186, in init super().init(cfg, unreader) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 53, in init unused = self.parse(self.unreader) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 235, in parse self.headers = self.parse_headers(data[:idx]) File "/usr/bin/python3/lib/python3.7/site-packages/gunicorn/http/message.py", line 73, in parse_headers remote_addr = self.unreader.sock.getpeername() OSError: [Errno 107] Transport endpoint is not connected

    但是业务又没影响,请问是什么问题呢?强迫症看着很不爽。。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:22 · PVG 16:22 · LAX 01:22 · JFK 04:22
    ♥ Do have faith in what you're doing.