Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.
Questions tagged [daphne]
259 questions
0
votes
1 answer
Nginx - Daphne deployment issue
I recently added a function utilizing WebSocket with Channels to Django web application and having some trouble. Since the Channels and WebSocket work just fine with the local test server (manage.py runserver), one can tell that the deployment part…

Chanwoo Ahn
- 334
- 2
- 13
0
votes
1 answer
Daphne. Access to Django defined objects
I am using Django and channels (for WebSockets).
Earlier, when I was developing, I created some objects in memory when a user does a request, and then websockets can use these objects.
After, I run the production server with ssl, and for testing, I…
0
votes
1 answer
Django Channels doesn't detect WebSocket request with NGINX
I am deploying a website on AWS. Everything works fine for HTTP and HTTPS. I am passing all requests to Daphne. However, incoming WebSocket connections are treated as HTTP requests by Django. I am guessing there is some header that isn't set in…

Si1veR
- 67
- 1
- 6
0
votes
1 answer
Daphne multi process exit working when running with supervisord. Set 4 process but only 1 keeps running
I've Daphne working with Supervisord.
Config is set to have 4 simultaneous processes but it happens 3 of them exit without explanation and only one keeps running properly.
I do have 2 CPUs.
Supervisord config is:
The output is:
Then I tried…

Federico Comesaña
- 91
- 1
- 7
0
votes
1 answer
Daphne on Elastic beanstalk - WebSocket handshake: Unexpected response code: 500
Following this guide https://medium.com/@elspanishgeek/how-to-deploy-django-channels-2-x-on-aws-elastic-beanstalk-8621771d4ff0 to set up a django app that uses websockets.
01_env.config
option_settings:
…

Filipe Aleixo
- 3,924
- 3
- 41
- 74
0
votes
0 answers
Elastic Beanstalk - Daphne is not serving static files
Following this guide https://medium.com/@elspanishgeek/how-to-deploy-django-channels-2-x-on-aws-elastic-beanstalk-8621771d4ff0 to set up a django project that uses websockets. Before I made the traffic go through Daphne, the static files were being…

Filipe Aleixo
- 3,924
- 3
- 41
- 74
0
votes
0 answers
Deploying Django channels with apache - No module named 'channels'
Getting a 500 Internal Server Error and find in the apache log that the channels module cannot be found.
Apache error log:
[Fri Jun 19 07:39:53.574508 2020] [wsgi:error] [pid 14184] [remote
79.160.57.239:48226] mod_wsgi (pid=14184): Failed to exec…

embe
- 1,094
- 2
- 11
- 25
0
votes
1 answer
Daphne + Django Channels gives error 503 on Heroku
I've been trying to make my Django Channels app work on Heroku for the past 2 days but can't seem to make it work. I recently couldn't even run the app but after some digging I managed to start it up. The app works fine on localhost. I went from…

Exilia
- 33
- 6
0
votes
1 answer
Daphne websocket erro r 200 when used with nginx
im trying to implement a system that comprise of nginx , daphne and gunicorn. So far , i have gotten gunicorn to work , however im facing an issue connecting the websockets for daphne. This issue does not arise when im in developing mode , only…

neowenshun
- 860
- 1
- 7
- 21
0
votes
2 answers
multi process Daphne with supervisor, getting [Errno 88] Socket operation on non-socket
daphne and Django channels work fine on command line or single process. But when I start it with supervisor, the error occurs.
2020-02-18 12:40:35,995 CRITICAL Listen failure: [Errno 88] Socket operation on non-socket
My config file is…

Sword Elucidator
- 105
- 4
0
votes
1 answer
Daphne server unable to handle http requests
I have a django application that I want to deploy using daphne.
Django application supports both websockets and http requests. I've converted the django to support ASGI.
I'm starting the server using :
daphne .asgi:application
The…

Harsh Pancholi
- 13
- 1
- 3
0
votes
2 answers
why django-daphne is not working with docker?
I have a local & production docker-compose services for my django app, in the local service all be right, but in the production service daphne not work, in the same the redis connection is equals and i'm not using a special network conf for my…
0
votes
0 answers
django-channels does not work with daphne on linux server
I'm using Django-eventstream over Django channels to send an event to my client app (react using eventstream),
on my local machine the events are sent correctly to the client.
but when I upload the app to my Linux server the webhook just getting…
0
votes
1 answer
How to debug django channels in production (nginx)?
django channels is working on both my local server and in the development server in my production environment; however, I cannot get it to respond in production nor can I get it to work with the following Daphne command (dojos is the project…

Adam S.
- 306
- 2
- 11
0
votes
1 answer
Unable to find cause of 403 Forbidden error: Nginx Daphne Django
I have had confirmation in another question that I can indeed run a Django app using only Nginx and Daphne and have modified my nginx config code as per their suggestion.
The application is running with Daphne on 127.0.0.1:8001
However, I am running…

Trilla
- 943
- 2
- 15
- 31