Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.
Questions tagged [daphne]
259 questions
1
vote
1 answer
How to run Django Daphne service on Google Kubernetes Engine and Google Container Registry
Dockerfile
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install build-essential -y
WORKDIR /app
COPY . /app/
# Python
RUN apt-get install python3-pip -y
RUN python3 -m pip install virtualenv
RUN python3 -m virtualenv /env36
ENV VIRTUAL_ENV…

Tay Dong
- 37
- 4
1
vote
0 answers
Daphne issue when upgrading django from 1.11 to 2.0
When upgraded from django 1.11 to 2.0 this happens:
Traceback (most recent call last):
File "/home/.local/share/virtualenvs/django2/lib/python3.6/site-packages/daphne/http_protocol.py", line 179, in process
"server":…

codesaurusrex
- 115
- 6
1
vote
1 answer
Does Django Channels uses ws:// protocol prefix to route between Django view or Channels app?
I am running Django + Channels server using Daphne. Daphne server is behind Nginx. My Nginx config looks like as given at end.
When I try to connect to ws://example.com/ws/endpoint I am getting NOT FOUNT /ws/endpoint error.
For me, it looks like…

Pavan Kumar
- 1,715
- 1
- 24
- 48
1
vote
0 answers
Android websocket client SSL error when connecting to server running multiple SSL enabled web applications
I am working on the Android client implementation that connects via websocket to a server. I've just enabled HTTPS on the server instance and now I am receiving this issue:
W/System.err: com.neovisionaries.ws.client.HostnameUnverifiedException: The…

FoamyGuy
- 46,603
- 18
- 125
- 156
1
vote
1 answer
Django-Channels 2 Apache CentOS 7 deploy
I can't make Apache serve websockets through Daphne.
The requirements.txt
Django==2.0.7
channels==2.1.3
asgiref==2.3.2
redis==2.10.6
settings.py
CHANNEL_LAYERS = {
"default":{
"BACKEND": "channels_redis.core.RedisChannelLayer",
…

Mike Spike
- 389
- 8
- 20
1
vote
2 answers
deploy django channels on nginx
I don't know anything about nginx and how to configure it to run channels. My environment is django 2.x ubuntu 16 nginx daphne redis digitalocean I've tinkered around with my nginx config file for a weeks now unable to get my socket to…

Mint
- 1,013
- 1
- 12
- 29
1
vote
1 answer
Interprocess communication using django channels is failing after one hour
I have a product an ERP where it needs real-time bidirectional interprocess communication between nodejs and Django. Right now I am using npm WebSocket and Django channels. During development using "python manage.py runserver", it works fine. But…

Navajyoth M S
- 426
- 3
- 11
1
vote
3 answers
Why can't Django Channels Daphne use multi-threading to process request concurrently?
I am aware of Python's GIL and threading in Python isn't as easy as spawning a go routine in Go. However, it seems to me that Ruby was able to pull it off with Puma and Unicorn to achieve concurrency with multi-threading. My question is actually…

mofury
- 644
- 1
- 11
- 23
1
vote
0 answers
Sessions Django: Daphne + Uwgsi
I am currently deploying a django project using channel 2.x with uwgsi for http requests and daphne for background tasks.
Daphne by itself is running correctly as well as uwgsi.
Configuration for both is the following:
location /stream {
#…

Diego Gallegos
- 1,722
- 2
- 18
- 31
1
vote
2 answers
Channels Websocket immedialty disconnecting with ssl
I tried to make run the tutorial from the channels docs on my production server, using ssl.
After a few hours i managed to get a connection but it instantly disconnects :
None - - [12/Mar/2018:17:42:22] "WSCONNECTING /ws/chat/bibou/" - -
None - -…

Taek
- 1,004
- 7
- 20
1
vote
1 answer
Daphne server command not available
I have created a django app using channels, and tested it with python3 manage.py runserver, which, as I understand, runs a Daphne server as part of the command. Now I just want to deploy the app by running a standalone Daphne server with some…

thatonetallguy
- 11
- 4
1
vote
1 answer
Is there any way to build an interactive terminal using Django Channels with it's current limitations?
It seems with Django Channels each time anything happens on the websocket there is no persistent state. Even within the same websocket connection, you can not preserve anything between each call to receive() on a class based consumer. If it can't be…

kagronick
- 2,552
- 1
- 24
- 29
1
vote
0 answers
django daphne ModuleNotFoundError : 'settings'
I made a django project using channels.
And I want to deploy it. Because my project uses channels, I should set up ASGI based environment.
I pushed my project and succeeded. So I got URL address.
https://demo-multichat.herokuapp.com
As you can see,…

박주현
- 43
- 7
1
vote
1 answer
Serving Django and Channels with Daphne
I have a Django project on Google Compute Engine. Here is the structure of my Django project.
example_channels
├── db.sqlite3
├── example
│ ├── admin.py
│ ├── apps.py
│ ├── consumers.py
│ ├── __init__.py
│ ├── migrations
│ │
│ ├──…

Ilya Lapan
- 1,103
- 2
- 12
- 31
1
vote
1 answer
nginx as reverse proxy for daphne: 404 not found
Here's my nginx.conf:
server {
listen 80;
location /proxy {
proxy_pass http://0.0.0.0:8001;
}
}
My server is virtual machine in azure.
When I go to http://13.65.102.226/proxy/ , it gives 404 not found.
and here's my…

Evgeniya Tveritinova
- 351
- 3
- 17