In our deployed environment, we find that daphne does not always bind to the unix socket correctly. Cases where I've seen it not bind:
For now we are reverting to using ports, but if unix sockets would work more reliably, we'd switch back (and prefer to switch back) in the future.
We are running daphne via supervisord in a debian-based docker container (python-2.7).
Daphne just uses the Twisted endpoint syntax to listen to a UNIX socket, so it's possible there's a cleanup step from that we're missing, or that's it's a bug in the Twisted endpoint core. This will need some investigation.
Closing due to age and rewrite of the code involved - if this is still an issue, please re-open it on the Daphne issue tracker.
Just came across this problem, also in docker. Deleting the files is a workaround.
Most helpful comment
Just came across this problem, also in docker. Deleting the files is a workaround.