Questions tagged [daphne]

Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.

259 questions
0
votes
1 answer

ERR_TOO_MANY_REDIRECTS when I go to domain: Nginx, Daphne, Django, DigitalOcean

I'm running a Django Channels app on DigitalOcean, Ubuntu 16.04 using Daphne and Nginx. Followed this post. Nginx will only be used as a proxy for your django application, your django application will be running with daphne. And you should…
Trilla
  • 943
  • 2
  • 15
  • 31
0
votes
2 answers

Serving static files with Apache and Daphne

I'm trying to learn to use django-channels and have worked through both the tutorial and this multichat example. I am now trying to deploy it on a Digital Ocean droplet using Apache and Daphne. I have 2 issues: my static files are not getting used…
HenryM
  • 5,557
  • 7
  • 49
  • 105
0
votes
2 answers

How to fix django channels consumers stopping to handle messages send to groups

Sending messages to groups using group_send() suddenly stops working after some time. The handler method of the consumer is not called anymore. Restarting daphne is fixing the issue for some time. Details There is no error showing up anywhere in the…
JanMalte
  • 934
  • 6
  • 17
0
votes
1 answer

How to update python code and see changes live using daphne, Django Channels?

I just made some changes over 1 python file in my production server, then tested the changes using "runserver" command: python3 manage.py runserver 0.0.0.0:3031 The changes are done correctly, then I try to see the same changes in production but…
Led Machine
  • 7,122
  • 3
  • 47
  • 49
0
votes
0 answers

ASGI: Sentry errors appear to show mixed tracebacks from different requests

As of this week we are running our stack using python 3, django 2 and django channels 2. As this is an ASGI application we use a daphne server to handle both HTTP and websocket requests. So far we are really happy with the overall performance and…
LarsVegas
  • 6,522
  • 10
  • 43
  • 67
0
votes
2 answers

Channels websocket AsyncJsonWebsocketConsumer disconnect not reached

I have the following consumer: class ChatConsumer(AsyncJsonWebsocketConsumer): pusher = None async def connect(self): print(self.scope) ip = self.scope['client'][0] print(ip) self.pusher = await…
Mindfuucker
  • 31
  • 2
  • 6
0
votes
1 answer

How to config supervisor with Django channels and server daphne

I have a problem with my configuration supervisor, my file is in etc/supervisor/conf.d/realtimecolonybit.conf, When I try command supervisorctl reread, show me the "No config updates to processes" and when I try the other command like…
0
votes
1 answer

how to run app django channels with supervisor and gunicorn or daphne

I have a problem with my configuration from supervisor, my app is using django_channles well, when I run my app using of two codes below working well (myenv)/colonybit/colonybitbasics/python manage.py runserver 0.0.0.0:8000 or…
0
votes
0 answers

missing shutdown() traceback when TLS timeout only for HTTP/2

I ran into this issue during my testing of django-channels and daphne (but the issue is not exclusive to them). --- --- File "/Users/****/lib/python3.6/site-packages/twisted/internet/base.py", line 896, in runUntilCurrent …
notorious.no
  • 4,919
  • 3
  • 20
  • 34
0
votes
0 answers

Debian Nginx listening but not working

I have had a lot of trouble setting up Nginx for Django on Debian. I tried probably every nginx django conf file I could find on the internet but none of them worked, I assume I cant see the forrest for the trees... So I am running Django 2.0.4 and…
Aokiji
  • 50
  • 1
  • 1
  • 9
0
votes
0 answers

Daphne and Systemd: Pass file descriptors to children processes

I'm trying to run daphne 2.1 using multiprocessing. In the documentation I have: If you want to bind multiple Daphne instances to the same port on a machine, use a process supervisor that can listen on ports and pass the file descriptors to…
RicLeal
  • 923
  • 9
  • 23
0
votes
1 answer

How to get nginx to serve django admin css files from different port

So I know this question has been asked, but I am not sure if my initial setup is right. I have nginx running to serve my angular 5 files. I have daphne running to serve my channels and django code. But I am not sure how to get my static files from…
Dale
  • 352
  • 2
  • 15
0
votes
1 answer

Modify nginx config to reverse proxy websockets properly

Current nginx config: server { listen 443 ssl http2; server_name NAME www.NAME; charset utf-8; ssl on; ssl_certificate /etc/nginx/ssl/NAME-cert.pem; ssl_certificate_key /etc/nginx/ssl/NAME-key.pem; location /static/ { …
Alex
  • 2,270
  • 3
  • 33
  • 65
0
votes
1 answer

Django /admin redirects to /usr/src/app/admin

We have our Django 1.9.6 application running in a Docker container. The docker container has nginx configured to serve the static files. We link to /admin and it will take us to the /admin pages but when we click a link it takes us to…
Scott Warren
  • 1,581
  • 1
  • 17
  • 30
0
votes
1 answer

Django, channel layer reloads after exception

I use django channels and get this exception when receive message: 2017-07-27 08:34:56,241 - DEBUG - worker - Got message on websocket.receive (reply daphne.response.key) 2017-07-27 08:34:56,242 - DEBUG - runworker - websocket.receive 2017-07-27…
1 2 3
17
18