#6110 (Lino fails after upgrade daphne 4.1.2 to 4.2)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
Current workaround: pip install -U "daphne<4.2"
Children
Kommentaarid
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Ha! Explanation: the supervisor config was using the wrong python env. Which shows once more that having multiple Lino venvs on a same server is not a good idea.
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Oh, it seems that it is a bug in daphne 4.2. But why then do we still have it after downgrading to 4.1.2?
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Next step for me would be to dive into the docs about deploying a Django asgi application with daphne and supervisor (e.g. here). Unless @8lurry or @hannes have a better idea.
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : I don't understand it: primademo and pdg on pilv use the same environment, pdg works and primademo doesn't.
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : I have it right now also with daphne 4.1.2 on pilv, for the new Lino site "primademo". Here is full traceback:
2025-06-23 14:18:08,733 INFO Starting server at fd:fileno=0, unix:/run/daphne/primademo_daphne0.sock 2025-06-23 14:18:08,737 INFO HTTP/2 support not enabled (install the http2 and t... - 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Let's look into this together.
- 1 aasta, 4 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Still no news about this? This issue broke the prima preview site for a while this morning.
- 1 aasta, 5 kuud ago by Sharif Mehedi about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : mysql allows root access only from the localhost. A gitlab mysql service runs in a docker container. On gitlab-ci we don't have shell access to this container so root access is not possible. User and database creation is possible only through the following idea: a [url hub.docker.com/_/mysql/ docker...
- 1 aasta, 5 kuud ago by Sharif Mehedi about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Setting "MYSQL_ALLOW_EMPTY_PASSWORD: 1" seems to mitigate the hostname problem. Now the test suite gives access denied.
- 1 aasta, 5 kuud ago by Sharif Mehedi about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : On gitlab.ci mysql fails wait: "Unknown server host 'mysql'". The hostname is "mysql" since it has been suggested in the [url docs.gitlab.com/ci/services/mysql/ gitlab docs] and also in a [url stackoverflow.com/questions/60600822/how-to-setup-connection-to-mysql-database-with-gitlab-ci-cd stackoverf...
- 1 aasta, 5 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : I would start by reproducing it on getlino. Right now getlino ci fails already long before this.
- 1 aasta, 5 kuud ago by Sharif Mehedi about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Indeed there is a traceback saying ValueError: Unknown endpoint type: 'fd'
- 1 aasta, 5 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : @8lurry please try to reproduce this in the venv of sw on pilv by saying "pip install -U daphne". After restarting supervisor, there should be a traceback in /var/log/supervisor/sw_asgi*
- 1 aasta, 5 kuud ago by Luc Saffre about #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2) : Created new Ticket #6110 (Lino fails after upgrade daphne 4.1.2 to 4.2).