Skip to content

ValueError: Unknown endpoint type: 'fd' - Daphne 4.2.0 #557

Open
@d3al

Description

@d3al

Deployed our project today and got this error. Daphne was updated 5 hours ago so we rolled it back to 4.1.2 and the issue went away.

Deployed in docker python3.10 image, ubuntu 22.04 host, tried 4.2.0 again and got the error. I also did a full update and rebooted to make sure the machine was current.

This is our launch command initiated from supervisor. This hasn't changed in years.

command=/opt/services/djangoapp/src/.venv/bin/daphne -u /run/daphne/daphne%(process_num)d.sock --fd 0 --access-log - --proxy-headers project.asgi:application

2025-05-16 19:25:02,473 INFO     Starting server at fd:fileno=0, unix:/run/daphne/daphne0.sock
2025-05-16 19:25:02,473 INFO     HTTP/2 support enabled
2025-05-16 19:25:02,473 INFO     Configuring endpoint fd:fileno=0
Traceback (most recent call last):
  File "/opt/services/djangoapp/src/.venv/bin/daphne", line 8, in <module>
    sys.exit(CommandLineInterface.entrypoint())
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/daphne/cli.py", line 171, in entrypoint
    cls().run(sys.argv[1:])
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/daphne/cli.py", line 291, in run
    self.server.run()
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/daphne/server.py", line 130, in run
    ep = serverFromString(reactor, str(socket_description))
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/twisted/internet/endpoints.py", line 1844, in serverFromString
    nameOrPlugin, args, kw = _parseServer(description, None)
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/twisted/internet/endpoints.py", line 1764, in _parseServer
    plugin = _matchPluginToPrefix(
  File "/opt/services/djangoapp/src/.venv/lib/python3.10/site-packages/twisted/internet/endpoints.py", line 1779, in _matchPluginToPrefix
    raise ValueError(f"Unknown endpoint type: '{endpointType}'")
ValueError: Unknown endpoint type: 'fd'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions