[Triage] 24.1.0 fails to start with error #3456
Closed
sfc-gh-ckite
started this conversation in
Issue Triage
Replies: 1 comment
-
|
Thanks for the report. I created a ticket for it #3458 . The latest version added support for CIDR , applying a pull requets). This change should have been abckward compatible. Fix is coming. Thanks for the report. Note thate the native gunicorn asgi worker support latets format and it should be straightforward to use it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Type
Bug Report
Description
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 641, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.11/site-packages/uvicorn/workers.py", line 75, in init_process
super().init_process()
File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 143, in init_process
self.run()
File "/usr/local/lib/python3.11/site-packages/uvicorn/workers.py", line 107, in run
return asyncio.run(self._serve())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.11/site-packages/uvicorn/workers.py", line 102, in _serve
await server.serve(sockets=self.sockets)
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve
await self._serve(sockets)
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 77, in _serve
config.load()
File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 471, in load
self.loaded_app = ProxyHeadersMiddleware(self.loaded_app, trusted_hosts=self.forwarded_allow_ips)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 25, in init
self.trusted_hosts = _TrustedHosts(trusted_hosts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 95, in init
if "/" in host:
^^^^^^^^^^^
File "/usr/local/lib/python3.11/ipaddress.py", line 741, in contains
if self._version != other._version:
^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute '_version'
'str' object has no attribute '_version'
24.0.0 works fine, but 24.1.0 dies on startup with this error.
Steps to Reproduce (for bugs)
No response
Configuration
No response
Logs / Error Output
No response
Gunicorn Version
gunicorn 24.1.0
Python Version
Python 3.11
Worker Class
sync (default)
Operating System
python:3.11-slim Docker image
Additional Context
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions