0👍
The problem is in your configuration file. Section [program:frnd_django]
doesn’t have key socket
. Instead you need to use [fcgi-program:frnd_django]
section that allows to configure sockets for your daphne workers. For more information check the docs here.
So, those key/value pairs in your config that are not recognized are perhaps just ignored (no syntax error). And because of that supervisor doesn’t create a socket for the daphne process before splitting it. Then, daphne throws an error [Errno 88] Socket operation on non-socket
. There is a note about this error in Channels docs here.
Source:stackexchange.com