Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Mar 2026 16:27:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 293690] www/py-gunicorn: uvicorn workers fail to start in 25.1.0
Message-ID:  <bug-293690-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293690

            Bug ID: 293690
           Summary: www/py-gunicorn: uvicorn workers fail to start in
                    25.1.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: morganw@gmail.com
             Flags: maintainer-feedback?(bofh@freebsd.org)
          Assignee: bofh@freebsd.org

gunicorn sometimes fails to start uvicorn workers after update to 25.1.0.

- FastAPI application
- Python 3.13
- stripping down to minimal FastAPI app does not change results
- running uvicorn directly works (uvicorn app.main:app --port 5000)
- hypercorn works
- same code works on system with 25.0.3

Only reliable fix found so far is setting PYTHONASYNCIODEBUG=1.

Failed startup:
gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:5000 --log-level debug
app.main:app

[2026-03-09 10:38:17 -0500] [20403] [INFO] Starting gunicorn 25.1.0
[2026-03-09 10:38:17 -0500] [20403] [DEBUG] Arbiter booted
[2026-03-09 10:38:17 -0500] [20403] [INFO] Listening at: http://0.0.0.0:5000
(20403)
[2026-03-09 10:38:17 -0500] [20403] [INFO] Using worker:
app.worker.MyUvicornWorker
[2026-03-09 10:38:17 -0500] [20403] [INFO] Control socket listening at
/home/wmorgan/projects/webapi/gunicorn.ctl
[2026-03-09 10:38:17 -0500] [20403] [DEBUG] 1 workers
^C[2026-03-09 10:38:23 -0500] [20403] [INFO] Handling signal: int
[2026-03-09 10:38:53 -0500] [20403] [ERROR] Worker (pid:20404) was sent
SIGKILL! Perhaps out of memory?
[2026-03-09 10:38:53 -0500] [20403] [INFO] Shutting down: Master

Output from gunicornc:

gunicorn> show all
ARBITER (master)
  PID: 19919

WEB WORKERS (1)
  PID        AGE    BOOTED   LAST_BEAT
  --------------------------------------
  19920      1      no       -1773013024.03s ago

DIRTY ARBITER
  (not running)

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293690-7788>